跳转到主要内容
GET
/
api
/
experiment
/
models
/
{folder}
Get models in a specific folder
curl --request GET \
  --url https://cloud.comfy.org/api/experiment/models/{folder}
[
  {
    "name": "model.safetensors",
    "pathIndex": 0
  }
]

路径参数

folder
string
必填

The folder name to list models from

示例:

"checkpoints"

响应

Success - List of models in the folder

name
string
必填

The filename of the model

示例:

"model.safetensors"

pathIndex
integer
必填

Index of the path where this model is located

示例:

0