Title: R%C3%BDchly %C5%A1tart LLM API: prv%C3%A9 volanie %E2%80%94 LLM EU Canonical: https://llmeu.com/sk/docs/quickstart/ Markdown mirror: https://llmeu.com/sk/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 Za%C4%8D%C3%ADname - [R%C3%BDchly %C5%A1tart](/sk/docs/quickstart/) - [Konzola](/sk/docs/console/) - [Migr%C3%A1cia](/sk/docs/migration/) - [Referencia API](/sk/docs/api/) Referencia - [Autentifik%C3%A1cia](/sk/docs/authentication/) - [Endpointy](/sk/docs/endpoints/) - [Chyby](/sk/docs/errors/) - [Limity r%C3%BDchlosti](/sk/docs/rate-limits/) - [Streamovanie](/sk/docs/streaming/) - [Politiky](/sk/docs/policies/) - [Smerovanie a politika](/sk/docs/routing/) - [Rezidencia a oblasti](/sk/docs/residency/) - [D%C3%B4kazy a overenie](/sk/docs/evidence/) - [Kompatibilita s OpenAI](/sk/docs/openai-compat/) Prev%C3%A1dzka - [Vlastn%C3%BD hosting](/sk/docs/self-hosting/) # R%C3%BDchly %C5%A1tart - 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); ``` ## Referencia API ## D%C3%B4kazy a overenie 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}`. Ceny sa zaznamen%C3%A1vaj%C3%BA pre ka%C5%BEd%C3%BD endpoint a zobrazuj%C3%BA sa za mili%C3%B3n tokenov. Model bez akt%C3%ADvneho endpointu je iba katal%C3%B3gov%C3%BD: ned%C3%A1 sa tu vola%C5%A5 a ni%C4%8D sa za%C5%88 ne%C3%BA%C4%8Dtuje.