Zum Inhalt springen
DeutschlandGPT

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.

GEThttps://api.deutschlandgpt.de/anthropic/v1/models

Example request

curl https://api.deutschlandgpt.de/anthropic/v1/models \
  -X GET \
  -H "Authorization: Bearer $DGPT_API_KEY"

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"
}

The models available to this API key.

dataAnthropicModel[]required
typestringrequired
idstringrequired

Registry model name — pass this as model in /anthropic/v1/messages.

display_namestringrequired
created_atstring<date-time>required
has_morebooleanrequired
first_idstring | nullrequired
last_idstring | nullrequired

Response codes

200

The models available to this API key.

object
401

Missing or invalid API key.

AnthropicError
Was this page helpful?
List models (Anthropic format) · DeutschlandGPT