NouveauVoie Eco désormais sur 91 modèles : le même modèle, moins cher

Devise

Vous rechargez toujours en euros. Les autres devises sont affichées au taux du jour de la BCE. Taux de référence de la BCE

Se connecterCommencer

Your first API key and request

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

Le centre d’aide est rédigé en anglais et en néerlandais. Vous lisez la version anglaise.

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.

Dans ce thème: Premiers pas

Toujours bloqué ? Contactez le support

Posez votre question à Miles dans votre tableau de bord, ou parlez à une personne. Il s’agit d’un appel API ? Joignez l’ID de requête.