Most popular models are served by several providers. DeepSeek, GLM, Kimi and Claude can each reach you through three, four or more of them, and those routes are not equal. One is faster this hour. Another is cheaper once its cache discount is counted. A third starts returning rate limits on a busy afternoon. The cheapest route on paper can end up costing you more if it cannot keep your prompt cache warm.
Picking a provider by hand means picking for one moment. Our managed policies make that choice again for every new conversation, using what the router saw over the last few minutes. This post explains how that decision works and what we weigh.
Three things we measure
Speed. The router keeps live latency for every route, split by streaming versus non-streaming and by input size, because a 2,000 token chat turn and a 200,000 token agent turn behave differently. Recent requests count most: a measurement from a few minutes ago weighs far more than one from an hour ago, so the numbers follow the provider as its load changes.
Price after caching. List prices are the starting point, never the answer. For each route we price the request at its actual input size, at the moment it arrives, so scheduled discounts like off-peak pricing count from the minute they start. Then we apply the cache discount that route delivers in practice on live traffic. A provider with a higher list price and a better cache can be the cheaper choice, and the score reflects that.
Reliability. We track the share of requests each route completes without a provider error: rate limits, overloads, timeouts and server errors. Errors caused by the request itself, like a malformed body, do not count against the provider.
One score per route
The three measurements are combined into one number, and the lowest number wins:
score = speed ^ speed_weight × price ^ price_weight × (1 / success_rate) ^ reliability_weight
Because the factors multiply, the score responds to relative differences. A route that is twice as slow takes the same penalty whether the baseline is 300 milliseconds or 3 seconds. A route at half the price earns the same credit whether the request costs a tenth of a cent or ten cents. The weights are exponents, so they decide how much a given ratio is worth on each axis.
A few things follow from that design:
- Large prompts lean toward price. Price is computed for the real size of the request, so on a 300,000 token agent turn the price gap between routes is large in dollars, and the cheaper route is more likely to win.
- Fast but expensive does not win by default. Route C in the figure is the fastest, and it still loses, because it costs more than five times as much as Route B to save 1.2 seconds.
- A failing route sinks fast. Reliability enters as one over the success rate, so a route that starts failing gets pushed down the order well before it reaches zero.
Conversations stay where they started
Switching providers halfway through a conversation throws away the prompt cache, and on agent workloads the cache is usually the largest single lever on the bill. So the score is used once, on the first request of a conversation. Later turns stay on the same route and keep reading the cache they built.
This pinning works best with a stable trace_id per session:
response = client.chat.completions.create(
model="deepseek-v4.1-flash@eu",
messages=messages,
extra_body={"requesty": {"trace_id": "session-8f2c"}},
)Every route stays a fallback
Scoring decides the order, never the membership. Every route in a managed policy stays in it. When the first route returns a retryable error, the request moves to the next one in score order within the same call, and your code sees one successful response.
We also send a small share of new conversations to routes without recent data, so a provider that improves gets noticed and earns traffic back on its own. No manual review is needed for the ranking to follow the market.
The weights
The weights express what matters most. Managed policies use a default we tuned on production traffic: price 0.5, speed 0.4 and reliability 1. Reliability carries the most weight because a failed request costs you time and a retry, whatever its price.

First results
We moved our high-volume managed policies onto this scoring on 27 November. To measure the effect without being fooled by changes in who sends traffic, we compared each customer on each policy with what the same customer paid on the same policy exactly one week earlier.

Over the first four days, customers on managed open-weight policies paid 20% less per token for the same workloads, and the gap widened each weekday as more new conversations started under the new scoring. Median latency stayed within its normal range. Closed-model policies, where list prices are mostly identical across providers, moved by a few percent either way, as you would expect when the remaining differences are speed and reliability.
This is one early measurement on our own traffic. It is not independently verified, and the saving on your account depends on your models and your cache behaviour.
Use it on your own policies
The same scoring is available to every customer. When you create a routing policy in the Console, pick the Advanced strategy, choose a preset or set your own weights, and use policy/<name> as the model in your requests.

A few starting points:
- Batch jobs and background agents: Cheapest. Speed is ignored and price leads, with reliability still in the score.
- Interactive chat and coding assistants: Balanced, or raise speed above price.
- Production paths where a failure is expensive: Most reliable.
If you would rather not tune anything, use a managed policy. We maintain the routes, the weights and the fallbacks, and the score does the rest on every request.
Create a free account to set up your first Advanced policy in the Requesty Console, or browse the managed policies.
Frequently asked questions
- How does Requesty decide which provider serves a request?
- For each route in the policy, the router multiplies three live measurements: speed raised to the speed weight, price after caching raised to the price weight, and one over the success rate raised to the reliability weight. The route with the lowest score is tried first. The rest stay in the policy as fallbacks, in score order.
- Which price does the router use?
- The list price for the size of this request, priced at the moment the request arrives, then adjusted for the cache discount that route delivers in practice. Scheduled discounts, such as off-peak pricing, count from the minute they start.
- Does switching providers break prompt caching?
- No. The first request of a conversation picks the route and later turns stay on it, so the cache built during the session keeps being read. Pass a stable trace_id per session to keep that pinning reliable.
- What happens when the chosen provider fails?
- The request moves to the next route in score order, inside the same call. Failed requests also lower that route's success rate, so new conversations move away from it within minutes.
- Can I use the same strategy on my own policies?
- Yes. Pick the Advanced strategy when you create a routing policy in the Console, then choose a preset (Cheapest, Balanced, Fastest, Most reliable) or set your own weights for speed, price and reliability.
- OCT '26
Introducing Auto Routing: your rules, the right model
Auto Routing is live in beta. You describe the kinds of work you get in plain language and point each one at a model. A decision model reads the first message, picks a route and pins it for the session. On our own Claude Code sessions it cut model cost by 42% against sending everything to Opus 5.5.
- JAN '26
Routing policies 101: fallback, load balancing, and latency in production
The three routing-policy primitives every LLM gateway needs (fallback chains, weighted load balancing, and latency-based selection) and when to use each. Written for teams deploying multi-model production setups.
- AUG '26
86% of agent token burn is cached input: cache hit rate is the number that decides your bill
Agents now burn 7.3 trillion tokens a week on one marketplace, a 14x rise in under a year, and 86% of that is cached input. Providers price a cache hit as low as 1/40 of a miss. So the difference between a 96% hit rate and a 19% hit rate on identical work is most of your invoice, and almost nobody measures it.
- JAN '25
What is LLM Routing?
