OpenAI
ChatGPT Astra
Long-horizon reasoning with a million-token working memory. The model you hand the whole repository to.
- Best for
- Deep reasoning
- Window
- 1M tokens
ModelRouter is an OpenAI-compatible gateway with a deterministic router. ChatGPT Astra and Sol, Claude Opus, Sonnet and Haiku, Gemini 4 Argon, DeepSeek V4.1 — change your base URL, keep your client, and see exactly why each request went where it did.
Flagship models routed today: ChatGPT Astra, ChatGPT Sol, Claude Opus, Claude Sonnet, Claude Haiku, Gemini 4 Argon, DeepSeek V4.1.
Sol, Sonnet, Haiku and DeepSeek V4.1 sit in the same catalog. Every request is scored against the frontier, then served by whichever model fits the task, the budget, and the latency target.
OpenAI
Long-horizon reasoning with a million-token working memory. The model you hand the whole repository to.
OpenAI
The fast frontier tier: Astra-level judgement at chat latency, built for high-volume product traffic.
Anthropic
Careful multi-step analysis and some of the steadiest code generation in the catalog.
Anthropic
The everyday frontier: close to Opus on most tasks, quick enough for agent loops.
Anthropic
The small, cheap Claude tier. Classification, extraction, and routing decisions at scale.
Multimodal reasoning across text, image, audio, and video with a very wide context window.
DeepSeek
Open-weight reasoning at a fraction of the frontier price. Strong maths, honest traces.
Keep scrolling — the runway moves the models, not the page. Open any card for a routing sample.Tap any card for a routing sample.
Point any OpenAI SDK at ModelRouter and pick a routing strategy that matches your workload — balanced, cheapest, fastest, or a custom policy you control.
Scores cost, latency, and capability together. The candidate with the best all-around fit wins.
Best composite fit
curl https://router.example/chat/completions \
-H "Authorization: Bearer \$MODELROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "router/balanced",
"messages": [{ "role": "user", "content": "Summarize this thread" }]
}'Start with a rules-based router you can audit today. Bring in a learned ranker later behind the same interface — the static policy remains the safe fallback either way.
A rules-based router that ranks providers by cost, latency, and capability. No model calls your prompt — just a decision you can audit.
A ranker trained on logged routing features, behind the same Router interface. The static policy stays the safe fallback.
The learned ranker plugs into the same Router interface. The static policy stays the safe default whenever the learned path is unavailable.
Every request carries a routing decision you can read: which model was scored, why it won, and what the alternatives were.
A chat completion arrives on the single OpenAI-compatible endpoint. The router sees the model, the policy, and the request shape — not the prompt.
The request is tagged with a routing variant — balanced, cheapest, fastest, or a custom policy you configured. The same interface handles all four.
The catalog is filtered to models that can serve the request. In this example the pool is four flagship models across three providers.
Every candidate is scored against the selected policy: cost, latency, and capability fit. The scores are real numbers, not vibes.
The highest-scoring candidate wins. The trace records why: the scores, the trade-offs, and what it would have taken for another model to win.
Why this model: Best capability fit under the cost cap. Latency inside the target band. Alternatives scored lower on the selected policy.
If the winner is unavailable, the router falls back to the next-best candidate and re-evaluates. Every fallback is part of the trace too.
The same codebase runs fully locally in Node with SQLite, and as a Cloudflare Worker. Develop on your machine, ship to the edge.
ChatGPT, Claude, Gemini and DeepSeek flagships are pulled from upstream providers and normalized into one catalog. Filter by capability, context window, or price per token.
The rows above are illustrative examples of flagship entries. Real catalog entries are synchronized from upstream providers.
Provider keys never leave the gateway. The console never renders them, and prompts are logged only when you turn that on.
Provider API keys are stored in the gateway. The console never renders them.
Keys live in the gateway configuration, not in client code or environment dumps.
The console shows only a masked representation. The secret is returned once and never displayed again.
Prompts are logged only when you turn prompt logging on. It is not the default.
Prompts are logged only when this is on.
Swap the base URL in your client. Everything else — auth, streaming, tool calls — is unchanged.
Replace `api.openai.com` with your ModelRouter endpoint. Your existing OpenAI SDK keeps working.
from openai import OpenAI
client = OpenAI(
- base_url="https://api.openai.com/v1",
+ base_url="https://router.example/v1",
api_key=os.environ["MODELROUTER_KEY"],
)Select a model by capability, cost tier, or latency target. The router scores every candidate and picks the winner with a reason you can read.
{
"model": "router/balanced",
"routing": { "costCap": 1.0, "latTarget": 200 },
"messages": [{ "role": "user", "content": "Plan the next step" }]
}Every response includes a routing trace: the candidates, the scores, the winner, and the fallback path. Debug without guessing.
{
"model": "router/balanced",
"trace": {
"winner": "Claude Opus",
"scores": { "Claude Opus": 91, "ChatGPT Astra": 74 },
"fallback": "ChatGPT Astra",
"reason": "best capability fit under cost cap"
}
}The same OpenAI SDK call, routed through ModelRouter. The trace shows which model was chosen and why.
curl https://router.example/chat/completions \
-H "Authorization: Bearer \$MODELROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "router/balanced",
"messages": [{ "role": "user", "content": "Say hello" }]
}'HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "chatcmpl-9x2k4",
"object": "chat.completion",
"created": 1730000000,
"model": "router/balanced",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
]
}routing:
winner: Claude Opus
scores:
Claude Opus: 91
ChatGPT Astra: 74
fallback: ChatGPT Astra
reason: best capability fit under cost capEvery phase keeps the same seam: one router interface, one trace format, one catalog. Nothing below is presented as finished before its tests pass.
OpenAI-compatible routes, a synced catalog, deterministic policy, explain traces, and dual runtimes.
A ranker trained on logged features, behind the same Router interface. Static policy stays the fallback.
Latency and throughput probes, durable health, and bandit-style exploration with replayable seeds.
A small routing model that reads the prompt, with the static path kept as the safe default.
Common questions about the ModelRouter gateway, routing, and runtimes.
No. ModelRouter speaks the OpenAI API. You change the base URL and keep the same SDK, the same streaming, the same tool-calling pattern.
For each request it scores every candidate model against your chosen policy — cost, latency, capability fit — and picks the winner. The decision, the scores, and the runners-up are all in the trace.
Yes. The same codebase runs fully locally in Node with SQLite, and as a Cloudflare Worker. Develop on your machine, deploy to the edge when you are ready.
Only in the gateway. The console never renders them, and prompts are logged only when you turn prompt logging on. Signing out revokes every device.
Start on the playground, or sign in to the console and wire up your own routing policy.