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

Your first API key and request

Add credit, create a key and send one request. It takes a few minutes.

Il centro assistenza è scritto in inglese e in olandese. Stai leggendo la versione inglese.

The Quick start on your dashboard takes you through the same steps.

  1. Add credit. Requests need a balance above zero. Top up from €10 on app.nexrouting.com/credits. See Buy credits.
  2. Create a key. Open app.nexrouting.com/keys, choose New key, give it a name and choose Create key. Copy the key right away: we show it only once.
  3. Store the key in an environment variable, never in code you share:
export NEXROUTING_API_KEY="nr-v1-…"
  1. Send a request. Point the SDK you already use at https://api.nexrouting.com/v1, or try it with curl:
curl https://api.nexrouting.com/v1/chat/completions \
  -H "Authorization: Bearer $NEXROUTING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-6-astra",
    "messages": [{"role": "user", "content": "Say hello in five words."}]
  }'
  1. Check it. The request shows up on app.nexrouting.com/usage with its tokens and cost.

Examples for Python, JavaScript and curl are in the quickstart.

Your dashboard also has a Playground, where you can try any model on your balance without a key. We don’t save the chat: it’s gone when you leave the page.

In questo argomento: Per iniziare

Serve ancora aiuto? Contatta il supporto

Chiedi a Miles nella tua dashboard, o parla con una persona. Riguarda una chiamata API? Invia l’ID della richiesta.