Anthropic

列出模型

列出当前可调用的模型。

GET /anthropic/v1/models● 支持

Anthropic 官方文档 ↗

请求参数

  • limitnumber可选

    query: Number of items per page.

    已验证生效。

  • before_idstring可选

    query:

    已验证生效。

  • after_idstring可选

    query:

    已验证生效。

返回

200

始终返回 capabilities、max_input_tokens、max_tokens;目录无法确定的值为 null,不将总上下文窗口冒充独立输入上限。非空 anthropic-workspace-id 返回 400;尚不按 anthropic-beta 选择目录版本。

错误按 Anthropic 格式返回,参见 错误码

响应

HTTP 200

Models listed

application/json

名称类型说明
dataarray<object>
data[].idstringUnique model identifier.
data[].capabilitiesnull | objectModel capability information.
data[].created_atstringRFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
data[].display_namestringA human-readable name for the model.
data[].max_input_tokensnull | numberMaximum input context window size in tokens for this model.
data[].max_tokensnull | numberMaximum value for the `max_tokens` parameter when using this model.
data[].typestringObject type. For Models, this is always `"model"`.
has_moreboolean
first_idnull | string
last_idnull | string