EUrouter

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

  1. Go to your Dashboard
  2. Navigate to API Keys
  3. Click Create New Key
  4. Copy and store it securely — you won't see it again

Key format

eur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Using 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:

PlanRequests per minute
Free20
Pro60
Enterprise300

Rate limit headers

Every response includes rate limit information:

HeaderDescription
X-RateLimit-LimitMax requests per window
X-RateLimit-RemainingRequests left in window
X-RateLimit-ResetUnix timestamp when window resets
Retry-AfterSeconds 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:

  1. Go to API Keys in your Dashboard
  2. Find the key
  3. Click Delete

Revoked keys are invalidated immediately and cannot be restored.


On this page