Guide
Move from OpenRouter to Nicrron
Nicrron is an OpenAI-compatible gateway: one key for models from Anthropic, OpenAI, xAI, DeepSeek, Moonshot AI, Z.ai, Mistral AI and more, with a fallback model list and provider routing in the request.
If your app already talks to a gateway through the OpenAI SDK, moving takes a new base URL, a new key, and a check of your model ids.
1. Change the base URL and key
Set the base URL to https://api.nicrron.ai/v1 and use a key from the dashboard. Requests and answers keep the OpenAI chat completions shape.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.nicrron.ai/v1",
api_key=os.environ["NICRRON_API_KEY"],
)
reply = client.chat.completions.create(
model="anthropic/claude-sonnet-5-5",
messages=[{"role": "user", "content": "Hello!"}],
extra_body={
"models": ["openai/gpt-6-sol"], # fallback list
"provider": {"sort": "latency"}, # provider routing
},
)
print(reply.model, reply.provider) # who answered2. Check your model ids
Ids are maker/model, but the model part may be written differently from what you use today: Nicrron writes anthropic/claude-sonnet-5-5, with dashes. Look each one up on the models page or with GET /v1/models. An unknown id answers 404, so a wrong one shows up on the first request.
3. Map fallbacks and routing
models is a list of up to 10 fallback models, tried in order after model. The provider object picks which providers serve a model:
- order
- Try these providers first, in this order; the rest follow.
- only
- Use only these providers.
- ignore
- Never use these providers.
- sort
- "price", "latency" or "throughput": order endpoints by blended price, measured latency or tokens per second.
- allow_fallbacks
- false tries one endpoint per model instead of moving on to the next provider.
Routing slugs pick models for you: nicrron/auto, nicrron/reasoning, nicrron/coding, nicrron/fastest and nicrron/cheapest. They are described in the models docs.
4. Add credit and watch the first requests
API keys spend paid credit, so add some in the dashboard first. Each request shows in your usage logs with its model, provider and cost, and GET /v1/generation?id= returns the cost and timing of one request.
Also on Nicrron
- Response cache
- A request with
temperature: 0is answered from cache when the identical request was answered before for your account, and a hit costs nothing. - Your own provider keys
- Add an OpenAI, Anthropic or other provider key and that provider bills you; Nicrron charges 5% of the list price. See Authentication.
- Model Arena
- Send one prompt to several models side by side in the Arena, before you change code.
- Teams and alerts
- A shared team balance, member budgets, and alerts for a low balance or a day's spend. See Teams and alerts.
Questions
- Is Nicrron an alternative to OpenRouter?
- Nicrron is an OpenAI-compatible gateway to models from Anthropic, OpenAI, xAI, DeepSeek, Moonshot AI, Z.ai, Mistral AI and others, with one key, a fallback model list, provider routing and per-token billing at list price plus a 5% platform fee. Many apps can move by changing the base URL, the key and their model ids.
- Do model ids stay the same?
- They follow the same maker/model pattern, but the model part can be written differently: Nicrron writes anthropic/claude-sonnet-5-5, for example. Look each id up on nicrron.ai/models or with GET /v1/models before you switch.
- Does Nicrron support a fallback list and provider routing?
- Yes. Send models (up to 10 fallback models, tried in order after model) and a provider object with order, only, ignore, sort and allow_fallbacks. The answer's model and provider fields say who answered.
- How do I pay?
- Add credit in the Nicrron dashboard. API keys spend paid credit at each model's list price, plus a 5% platform fee. There is no subscription.