Title: API-Referenz %E2%80%94 LLM EU Canonical: https://llmeu.com/de/docs/api/ Markdown mirror: https://llmeu.com/de/docs/api.md Machine-readable: https://llmeu.com/llms.txt (index) - https://llmeu.com/llms-full.txt (full catalogue) - https://llmeu.com/llms-catalogue.json Einstieg - [Schnellstart](/de/docs/quickstart/) - [Konsole](/de/docs/console/) - [Migration](/de/docs/migration/) - [API-Referenz](/de/docs/api/) Referenz - [Authentifizierung](/de/docs/authentication/) - [Endpunkte](/de/docs/endpoints/) - [Fehler](/de/docs/errors/) - [Rate Limits](/de/docs/rate-limits/) - [Streaming](/de/docs/streaming/) - [Richtlinien](/de/docs/policies/) - [Routing und Richtlinien](/de/docs/routing/) - [Datenhaltung und Regionen](/de/docs/residency/) - [Nachweise und Pr%C3%BCfung](/de/docs/evidence/) - [OpenAI-Kompatibilit%C3%A4t](/de/docs/openai-compat/) Betrieb - [Selbst hosten](/de/docs/self-hosting/) # API-Referenz One base URL, one bearer token, two surfaces. ## Chat completions Standard fields are accepted: `model`, `messages`, `temperature`, `top_p`, `max_tokens`, `stream`, `stop`, `presence_penalty`, `frequency_penalty`, `user`, `tools`, `tool_choice`, `response_format`, `seed`. ## LLM EU extensions A namespaced `llmeu` object in the request body. Official SDKs ignore unknown fields, so adding it never breaks a client. ``` "llmeu": { "residency": "eu-hosted" | "eu-owned" | "de" | "any", "task": "general" | "coding" | "reasoning" | "translation" | "vision" | "cheap" | "legal-draft" | "rag", "retention": "zero", "data_class": "public" | "internal" | "confidential" | "restricted", "policy_id": "uuid", "max_usd_per_1m": 0.5, "allow_partners": false } ``` Nur zero ist als Aufbewahrungsmodus implementiert. Richtlinien k%C3%B6nnen 24h, 7d oder 30d speichern; dies aktiviert keine Speicherung. %C3%9Cberschreitet die Anfrage die Richtlinie, folgt zuerst 403 retention_exceeds_policy; eine erlaubte effektive Aufbewahrung ungleich zero wird mit 501 retention_not_implemented abgelehnt. ## Response Standard OpenAI shape, plus: ``` { "choices": [...], "usage": {...}, "llmeu": { "trace_id": "%E2%80%A6", "model_used": "%E2%80%A6", "model_version": "%E2%80%A6", "provider": "%E2%80%A6", "endpoint_id": "%E2%80%A6", "inference_region": "de-fra", "sovereignty_class": "eu_owned_eu_operated", "route_reason": "auto routing for task \"coding\" + residency eu-hosted + %E2%80%A6", "policy_id": "%E2%80%A6", "retention": "zero", "cost_estimate_usd": 0.000123 } } ``` ## Fehler Die vollst%C3%A4ndige Code-Tabelle mit Status, Typ und Vorgehen steht unter[Fehler](/de/docs/errors/) %E2%80%94 gerendert aus derselben Quelle, die die API verwendet. ## Endpunkte Jede eingeh%C3%A4ngte Route, mit den n%C3%B6tigen Zugangsdaten, steht unter [Endpunkte](/de/docs/endpoints/). ``` GET https://api.llmeu.com/platform/v1/me GET https://api.llmeu.com/platform/v1/api-keys POST https://api.llmeu.com/platform/v1/api-keys DELETE https://api.llmeu.com/platform/v1/api-keys/{id} GET https://api.llmeu.com/platform/v1/traces?limit=50 GET https://api.llmeu.com/platform/v1/traces/{id} GET https://api.llmeu.com/platform/v1/usage?days=30 GET https://api.llmeu.com/platform/v1/policies POST https://api.llmeu.com/platform/v1/policies PUT https://api.llmeu.com/platform/v1/policies/{id} ```