Anthropic
列出模型
列出当前可调用的模型。
GET
/anthropic/v1/models● 支持请求参数
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
| 名称 | 类型 | 说明 |
|---|---|---|
| data | array<object> | |
| data[].id | string | Unique model identifier. |
| data[].capabilities | null | object | Model capability information. |
| data[].created_at | string | RFC 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_name | string | A human-readable name for the model. |
| data[].max_input_tokens | null | number | Maximum input context window size in tokens for this model. |
| data[].max_tokens | null | number | Maximum value for the `max_tokens` parameter when using this model. |
| data[].type | string | Object type. For Models, this is always `"model"`. |
| has_more | boolean | |
| first_id | null | string | |
| last_id | null | string |