Platform API
An OpenAI-compatible REST API to integrate DeutschlandGPT's AI models into your own applications — hosted on German infrastructure.
The DeutschlandGPT Platform API gives you programmatic access to the same AI models available in the chat interface — chat completions, embeddings, image, video, and avatar-video generation, plus text-to-speech and transcription — through an OpenAI-compatible API.
Base URLs for your deployment: https://api.deutschlandgpt.de/v2 for the OpenAI-compatible endpoints, https://api.deutschlandgpt.de/anthropic for the Anthropic-compatible ones. The two are siblings, so the Anthropic base URL never sits below /v2.
| Surface | Hosted | Self-hosted |
|---|---|---|
| OpenAI-compatible | https://api.deutschlandgpt.de/v2 | https://<your-domain>/platform-api/api/v2 |
| Anthropic-compatible | https://api.deutschlandgpt.de/anthropic | https://<your-domain>/platform-api/api/anthropic |
Append the endpoint path to the OpenAI-compatible base URL, for example /chat/completions. The Anthropic SDK appends /v1/messages itself.
What you can do
- Chat completions — send messages and receive AI-generated responses, with streaming, function calling, and structured output support
- Anthropic Messages — a native Anthropic Messages endpoint, so the Anthropic SDK and Claude Code work unmodified against every hosted model
- Embeddings — convert text into vector representations for semantic search, classification, and clustering
- Image generation — generate images from text prompts
- Video generation — generate short videos from text prompts (async job + poll)
- Avatar video — generate talking-head avatar videos from a script (async job + poll)
- Text-to-speech — convert text into natural-sounding audio in multiple voices and formats
- Speech-to-text — transcribe audio files into text, with optional language hinting
- Model selection — choose from all models enabled in your workspace
- Document folders — create folders, upload files, and perform semantic search across your enterprise documents
- Custom GPTs — create and manage Custom GPTs with custom instructions, files, and model settings
- API key permissions — restrict keys to specific models, folders, and Custom GPTs, with spending limits
- Admin analytics — monitor usage across your workspace with daily, per-model, and per-key breakdowns
How billing works
The Platform API uses a credit-based billing model, separate from your main DeutschlandGPT subscription. You purchase credits up front, and each API request deducts the corresponding cost based on the model and number of tokens (or images) used.
Every model's price is public: see Models & pricing for the per-million-token rate of each text model, plus embedding and image pricing. No account needed.
Credits are managed per workspace. A workspace is a billing container that holds your credits, payment methods, and API keys.
Before making your first API call you must create a workspace and an API key. See Quickstart.
Authentication
Every request must include an Authorization header with a Bearer token:
Authorization: Bearer YOUR_API_KEY
API keys are created and managed from the Platform API dashboard.
OpenAI compatibility
The API follows the OpenAI API specification for /chat/completions, /embeddings, /images/generations, and /audio/speech. You can point any OpenAI-compatible SDK or tool at the DeutschlandGPT base URL with minimal configuration changes.
Anthropic compatibility
The API also speaks Anthropic's Messages wire format at /anthropic/v1/messages. Point the Anthropic SDK or Claude Code at https://api.deutschlandgpt.de/anthropic (the SDK's baseURL option, or the ANTHROPIC_BASE_URL environment variable) and authenticate with x-api-key. Every hosted model is then reachable through this wire format, not just Claude. A self-hosted instance uses https://<your-domain>/platform-api/api/anthropic.
The Anthropic base URL is a sibling of /v2, not a path inside it. The SDK appends /v1/messages
itself, so https://api.deutschlandgpt.de/anthropic is correct while
https://api.deutschlandgpt.de/v2/anthropic returns 404.
See Create a message for the full reference.
Create a workspace, get an API key, and make your first request in minutes.
Create, manage, and rotate API keys for your workspace.
Full reference for the /chat/completions endpoint.
Generate spoken audio from text in multiple voices and formats.
Purchase credits, configure auto top-up, and track spending.
Restrict API keys to specific models, folders, and Custom GPTs.
Manage enterprise document folders and perform semantic search.
Create and manage Custom GPTs with files and custom instructions.
Monitor workspace usage with daily, per-model, and per-key breakdowns.