> For the complete documentation index, see [llms.txt](https://docs.kontinent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kontinent.ai/documentation/dokumentation/features/unified-api.md).

# Eine API für alle Modelle

Kontinent stellt einen einzigen OpenAI-kompatiblen Endpunkt vor alle bereitgestellten Modelle. Sie integrieren einmal und erreichen den gesamten Katalog: keine anbieterspezifischen SDKs, keine eigene Authentifizierung, kein Umbau der Anfragen. **Das OpenAI-SDK funktioniert ohne Anpassungen.**

## Funktionsweise

Richten Sie Ihren bestehenden OpenAI-Client auf Kontinent aus, indem Sie zwei Dinge ändern: die Basis-URL und den API-Schlüssel. Alles andere, einschließlich Nachrichten, Tools, Streaming und Antwortformat, bleibt genau so, wie Sie es geschrieben haben.

{% tabs %}
{% tab title="TypeScript" %}

```typescript
import OpenAI from "openai";

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

const res = await client.chat.completions.create({
  model: "anthropic/claude-opus-4.8",
  messages: [{ role: "user", content: "Hallo!" }],
});
```

{% endtab %}

{% tab title="Python" %}

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.kontinent.ai/v1",  # nur das
    api_key=os.environ["KONTINENT_API_KEY"], # und das
)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl https://api.kontinent.ai/v1/chat/completions \
  -H "Authorization: Bearer $KONTINENT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-opus-4.8",
       "messages":[{"role":"user","content":"Hallo!"}]}'
```

{% endtab %}
{% endtabs %}

### Eine Modell-ID, mehrere Anbieter-Routen

Ein Modell wird als `provider/model` adressiert, z. B. `anthropic/claude-opus-4.8`. Hinter dieser einen ID kann Kontinent an mehr als einen Anbieter weiterleiten: eine **primäre** Route mit **Standby**-Routen, die bei einem Ausfall übernehmen. Sie wählen das Modell; Kontinent wählt die gesündeste Route.

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><h4><i class="fa-aws" style="color:$primary;">:aws:</i></h4></td><td><strong>Bedrock</strong></td><td><strong>Primär</strong>: die Standardroute für <code>anthropic/claude-opus-4.8</code>.</td></tr><tr><td><h4><i class="fa-google" style="color:$primary;">:google:</i></h4></td><td><strong>Vertex</strong></td><td><strong>Standby</strong>: übernimmt automatisch, wenn die primäre Route nicht verfügbar ist.</td></tr><tr><td><h4><i class="fa-microsoft" style="color:$primary;">:microsoft:</i></h4></td><td><strong>Azure</strong></td><td><strong>Standby</strong>: eine zweite Failover-Route für dasselbe logische Modell.</td></tr></tbody></table>

Ihre Anfrage muss nie wissen, welcher Anbieter geantwortet hat. Gleiche Modell-ID, gleiches Anfrageformat, gleiche Antwort, unabhängig von der Route darunter. Wie das Failover funktioniert, lesen Sie unter [Maximale Verfügbarkeit](/documentation/dokumentation/models-and-routing/availability.md).

### Entdecken, was Sie nutzen können

Listen Sie alle für Ihre Organisation verfügbaren Modelle, inklusive EUR-Preisen und Souveränitätsstufe, mit einem Aufruf:

```bash
curl https://api.kontinent.ai/v1/models \
  -H "Authorization: Bearer $KONTINENT_API_KEY"
```

{% hint style="info" %}
Modell-IDs folgen der Konvention `provider/model`. Ein Chat-Modell an den Embeddings-Endpunkt zu senden (oder umgekehrt) wird abgelehnt; eine unbekannte oder deaktivierte ID liefert `404 model_not_found`. Siehe [Modelle & Souveränität](/documentation/dokumentation/models-and-routing/models.md).
{% endhint %}

## Weiter

{% content-ref url="/pages/K10It3CQs0qGNrzk0lXa" %}
[Maximale Verfügbarkeit](/documentation/dokumentation/models-and-routing/availability.md)
{% endcontent-ref %}

{% content-ref url="/pages/S9WX843eWYqMv0eRHDKE" %}
[Preis & Performance](/documentation/dokumentation/models-and-routing/price-performance.md)
{% endcontent-ref %}

{% content-ref url="/pages/njsb4jgBbD16Q2DIPIur" %}
[Maximaler Datenschutz](/documentation/dokumentation/privacy/data-privacy.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kontinent.ai/documentation/dokumentation/features/unified-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
