List models (Anthropic format)
Lists every text model the API key can use, in Anthropic’s model-list shape, so Anthropic SDK clients can enumerate models. id is the registry model name to pass as model in /anthropic/v1/messages.
GET
https://api.deutschlandgpt.de/anthropic/v1/modelsExample request
curl https://api.deutschlandgpt.de/anthropic/v1/models \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"curl https://api.deutschlandgpt.de/anthropic/v1/models \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"import os, requests
response = requests.get(
"https://api.deutschlandgpt.de/anthropic/v1/models",
headers={"Authorization": f"Bearer {os.environ['DGPT_API_KEY']}"},
)
print(response.json())import os, requests
response = requests.get(
"https://api.deutschlandgpt.de/anthropic/v1/models",
headers={"Authorization": f"Bearer {os.environ['DGPT_API_KEY']}"},
)
print(response.json())const response = await fetch('https://api.deutschlandgpt.de/anthropic/v1/models', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.DGPT_API_KEY}`,
},
});
console.log(await response.json());const response = await fetch('https://api.deutschlandgpt.de/anthropic/v1/models', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.DGPT_API_KEY}`,
},
});
console.log(await response.json());Response
200application/json
{
"data": [
{
"type": "model",
"id": "claude-4.5-sonnet",
"display_name": "string",
"created_at": "2025-01-01T00:00:00Z"
}
],
"has_more": true,
"first_id": "string",
"last_id": "string"
}{
"data": [
{
"type": "model",
"id": "claude-4.5-sonnet",
"display_name": "string",
"created_at": "2025-01-01T00:00:00Z"
}
],
"has_more": true,
"first_id": "string",
"last_id": "string"
}The models available to this API key.
dataAnthropicModel[]requiredtypestringrequiredidstringrequiredRegistry model name — pass this as model in /anthropic/v1/messages.
display_namestringrequiredcreated_atstring<date-time>requiredhas_morebooleanrequiredfirst_idstring | nullrequiredlast_idstring | nullrequiredResponse codes
200
The models available to this API key.
object401
Missing or invalid API key.
AnthropicErrorWas this page helpful?