Task Management
List all model spec registrations
Lists every model accepted by /api/generate/submit — including friendly aliases, raw upstream IDs, and registered prefixes — together with the spec each one maps to.
Use it as the model-discovery entry for your SDK: fetch the list once, then drill into /api/generate/spec/:model for the field table of any model you care about.
Query Parameters
include_pricing?boolean
为精确模型注册项附加 pricing 和 default_action。前缀项不代表具体模型,不返回价格。pricing 结构与单模型 spec 接口一致。
Default
falseResponse Body
application/json
curl -X GET "https://api.apimp.ai/api/generate/specs"{
"code": 200,
"data": {
"models": [
{
"match": "gpt-image-2",
"match_type": "exact",
"spec_id": "gpt-image-2"
},
{
"match": "gpt-image-2.5-flare",
"match_type": "exact",
"spec_id": "gpt-image-2.5"
},
{
"match": "gpt-image-2.5-sunburst",
"match_type": "exact",
"spec_id": "gpt-image-2.5"
},
{
"match": "nano-banana-2",
"match_type": "exact",
"spec_id": "nano-banana-2"
},
{
"match": "nano-banana-pro",
"match_type": "exact",
"spec_id": "nano-banana-pro"
},
{
"match": "sora-2",
"match_type": "exact",
"spec_id": "sora-2"
},
{
"match": "sora-2-pro",
"match_type": "exact",
"spec_id": "sora-2-pro"
},
{
"match": "doubao-seedance-2.0",
"match_type": "prefix",
"spec_id": "seedance-2.0"
},
{
"match": "seedance-2.0",
"match_type": "prefix",
"spec_id": "seedance-2.0"
},
{
"match": "kling-",
"match_type": "prefix",
"spec_id": "kling"
},
{
"match": "veo-",
"match_type": "prefix",
"spec_id": "veo"
}
]
}
}How is this guide?
Last updated on