Title: D%C3%A9marrage API LLM : votre premier appel %E2%80%94 LLM EU Canonical: https://llmeu.com/fr/docs/quickstart/ Markdown mirror: https://llmeu.com/fr/docs/quickstart.md Machine-readable: https://llmeu.com/llms.txt (index) - https://llmeu.com/llms-full.txt (full catalogue) - https://llmeu.com/llms-catalogue.json Premiers pas - [D%C3%A9marrage rapide](/fr/docs/quickstart/) - [Console](/fr/docs/console/) - [Migration](/fr/docs/migration/) - [R%C3%A9f%C3%A9rence de l'API](/fr/docs/api/) R%C3%A9f%C3%A9rence - [Authentification](/fr/docs/authentication/) - [Points de terminaison](/fr/docs/endpoints/) - [Erreurs](/fr/docs/errors/) - [Limites de d%C3%A9bit](/fr/docs/rate-limits/) - [Streaming](/fr/docs/streaming/) - [Politiques](/fr/docs/policies/) - [Routage et politique](/fr/docs/routing/) - [R%C3%A9sidence et r%C3%A9gions](/fr/docs/residency/) - [Preuves et v%C3%A9rification](/fr/docs/evidence/) - [Compatibilit%C3%A9 OpenAI](/fr/docs/openai-compat/) Exploitation - [Auto-h%C3%A9bergement](/fr/docs/self-hosting/) # D%C3%A9marrage rapide - Create an account in the[console](https://app.llmeu.com/app/signup) and copy the API key %E2%80%94 it is shown once. - Point any OpenAI-compatible client at `https://api.llmeu.com/v1`. - Call `llmeu-auto` and read the `llmeu` block in the response. ## cURL ``` curl https://api.llmeu.com/v1/chat/completions \ -H "Authorization: Bearer $LLMEU_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "llmeu-auto", "messages": [{"role": "user", "content": "Say hello from EU hosting."}], "llmeu": {"residency": "eu-hosted", "task": "general"} }' ``` ## Python ``` from openai import OpenAI client = OpenAI(base_url="https://api.llmeu.com/v1", api_key="llmeu_live_xxxxxxxx.your-secret") resp = client.chat.completions.create( model="llmeu-auto", messages=[{"role": "user", "content": "Say hello from EU hosting."}], ) print(resp.choices[0].message.content) print(resp.llmeu.inference_region, resp.llmeu.trace_id) ``` ## JavaScript ``` import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.llmeu.com/v1", apiKey: process.env.LLMEU_API_KEY }); const resp = await client.chat.completions.create({ model: "llmeu-auto", messages: [{ role: "user", content: "Say hello from EU hosting." }], }); console.log(resp.choices[0].message.content); console.log(resp.llmeu.inference_region); ``` ## R%C3%A9f%C3%A9rence de l'API ## Preuves et v%C3%A9rification Every response carries a `llmeu` block: `trace_id`, `model_used`, `inference_region`, `sovereignty_class`, `route_reason` and the retention that applied. Fetch the full row with `GET /platform/v1/traces/{id}`. Les prix sont enregistr%C3%A9s par endpoint et affich%C3%A9s par million de tokens. Un mod%C3%A8le sans endpoint actif est uniquement au catalogue : il ne peut pas %C3%AAtre appel%C3%A9 ici, et rien n'est factur%C3%A9 pour lui.