NovitàCorsia Eco ora su 91 modelli: lo stesso modello a un prezzo più basso

Valuta

Ricarichi sempre in euro. Le altre valute sono indicate al tasso BCE del giorno. Tassi di riferimento BCE

AccediInizia

Documentazionev1

Menu della documentazioneCurrent key

GET/v1/key

Current key

GET /v1/key: the name, budget, spend, rate limit, allowed models and expiry date of the key you call it with.

La documentazione è in inglese.

Returns the details of the key you call it with. Handy to test a key, or to check its budget from code. Works while an account is suspended, too.

Base URL: https://api.nexrouting.com/v1 (also https://nexrouting.com/api/v1).

Headers

Authorizationstringrequired
Authorization: Bearer <key> (or x-api-key: <key>).

Example request

curl https://api.nexrouting.com/v1/key \  -H "Authorization: Bearer $NEXROUTING_API_KEY"

Example response

200 OK
{  "data": {    "id": "key_3f9a1c2b7d4e5f60a1b2",    "name": "Production",    "label": "nr-v1-3fa…9c1d",    "limit": 25,    "usage": 3.141592,    "limit_remaining": 21.858408,    "rate_limit": { "requests": 600, "interval": "1m" },    "allowed_models": ["anthropic/claude-sonnet-5.5", "openai/gpt-6-astra:eco"],    "expires_at": "2027-06-30T23:59:59.999Z",    "created_at": "2026-11-19T10:12:00.000Z",    "balance": 42.5  }}

Fields

idstring
The ID of the key. Not secret; mention it when you ask support about a key.
namestring
The name you gave the key.
labelstring
The first nine and the last four characters of the key, to recognise it.
limitnumber | null
The budget in US dollars, or null without a budget.
usagenumber
What the key has spent since it was created, in US dollars.
limit_remainingnumber | null
Budget left, or null without a budget.
rate_limitobject
requests per interval (always 1m). See Rate limits.
allowed_modelsarray | null
The model IDs this key may use, or null for every model.
expires_atstring | null
When the key stops working (ISO 8601), or null.
created_atstring
When the key was created (ISO 8601).
balancenumber
The balance of the organization, in US dollars.

This request costs nothing, but counts against the key's rate limit.

Errors

401 missing_api_key, 401 invalid_api_key, 401 api_key_expired and 429 rate_limit_exceeded. See Errors.