NewEco lane now on 91 models: the same model at a lower price

Currency

You always top up in euro. Other currencies are shown at today's ECB rate. ECB reference rates

Sign inGet started

Budget, allowed models and expiry date

Limit what a key can spend, which models it can use and how long it works.

Set these when you create a key, or later with Edit on app.nexrouting.com/keys.

Budget
The total a key may spend, from $0.01 to $1,000,000. It’s a total over the key’s whole life, not per month. When it’s reached, requests fail with 402 and the code key_budget_exceeded until you raise the budget.
Allowed models
All models, or Only these. Other models fail with 403 and the code model_not_allowed. Allowing a model also allows its Eco lane; allowing only the Eco lane (…:eco) doesn’t allow Standard.
Expiry date
The key works until the end of that day (UTC), at most five years ahead. After that, requests fail with 401 and the code api_key_expired.

Check a key from your code with GET /v1/key. It returns the limit, usage, remaining budget, rate limit, allowed models and expiry date of the key you send:

curl https://api.nexrouting.com/v1/key \
  -H "Authorization: Bearer $NEXROUTING_API_KEY"
In this topic: API keys

Still stuck? Contact support

Ask Miles in your dashboard, or talk to a person. Writing about an API call? Send the request ID along.