AIConflu

模型列表接口

与 OpenAI <InlineCode>/models</InlineCode> 兼容的模型目录接口。公开可用,不需要 API Key;带上 Key 时会额外返回你已开通的隐藏模型(如 Seedance 视频模型)。

端点

http
GET https://aiconflu.com/v1/models

示例请求

bash
curl https://aiconflu.com/v1/models

带上 API Key 可查看已开通的隐藏模型:

bash
curl https://aiconflu.com/v1/models \
  -H "Authorization: Bearer $ONEGATE_API_KEY"

返回结构

json
{
  "object": "list",
  "data": [
    {
      "id": "deepseek-v4-flash",
      "object": "model",
      "owned_by": "deepseek",
      "name": "DeepSeek V4 Flash",
      "context_window": "1M",
      "native_pricing": { "currency": "CNY", "input": "3", "cached_input": "0.1", "output": "9", "unit": "CNY/1M tokens", "version": "price-0123456789abcdef" },
      "currency_conversion": { "cny_per_usd": "7", "version": "cny-usd-7-v1" },
      "billing_currency": "CNY"
    }
  ]
}
这个接口与 OpenAI 的 <InlineCode>models</InlineCode> 兼容。<InlineCode>native_pricing</InlineCode> 保留厂商原币价格;旧 <InlineCode>pricing</InlineCode> 是客户兼容 USD 视图:CNY 原生价格按固定汇率 7 换算,USD 原生价格保持不变。<InlineCode>currency_conversion</InlineCode> 给出当前换算版本。

查询单个模型

http
GET https://aiconflu.com/v1/models/{model}
bash
curl https://aiconflu.com/v1/models/deepseek-v4-flash

返回单个模型的详情,结构与列表接口中的元素一致。模型不存在、或该模型是隐藏模型且当前未授权时,返回 404。

json
{
  "id": "deepseek-v4-flash",
  "object": "model",
  "owned_by": "deepseek",
  "name": "DeepSeek V4 Flash",
  "context_window": "1M",
  "native_pricing": { "currency": "CNY", "input": "3", "cached_input": "0.1", "output": "9", "unit": "CNY/1M tokens", "version": "price-0123456789abcdef" },
  "currency_conversion": { "cny_per_usd": "7", "version": "cny-usd-7-v1" },
  "billing_currency": "CNY"
}