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": "gpt-5.1",
"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 |
| Pro | 60 |
| Enterprise | 300 |
Rate limit headers
Every response includes rate limit information:
| Header | Description |
|---|---|
X-RateLimit-Limit | Max requests per window |
X-RateLimit-Remaining | Requests left in window |
X-RateLimit-Reset | Unix timestamp when window resets |
Retry-After | Seconds until you can retry (when limited) |
When rate limited
If you exceed your limit, you'll receive a 429 Too Many Requests response. Wait for the Retry-After period before retrying.
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.