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/models
Base URL https://capi.minapp.xinAPI 版本 v1认证方式 Bearer YOUR_API_TOKEN

02参数

名称类型说明
modalitystringFilter by modality, e.g. video.
providerstringFilter 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" }
    }
  ]
}