Router Documentation
Build with open models through one familiar API. Explore the guides, choose your model, and make your first connection.
Quickstart
From your first API key to your first response, in a few simple steps.
API reference
Explore request parameters, response formats, and working examples.
Models & availability
Find your model. Understand API editions, limits, and available capacity.
Become a provider
Connect your computer and share your models through Core Node.
How the pieces fit
Your application talks only to Router. Router checks each request, selects eligible capacity, and relays the provider's output back to you.
Your model, your code
Use an OpenAI client or a simple HTTP request. Choose a supported model, send a message, and receive a complete answer or stream it into your application.
ROUTER_REQUEST_ID="$(uuidgen)" # Reuse this ID if you retry the same request.curl "$ROUTER_BASE_URL/chat/completions" \ -H "Authorization: Bearer $ROUTER_API_KEY" \ -H "Idempotency-Key: $ROUTER_REQUEST_ID" \ -H "X-Max-Charge-Credits: 5.000000" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma3:1b", "messages": [ { "role": "user", "content": "Hello!" } ] }'Set ROUTER_BASE_URL to the endpoint shown in Developer API, including /v1. Keep ROUTER_API_KEY in your server environment.
A few useful starting points
Follow a request from your application to an available provider.
OpenAI compatibilitySee the exact endpoints, parameters, and SDK behavior supported today.
SDK recipesBuild with cURL, Python, or TypeScript using complete examples.
Security & privacyProtect keys and understand where provider inference runs.
Build a reliable integration
- Choose a model and validate its current edition limits.
- Use Auto or choose a provider at a reviewed pricing revision.
- Design messages that stay within the supported text surface.
- Stream responses while preserving clear completion and error states.
- Add bounded retries and cancellation.
- Correlate failures with usage and observability.
- Parse the complete error response contract.