快速开始

查询模型定价

无需鉴权读取定价表里全部模型的 CA 价格与官方标价。

端点:GET /v1/models/pricing

返回定价表里全部模型的 CA 价格与官方标价。本接口不需要鉴权。

定价表与可调用模型列表并不一一对应:模型是否可调用以 列出模型 为准,价格以本接口为准。

请求

无需鉴权,无请求体。

参数

无。

响应

json
{
  "models": [
    {
      "id": "claude-sonnet-5",
      "owned_by": "anthropic",
      "cost": { "input": 0.6, "output": 3.0, "cached_input": 0.06, "cache_creation": 0.75, "cache_read": 0.06 },
      "list_cost": { "currency": "USD", "input": 2.0, "output": 10.0, "cached_input": 0.2, "cache_creation": 2.5, "cache_read": 0.2 }
    }
  ]
}
字段说明
models[].id模型 ID
models[].owned_by模型厂商
models[].costCA 价格,按每百万 token 计:input 输入、output 输出;支持缓存的模型另有 cached_inputcache_creationcache_read
models[].list_cost官方标价,字段同 costcurrency 为币种

示例中的数值以接口实时返回为准。

示例

bash
curl https://caapi.top/v1/models/pricing

错误

本接口不需要鉴权,正常情况下不返回 401。

50 篇文档。文中出现的模型名与价格以模型广场的实时数据为准。