跳转到主要内容
查询模型列表
curl --request GET \
  --url https://xxx.wengaocloud.com/v1/models \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o-mini",
      "object": "model",
      "owned_by": "openai",
      "supported_endpoints": [
        "/v1/chat/completions",
        "/v1/responses"
      ],
      "billing_unit": "token"
    }
  ]
}

授权

Authorization
string
header
默认值:sk-your-api-key
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

响应

模型列表。

object
string
示例:

"list"

data
object[]