NuevoCarril Eco ya en 91 modelos: el mismo modelo a menor precio

Moneda

Siempre recargas en euros. Las demás monedas se muestran al tipo de cambio de hoy del BCE. Tipos de cambio de referencia del BCE

Iniciar sesiónEmpezar

Your first API key and request

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

El centro de ayuda está escrito en inglés y neerlandés. Estás leyendo la versión en inglés.

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.

En este tema: Primeros pasos

¿Sigues con dudas? Contacta con soporte

Pregunta a Miles en tu panel o habla con una persona. ¿Es sobre una llamada a la API? Envía el ID de la solicitud.