> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kontinent.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kontinent.ai/_mcp/server.

# API-Referenz

Die **Data Plane** von Kontinent ist OpenAI-kompatibel. Richten Sie ein
beliebiges OpenAI-SDK auf das Gateway aus und verwenden Sie einen
`sk-kt-`-Schlüssel:

```ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.kontinent.ai/v1",
  apiKey: process.env.KONTINENT_API_KEY, // sk-kt-…
});
```

## Basis-URLs

| Umgebung           | Basis-URL                  |
| ------------------ | -------------------------- |
| Produktion         | `https://api.kontinent.ai` |
| Lokale Entwicklung | `http://localhost:4000`    |

## Endpunkte

| Methode | Pfad                   | Zweck                                                 |
| ------- | ---------------------- | ----------------------------------------------------- |
| `POST`  | `/v1/chat/completions` | Chat-Completions (SSE-Streaming unterstützt).         |
| `POST`  | `/v1/embeddings`       | Embeddings.                                           |
| `GET`   | `/v1/models`           | Modelle mit Preisen und Souveränitätsstufe auflisten. |
| `GET`   | `/healthz`             | Nicht authentifizierte Liveness-Probe.                |

Alle Endpunkte außer `/healthz` erfordern ein Bearer-Token — siehe
[Authentifizierung](/authentication). Fehler folgen der OpenAI-Form; siehe
[Fehler](/errors).

## Konventionen

* **Modell-IDs** haben die Form `provider/model`, z. B.
  `mistral/mistral-large-latest`.
* **Geld** ist eine ganzzahlige Mikro-EUR-Größe (1 EUR = 1.000.000 µEUR),
  angegeben pro Million Tokens.
* **Anfrage-Bodies** sind auf 2 MiB begrenzt.

Nutzen Sie die Referenzseiten in diesem Abschnitt, um jeden Endpunkt interaktiv
zu erkunden.