List Models
List every model available to the key.
01概述
Returns only models routed to the calling key's workspace and allowed by that key's model policy. Each item includes the OpenAI-style id and object fields plus CAPI metadata for provider, modality, capabilities, and price. Use modality and provider query parameters to filter the list.
GET
/api/v1/modelsBase URL https://capi.minapp.xinAPI 版本 v1认证方式 Bearer YOUR_API_TOKEN
02参数
| 名称 | 类型 | 说明 |
|---|---|---|
| modality | string | Filter by modality, e.g. video. |
| provider | string | Filter by provider name. |
示例
List Models
cURL
curl https://capi.minapp.xin/api/v1/models?modality=video \
-H "Authorization: Bearer YOUR_API_TOKEN"HTTP 200· OK
{
"object": "list",
"group": "default",
"source": "relay",
"data": [
{
"id": "kling-v3-turbo-text-to-video",
"object": "model",
"owned_by": "default",
"family": "kling",
"provider": "Kling",
"modality": "video",
"capabilities": ["Text to video", "Image to video"],
"price": { "amount": 0.07, "unit": "second", "currency": "USD" }
}
]
}