Browse documentation

API Reference: Endpoints, Auth & Errors

Complete nRouter API reference: explore OpenAI and Anthropic compatible endpoints for chat completions, embeddings, audio, and intelligent model routing.

nRouter exposes an OpenAI- and Anthropic-compatible API at https://api.nrouter.ai with unified authentication, zero percent (0%) platform fees, and real-time edge telemetry. Standard SDKs connect by setting base URL to https://api.nrouter.ai/v1 with your sk-nrouter-* virtual key.

Pass-through rates (0% fee), 4-phase preflight security, scoped virtual keys, and real-time latency and spend reporting via x-nr-* headers are standard across all endpoints.

Endpoints

16 of 16 endpoints

Authentication

Every request takes your virtual key (sk-nrouter-...) as a Bearer token:

curl https://api.nrouter.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-nrouter-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.5","messages":[{"role":"user","content":"Hello!"}]}'

See Chat Completions for streaming and schemas.

Was this page helpful?