Skip to main content
GET
/
v1
/
models
模型列表
curl --request GET \
  --url https://api.chenyu.cn/v1/models \
  --header 'Authorization: Bearer <token>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "owned_by": "<string>",
      "capabilities": {}
    }
  ]
}

模型列表

查询当前 API Key 可用的大模型列表。返回的 id 即调用其它接口时使用的 model

请求参数

无需请求参数。

响应参数

object
string
固定为 list
data
array
模型列表

代码示例

import requests

url = "https://api.chenyu.cn/v1/models"
headers = {"Authorization": "Bearer your_api_key"}

response = requests.get(url, headers=headers)
print(response.json())

响应示例

{
  "object": "list",
  "data": [
    {
      "id": "doubao-seed-2-0-lite-260428",
      "object": "model",
      "owned_by": "volcengine",
      "capabilities": {
        "endpoints": ["chat.completions", "responses"],
        "modalities": {
          "input": ["text"],
          "output": ["text"]
        }
      }
    }
  ]
}