Title: Bidu malajr LLM API: l-ewwel sej%C4%A7a %E2%80%94 LLM EU Canonical: https://llmeu.com/mt/docs/quickstart/ Markdown mirror: https://llmeu.com/mt/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 Ibda - [Bidu malajr](/mt/docs/quickstart/) - [Konsola](/mt/docs/console/) - [Migrazzjoni](/mt/docs/migration/) - [Referenza tal-API](/mt/docs/api/) Referenza - [Awentikazzjoni](/mt/docs/authentication/) - [Endpoints](/mt/docs/endpoints/) - [%C5%BBbalji](/mt/docs/errors/) - [Limiti tar-rata](/mt/docs/rate-limits/) - [Streaming](/mt/docs/streaming/) - [Politiki](/mt/docs/policies/) - [Routing u politika](/mt/docs/routing/) - [Residenza u re%C4%A1juni](/mt/docs/residency/) - [Evidenza u verifikazzjoni](/mt/docs/evidence/) - [Kompatibbilt%C3%A0 ma' OpenAI](/mt/docs/openai-compat/) Operazzjoni - [Self-hosting](/mt/docs/self-hosting/) # Bidu malajr - 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); ``` ## Referenza tal-API ## Evidenza u verifikazzjoni 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}`. Il-prezzijiet huma rre%C4%A1istrati g%C4%A7al kull endpoint u murija kull miljun token. Mudell ming%C4%A7ajr endpoint attiv huwa biss tal-katalgu: ma jistax ji%C4%A1i msejja%C4%A7 hawn, u xejn mhu mi%C4%A1bur g%C4%A7alih.