01Cache economics
Every cached token keeps working.
Cached input runs up to 10× cheaper, and boundary discipline preserves the cache through the whole task, so the discount compounds instead of resetting.
Every request has more than one capable model, at very different prices. The Agent Gateway optimizes your token spend by picking the right one every time: it classifies the task, scores quality against cost, learns from every outcome, and switches only at moments where switching is free.
02 · Decision layer
Gate · Classify · Score · Learn
01 · Dispatch layer
One API · Fallbacks · Allowlists · Keys · Limits · Spend
Two layers, one gateway: dependable dispatch beneath, an intelligent decision layer on top.
A complete dispatch layer, out of the box: one API across every provider, automatic failover, controlled keys and limits, and spend visibility from the first request.
Every provider behind one consistent surface. Swap models without a deploy.
An ordered chain takes over when a model errors, times out, or is unavailable.
Prefer balanced, lowest price, lowest latency, or highest uptime per deployment.
Pattern rules over model names, with a live count of what currently matches.
Per-team keys, so provider credentials are never handed to callers.
Request ceilings per key and team, enforced at dispatch.
Every call recorded with its cost, the raw feed TokenOps reads.
Routing traces land in the observability stack you already run.
Provider credentials come from the credential manager, not from config files.
Gate, classify, score, learn: four moves on every request. The scoring stage is live below, running the real formula with the weights in your hands.
01Gate
Model switches land at conversation start or an agent handoff, the moments a switch is free. Prompt-cache savings and tool context are preserved through every task.
02Classify
Deterministic patterns sort each request into one of seven task categories, code generation through factual lookup. Zero added latency, and accuracy you can inspect per category.
03Score
Every eligible model carries a learned per-category quality estimate, blended with its normalised cost under controlled weights. New models start from declared tier and strengths, productive from the first request.
04Learn
Every decision is logged with its spend, and every outcome sharpens the estimate. Drift tracking keeps scores current as models evolve. The Agent Gateway gets better the more you run.
Scoring simulator
Balanced
| Model | Q̂ | $ / 1M | Score |
|---|---|---|---|
| nano-3Routed | $0.40 | ||
| mid-3Routed | $4.20 | ||
| max-3Routed | $21.00 |
score = w_q · Q̂(category) + w_c · (1 − cost̂). That’s the Agent Gateway’s real scoring rule. Drag the weights, switch the task, watch the choice change.
Switches land at exactly two moments, the first turn of a session or a formal agent handoff, because those are the moments a switch costs nothing. Four disciplines make that guarantee real.
01Cache economics
Cached input runs up to 10× cheaper, and boundary discipline preserves the cache through the whole task, so the discount compounds instead of resetting.
02Tool continuity
The model that makes the tool calls is the model that finishes the task: full context, clean results, no retracing.
03Clean handoffs
Every switch lands exactly where a fresh reasoning context begins, so nothing is lost in the handover.
04Coherence
Reasoning style stays consistent from the first token to the last, so your users see one seamless answer.
Precise by design
Boundaries come from your framework’s own lifecycle events, never guessed from conversation content. Every boundary decision is visible on the dashboard, live.
Exploration-aware selection keeps re-testing every candidate, so a model that improves (or a new one you add) earns traffic on evidence. Naive greedy routing locks onto one model and stops looking; the Agent Gateway never does, and it wins on quality per dollar at every setting.
0.9 / 0.1
+27%
0.8 / 0.2
+93%
0.7 / 0.3
+69%
Quality per dollar, higher is better. The Agent Gateway wins at every weight setting, and at the default it spends 53% less doing it. Benchmark: 3,000 queries across two model tiers.
One global dial can’t run a company. The Agent Gateway’s weights are set per team and per deployment, controlled like any other policy. Each setting is an explicit, predictable threshold for when extra quality is worth paying for.
Batch enrichment, tagging, backfills: tolerant work where the cheap model is almost always right.
Product surfaces with a human reading the output. What a team gets if it sets nothing.
Work where a weak answer costs more than the strong model does. The Agent Gateway pays up on an 11-point edge.
Five commitments, each one measurable on the dashboard, so trusting the Agent Gateway never has to mean taking its word for it.
Routing is scored against always-picking-the-strongest-model, continuously. The gap between the two lines is the product working.
Candidates keep getting re-tested, so a model that improves (or a new one you add) earns traffic on evidence, not on someone remembering to re-benchmark.
Switches happen only at clean boundaries, so prompt-cache discounts and tool continuity are never sacrificed to save a cent.
Classification is reported per category, never averaged away, so a weak class is visible the day it appears, with a tracked reason.
Every reported figure regenerates from committed code on demand, so an eval you read is an eval you can run.
You get what those offer: one API for every provider, fallback chains, virtual keys, rate limits and spend tracking. The Agent Gateway adds choosing a model for each request. It sorts each request into a task type, scores quality against cost, and learns from the outcomes, so cost follows how hard the task is.
No. The Agent Gateway only switches at clean boundaries: the start of a conversation or a handoff between agents. Cached input, which can be up to 10× cheaper, keeps its discount for the whole task, and the model that made the tool calls is the one that finishes the task.
You set the trade-off per team and per deployment. Tolerant batch work leans cheap, and work where a weak answer is costly pays for the strong model. Results are continuously compared against always picking the strongest model, and accuracy is reported for each task type rather than averaged.
The call goes through anyway. If routing misses, Nasiko falls back to the best candidate model instead of failing the call.