GET
/
v3
/
model
curl --request GET \
  --url https://api.ppinfra.com/v3/model \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "models": [
    {
      "id": 123,
      "name": "<string>",
      "model_name": "<string>",
      "hash_sha256": "<string>",
      "type": {
        "name": "<string>",
        "display_name": "<string>"
      },
      "categories": {},
      "status": 123,
      "download_url": "<string>",
      "tags": {},
      "cover_url": "<string>",
      "source": "<string>",
      "base_model": "<string>",
      "base_model_type": "<string>",
      "download_url_ttl": 123
    }
  ],
  "pagination": {
    "next_cursor": "<string>"
  }
}

查找模型 API 用户获取可用模型列表。

请求头

Content-Type
string
required

枚举值: application/json

Authorization
string
required

Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

查询参数

filter.visibility
string

模型可见性。如果不设置,接口将查询所有类型的模型。Enum: public, private

filter.types
string

模型类型。Enum: checkpoint, lora, vae, controlnet, upscaler, textualinversion

filter.is_sdxl
boolean

是否返回 SDXL 模型。

filter.is_inpainting
boolean

是否返回 Inpainting 模型。

pagination.limit
string

每页返回的模型数,范围 (0, 100]。

pagination.cursor
string

指定从第几个模型开始返回。如果为空,则表示从头开始获取。通常赋值为响应包中返回的 next_cursor 字段值来获取下一页的内容。

响应参数

models
object[]
pagination
object