Zum Inhalt springen
DeutschlandGPT

Quickstart

Get an API key, add credit and make your first request to the Platform API.

1

Open the Platform API

Sign in and open the Platform API. Your workspace already exists: it is created automatically on your first visit and holds your credits, payment methods and API keys. In an organisation, all members share the organisation's workspace.

The overview shows a Getting started checklist with the next steps.

2

Add credits

On a prepaid workspace, requests only run while there is credit. Open Billing, click Purchase Credits and pick a package or a custom amount. You need a credit or debit card as the default payment method. Prices are shown excluding VAT, and before paying you confirm the terms and waive your right of withdrawal.

You can also switch on Auto Top-up there, so the balance refills itself. Details: Billing.

If your organisation is billed by invoice, skip this step.

3

Create an API key

Open API Keys, click Add API key and give it a descriptive name, for example production or dev-testing.

GDPR-compliant models only is switched on. Click Create API key.

The full key appears once. Copy it and store it safely. It can't be shown again. Done opens the key's page, where you choose models, document folders and Custom GPTs and set limits, an expiry date, alerts and IP restrictions. A new key has access to no document folders and no Custom GPTs.

4

Make your first request

Use the API key as a Bearer token in the Authorization header. The base URL depends on your deployment. On the hosted service it is https://api.deutschlandgpt.de/v2, a self-hosted instance uses https://<your-domain>/platform-api/api/v2.

bash

A successful response looks like:

JSON
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1712000000,
  "model": "claude-sonnet-4.6",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 9,
    "total_tokens": 18
  }
}

Error: 402 Payment Required

A 402 means the request could not be paid for. On a prepaid workspace the balance is used up or the workspace's monthly limit is reached. Add credit under Billing or raise the limit under Budgets & limits. Other reasons are listed in Streaming, tools and structured output.

Next steps

  • Chat Completions: full parameter reference, streaming, function calling.
  • Models: see which models your key can use.
  • Billing: credits, auto top-up, spending limits.
Was this page helpful?