> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniakey.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentifizierung

> Authentifiziere OmniaKey-Anfragen mit einem Prepaid-API-Schlüssel über OpenAI-, Anthropic- und Gemini-Protokolle hinweg.

Jede OmniaKey-API-Anfrage verwendet einen API-Schlüssel aus dem
[API-Schlüssel-Dashboard](https://omniakey.com/dashboard/tokens).

## Bearer-Token

Die universelle Form ist ein Authorization-Header:

```bash theme={null}
Authorization: Bearer your-omniakey-api-key
```

Verwende diese Form für cURL, OpenAI-kompatible Clients und die meisten
individuellen Integrationen.

## SDK-Konventionen

Offizielle SDKs verwenden unterschiedliche Auth-Konventionen. OmniaKey akzeptiert
die gängigen Formen für das jeweils aufgerufene Protokoll.

| SDK oder Protokoll | Auth-Form |
| - | - |
| OpenAI SDK | `api_key` / `Authorization: Bearer` |
| Anthropic SDK | `api_key` / `x-api-key` |
| Gemini SDK | `api_key` / `x-goog-api-key` / `?key=`-Query-Parameter |

Für individuelle Integrationen ist `Authorization: Bearer` zu bevorzugen. Es
funktioniert über alle dokumentierten Endpunkte hinweg einheitlich.

## Schlüssel getrennt halten

Erstelle getrennte Schlüssel für lokale Entwicklung, CI und gemeinsame
Team-Workflows. So lässt sich ein kompromittierter Schlüssel leichter rotieren,
und du kannst pro Schlüssel Ausgabengrenzen setzen.

## Häufige Auth-Fehler

| Status | Bedeutung | Lösung |
| - | - | - |
| `401` | Schlüssel fehlt, ist inaktiv oder ungültig | Schlüssel im Dashboard erstellen oder rotieren |
| `403` | Schlüssellimit oder Kontoguthaben zu niedrig | Limit erhöhen oder Guthaben aufladen |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.