列出模型
GET
https://api.anthropic.com/v1/models
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.anthropic.com/v1/models' \
--header 'x-api-key: ' \
--header 'anthropic-version: 2023-06-01'
响应示例响应示例
200 - 成功示例
{
"data": [
{
"type": "model",
"id": "claude-3-5-sonnet-20241022",
"display_name": "Claude 3.5 Sonnet (New)",
"created_at": "2024-10-22T00:00:00Z"
}
],
"has_more": true,
"first_id": "<string>",
"last_id": "<string>"
}
请求参数
Header 参数
x-api-key
string
必需
示例值:
{{ANTHROPIC_API_KEY}}
anthropic-version
string
必需
示例值:
2023-06-01
返回响应
修改于 2025-02-25 08:58:23