列出模型
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 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/anthropic/v1/models \
-H "x-api-key: $PRAXIS_API_KEY" \
-H "anthropic-version: 2023-06-01"Python
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.deepraxis.com/anthropic",
api_key="$PRAXIS_API_KEY",
)
models = client.models.list()TypeScript
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.deepraxis.com/anthropic",
apiKey: "$PRAXIS_API_KEY",
});
const models = await client.models.list();响应示例 200
{
"data": [
{
"id": "official-test/deepseek-v4-flash",
"type": "model",
"display_name": "DeepSeek V4 Flash · 官方 Test",
"created_at": "2026-09-07T11:33:59.909Z"
},
{
"id": "official-test/deepseek-v4-pro",
"type": "model",
"display_name": "DeepSeek V4 Pro · 官方 Test",
"created_at": "2026-09-07T11:34:10.408Z"
},
{
"id": "bdd-spec-model-z8t1b2",
"type": "model",
"display_name": "BDD Spec Model",
"created_at": "2026-09-13T03:16:59.442Z"
}
],
"first_id": "official-test/deepseek-v4-flash",
"has_more": false,
"last_id": "qwen3.8-max"
}响应
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 |