Title: Tagairt API %E2%80%94 LLM EU Canonical: https://llmeu.com/ga/docs/api/ Markdown mirror: https://llmeu.com/ga/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 Tosaigh - [T%C3%BAs tapa](/ga/docs/quickstart/) - [Cons%C3%B3l](/ga/docs/console/) - [Imirce](/ga/docs/migration/) - [Tagairt API](/ga/docs/api/) Tagairt - [F%C3%ADordheimhni%C3%BA](/ga/docs/authentication/) - [Cr%C3%ADochphoint%C3%AD](/ga/docs/endpoints/) - [Earr%C3%A1id%C3%AD](/ga/docs/errors/) - [Teorainneacha r%C3%A1ta](/ga/docs/rate-limits/) - [Sruth%C3%BA](/ga/docs/streaming/) - [Polasaithe](/ga/docs/policies/) - [R%C3%B3d%C3%BA agus beartas](/ga/docs/routing/) - [C%C3%B3naitheacht agus r%C3%A9igi%C3%BAin](/ga/docs/residency/) - [Fianaise agus f%C3%ADor%C3%BA](/ga/docs/evidence/) - [Comhoiri%C3%BAnacht OpenAI](/ga/docs/openai-compat/) Oibri%C3%BA - [F%C3%A9in-%C3%B3st%C3%A1il](/ga/docs/self-hosting/) # Tagairt API 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 } ``` Only zero retention is implemented. Policies can store 24h, 7d or 30d choices; this does not enable storage. A request exceeding the policy first returns 403 retention_exceeds_policy; an allowed effective retention other than zero returns 501 retention_not_implemented. ## 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 } } ``` ## Earr%C3%A1id%C3%AD The complete code table, with the status, the type and what to do about each one, is at[Earr%C3%A1id%C3%AD](/ga/docs/errors/) %E2%80%94 rendered from the same source the API uses. ## Cr%C3%ADochphoint%C3%AD Every mounted route, with the credential it needs, is at [Cr%C3%ADochphoint%C3%AD](/ga/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} ```