Get model (Anthropic format)
Retrieves a single model in Anthropic’s model shape. Returns 404 when the model does not exist or the API key has no access to it.
GET
https://api.deutschlandgpt.de/anthropic/v1/models/{id}Example request
curl https://api.deutschlandgpt.de/anthropic/v1/models/{id} \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"curl https://api.deutschlandgpt.de/anthropic/v1/models/{id} \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"import os, requests
response = requests.get(
"https://api.deutschlandgpt.de/anthropic/v1/models/{id}",
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/{id}",
headers={"Authorization": f"Bearer {os.environ['DGPT_API_KEY']}"},
)
print(response.json())const response = await fetch('https://api.deutschlandgpt.de/anthropic/v1/models/{id}', {
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/{id}', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.DGPT_API_KEY}`,
},
});
console.log(await response.json());Parameters
idstringrequiredThe registry model name.
Response
200application/json
{
"type": "model",
"id": "claude-4.5-sonnet",
"display_name": "string",
"created_at": "2025-01-01T00:00:00Z"
}{
"type": "model",
"id": "claude-4.5-sonnet",
"display_name": "string",
"created_at": "2025-01-01T00:00:00Z"
}The model.
typestringrequiredidstringrequiredRegistry model name — pass this as model in /anthropic/v1/messages.
display_namestringrequiredcreated_atstring<date-time>requiredResponse codes
200
The model.
AnthropicModel401
Missing or invalid API key.
AnthropicError404
Model not found, or the API key has no access to it.
AnthropicErrorWas this page helpful?