Requesty
Back|NOV '26ROUTING / REQUESTY FEATURES
6 MIN READ|

How Requesty picks a provider for every request: speed, price and reliability in one score

Last updated

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:

text
score = speed ^ speed_weight × price ^ price_weight × (1 / success_rate) ^ reliability_weight
Three routes for the same model. Route A is fast and mid-priced, Route B is slower but almost half the price, Route C is fastest but three times the price. Route B gets the lowest score and is picked.
Illustrative numbers. Price is per request after cache discounts.

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:

Python
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.

Weight presets: Cheapest ignores speed, Fastest ignores price, Balanced weighs all three equally, Most reliable doubles reliability, and managed policies use 0.4 for speed, 0.5 for price and 1 for reliability.
The four presets in the Advanced strategy, and the default used by managed policies.

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.

Cost per token for the same customers on open-weight managed policies, compared with the same weekday a week earlier: 19% lower on Friday, 14% lower on Saturday, 24% lower on Sunday and 36% lower on Monday. 20% lower over the four days, with median latency within its normal range.
Same customers, same policies, compared with the same weekday 7 days 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.

The Advanced strategy in the Requesty Console, with presets for Cheapest, Balanced, Fastest and Most reliable, and sliders for speed, price and reliability weights.
The Advanced strategy in the Requesty Console. A weight of 0 ignores that factor.

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.
Related reading

Start building with Requesty

One line of code. 600+ models. Full control.

Speak to founders