API ReferenceAnthropic
List models (Anthropic shape)
Lists available models in the Anthropic API shape. Model IDs containing / are aliased with -- (e.g., anthropic/claude-3-5-sonnet → anthropic--claude-3-5-sonnet) because Claude Code rejects slashed identifiers.
Authorization
BearerAuth AuthorizationBearer <token>
API key passed as Bearer token
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/anthropic/v1/models"{
"data": [
{
"type": "model",
"id": "string",
"display_name": "string",
"created_at": "string"
}
],
"has_more": true,
"first_id": null,
"last_id": null
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "string"
}
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "string"
}
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "string"
}
}