跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt

Use this file to discover all available pages before exploring further.

/v1/models 是 OpenAI 兼容的模型列表接口,返回当前令牌可用的所有模型。SDK 和客户端用此接口自动发现可用模型及支持的 API 格式。

快速示例

curl https://www.anyfast.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

请求

请求头必填说明
Authorization: Bearer <api-key>用令牌 Key 鉴权
Content-Type: application/json可选
无请求体(GET)。

返回体

{
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1626777600,
      "owned_by": "openai",
      "supported_endpoint_types": ["openai"]
    },
    {
      "id": "claude-sonnet-4-5-20250929",
      "object": "model",
      "created": 1626777600,
      "owned_by": "vertex-ai",
      "supported_endpoint_types": ["openai", "anthropic"]
    }
  ]
}

返回字段

字段说明
id模型标识,调用 relay 时用此值填入 model 参数
object固定为 "model"
created固定时间戳(无实际意义)
owned_by模型提供方:openaivertex-aicustomxaivolcenginecodexawscozealiminimax
supported_endpoint_types该模型支持的 API 格式:openaianthropicopenai-responsegeminiimage-generationvideomj-*

说明

  • 不同令牌看到的模型列表可能不同,取决于代理商配置和定价覆盖范围。
  • 未提供令牌返回 401 {"error":{"message":"未提供令牌"}}