Title: Inicio r%C3%A1pido API LLM: primera llamada %E2%80%94 LLM EU Canonical: https://llmeu.com/es/docs/quickstart/ Markdown mirror: https://llmeu.com/es/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 Empezar - [Inicio r%C3%A1pido](/es/docs/quickstart/) - [Consola](/es/docs/console/) - [Migraci%C3%B3n](/es/docs/migration/) - [Referencia de la API](/es/docs/api/) Referencia - [Autenticaci%C3%B3n](/es/docs/authentication/) - [Endpoints](/es/docs/endpoints/) - [Errores](/es/docs/errors/) - [L%C3%ADmites de tasa](/es/docs/rate-limits/) - [Streaming](/es/docs/streaming/) - [Pol%C3%ADticas](/es/docs/policies/) - [Enrutamiento y pol%C3%ADtica](/es/docs/routing/) - [Residencia y regiones](/es/docs/residency/) - [Evidencia y verificaci%C3%B3n](/es/docs/evidence/) - [Compatibilidad con OpenAI](/es/docs/openai-compat/) Operar - [Autoalojamiento](/es/docs/self-hosting/) # Inicio r%C3%A1pido - 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 de la API ## Evidencia y verificaci%C3%B3n 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}`. Los precios se registran por endpoint y se muestran por mill%C3%B3n de tokens. Un modelo sin endpoint activo es solo de cat%C3%A1logo: no se puede invocar aqu%C3%AD y no se cobra nada por %C3%A9l.