Skip to content

列出 Coding Plan Anthropic 可用模型

只返回当前账号套餐支持且 Anthropic 可调用的在架模型。

GET/anthropic/v1/models
鉴权与权益
api-key-only
入口语境
anthropic-alias
跳到可执行示例

GET /anthropic/v1/models 接口

  • 方法:GET

  • 路径:/anthropic/v1/models

  • 入口家族:anthropic-alias

  • 计费语境:coding-plan

  • 调用前置:api-key-only

鉴权

以下方案任选其一:

  • AnthropicApiKey
  • BearerAuth

请求

此操作没有运行时请求参数或请求体。

响应

状态说明Schema
200成功{"$ref":"#/components/schemas/AnthropicModelListResponse"}
401API Key 无效或供应商同状态响应{"$ref":"#/components/schemas/AnthropicError"}
500平台内部错误或供应商同状态响应{"$ref":"#/components/schemas/AnthropicError"}

流式行为

non-streaming

错误

  • invalid_api_key
  • internal_error

限制

  • 只鉴权,不预留套餐、不扣余额
  • 仅返回当前有效 Coding Plan 支持的在架模型

兼容性

  • inventory:contract-coding-anthropic-models-alias
  • protocol:anthropic-compatible

可执行示例

cURL

sh
curl --request GET "${TOKENFACTORY_API_BASE_URL}/anthropic/v1/models" --silent --show-error --fail-with-body --max-time 60 --header "x-api-key: ${TOKENFACTORY_API_KEY}"

Token Factory · 国产合规 AI Gateway