Zum Inhalt springen
DeutschlandGPT

Modell abrufen (Anthropic-Format)

Ruft ein einzelnes Modell im Anthropic-Modellformat ab. Liefert 404, wenn das Modell nicht existiert oder der API-Key keinen Zugriff darauf hat.

GEThttps://api.deutschlandgpt.de/anthropic/v1/models/{id}

Beispielaufruf

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

Parameter

idstringerforderlich

Der Registry-Modellname.

Antwort

200application/json
{
  "type": "model",
  "id": "claude-4.5-sonnet",
  "display_name": "string",
  "created_at": "2025-01-01T00:00:00Z"
}

Das Modell.

typestringerforderlich
idstringerforderlich

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

display_namestringerforderlich
created_atstring<date-time>erforderlich

Statuscodes

200

Das Modell.

AnthropicModel
401

Fehlender oder ungültiger API-Key.

AnthropicError
404

Modell nicht gefunden, oder der API-Key hat keinen Zugriff darauf.

AnthropicError
War diese Seite hilfreich?
Modell abrufen (Anthropic-Format) · DeutschlandGPT