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.
- Add credit. Requests need a balance above zero. Top up from €10 on app.nexrouting.com/credits. See Buy credits.
- 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.
- Store the key in an environment variable, never in code you share:
export NEXROUTING_API_KEY="nr-v1-…"- 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."}]
}'- 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.