Zum Inhalt springen
DeutschlandGPT

Modelle auflisten (Anthropic-Format)

Listet jedes Textmodell auf, das der API-Key verwenden darf — im Modell-Listen-Format von Anthropic, damit Anthropic-SDK-Clients Modelle aufzählen können. id ist der Registry-Modellname, der als model an /anthropic/v1/messages übergeben wird.

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

Beispielaufruf

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

Antwort

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

Die für diesen API-Key verfügbaren Modelle.

dataAnthropicModel[]erforderlich
typestringerforderlich
idstringerforderlich

Registry-Modellname — als model an /anthropic/v1/messages übergeben.

display_namestringerforderlich
created_atstring<date-time>erforderlich
has_morebooleanerforderlich
first_idstring | nullerforderlich
last_idstring | nullerforderlich

Statuscodes

200

Die für diesen API-Key verfügbaren Modelle.

object
401

Fehlender oder ungültiger API-Key.

AnthropicError
War diese Seite hilfreich?