Title: LLM API kiirstart: esimene p%C3%A4ring %E2%80%94 LLM EU Canonical: https://llmeu.com/et/docs/quickstart/ Markdown mirror: https://llmeu.com/et/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 Alustamine - [Kiire algus](/et/docs/quickstart/) - [Konsool](/et/docs/console/) - [Migratsioon](/et/docs/migration/) - [API viide](/et/docs/api/) Viited - [Autentimine](/et/docs/authentication/) - [L%C3%B5pp-punktid](/et/docs/endpoints/) - [Vead](/et/docs/errors/) - [Kiiruspiirangud](/et/docs/rate-limits/) - [Voogedastus](/et/docs/streaming/) - [Poliitikad](/et/docs/policies/) - [Marsruutimine ja poliitika](/et/docs/routing/) - [Residentuur ja piirkonnad](/et/docs/residency/) - [T%C3%B5endid ja kontrollimine](/et/docs/evidence/) - [OpenAI %C3%BChilduvus](/et/docs/openai-compat/) K%C3%A4itamine - [Isehostimine](/et/docs/self-hosting/) # Kiire algus - 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); ``` ## API viide ## T%C3%B5endid ja kontrollimine 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}`. Hinnad on salvestatud l%C3%B5pp-punkti kohta ja n%C3%A4idatud miljoni tokeni kohta. Mudel, millel pole aktiivset l%C3%B5pp-punkti, on ainult kataloogis: seda ei saa siin kutsuda ja selle eest ei v%C3%B5eta midagi.