GET
/
models
import { ComfyDeploy } from "comfydeploy";

const comfyDeploy = new ComfyDeploy({
  bearer: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await comfyDeploy.models.publicModelsModelsGet();

  // Handle the result
  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "name": "<string>",
    "is_comfyui": false,
    "preview_image": "<string>",
    "inputs": [
      {
        "input_id": "<string>",
        "class_type": "<string>",
        "required": true,
        "default_value": "<any>",
        "min_value": "<any>",
        "max_value": "<any>",
        "display_name": "<string>",
        "description": "<string>",
        "enum_values": [
          "<string>"
        ]
      }
    ],
    "outputs": [
      {
        "class_type": "ComfyDeployStdOutputImage",
        "output_id": "<string>"
      }
    ],
    "tags": [],
    "fal_id": "<string>",
    "cost_per_megapixel": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
Successful Response
id
string
required
name
string
required
inputs
object[]
required
outputs
object[]
required
is_comfyui
boolean
default:false
preview_image
string | null
tags
string[]
fal_id
string | null
cost_per_megapixel
number | null