Quickstart
Get started with EUrouter in under 5 minutes.
Create an account
Create an account if you haven't already.
Get your API key
- Go to your Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy and store it securely — you won't see it again
Your key looks like this: eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Set your environment variable
export EUROUTER_API_KEY="eur_your_key_here"Make your first request
curl https://api.eurouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $EUROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistral-large-3",
"messages": [
{"role": "user", "content": "Say hello in three languages!"}
]
}'const response = await fetch("https://api.eurouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EUROUTER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "mistral-large-3",
messages: [{ role: "user", content: "Say hello in three languages!" }],
}),
});
if (!response.ok) throw new Error(`EUrouter request failed: ${response.status}`);
console.log(await response.json());import os
import requests
response = requests.post(
"https://api.eurouter.ai/api/v1/chat/completions",
headers={"Authorization": f"Bearer {os.environ['EUROUTER_API_KEY']}"},
json={
"model": "mistral-large-3",
"messages": [{"role": "user", "content": "Say hello in three languages!"}],
},
timeout=60,
)
response.raise_for_status()
print(response.json())Verify the response
A successful request returns 200 OK with the generated message in choices[0].message.content. It also includes token usage and the provider selected by EUrouter.
If the request fails, confirm that the API key is present, the model exists in the live catalog, and your account has sufficient credits. See Authentication for 401 and 429 guidance.
FAQ
Next steps
API Reference
Full endpoint documentation.
Models
Learn more about the concept of models and how to use them.
Providers
Learn how EUrouter routes to providers.