Authentication
How to authenticate with the EUrouter API using API keys.
API keys
API keys authenticate your requests to EUrouter. Each key is tied to your account and tracks usage for billing.
Creating a key
- Go to your Dashboard
- Navigate to API Keys
- Click Create New Key
- Copy and store it securely — you won't see it again
Key format
eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUsing your API key
Include your key in the Authorization header:
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": "Hello!"}]
}'Environment variables
Store your key in an environment variable — never hardcode it:
export EUROUTER_API_KEY="eur_your_key_here"Security
Keep keys secret
- Never commit keys to version control
- Don't expose keys in client-side code
- Use environment variables or secret managers
Use separate keys
Create different keys for different environments or applications. This makes it easier to rotate keys and track usage.
Rotate regularly
If a key may have been exposed, delete it immediately and create a new one.
Rate limits
API keys are subject to rate limits based on your plan:
| Plan | Requests per minute |
|---|---|
| Free | 20 |
| Plus | 60 |
| Pro | 150 |
The pricing page is the source of truth for current plan limits.
Rate limit headers
Rate-limited responses return 429 Too Many Requests. They can also include:
| Header | Description |
|---|---|
| Header | Description |
| ------------- | ------------------------------------------ |
Retry-After | Seconds until you can retry, when provided |
When rate limited
If you exceed your limit, wait for the Retry-After period when provided. Otherwise, retry with exponential backoff and jitter.
Need higher limits?
Contact us to discuss custom rate limits for your use case.
Revoking keys
To revoke a key:
- Go to API Keys in your Dashboard
- Find the key
- Click Delete
Revoked keys are invalidated immediately and cannot be restored.