Automatically route to the fastest available model
Latency-Based Routing automatically selects the fastest model for each request based on real-time performance data. Requesty continuously monitors response times and routes to the lowest-latency option.
Every request is scored against live performance data, and the fastest available provider wins.
Requesty continuously measures how every model in your policy is performing right now, across all traffic flowing through the router. Recent requests count more than older ones, so the picture reflects current conditions rather than yesterday’s averages.
2
Score each candidate
When a request arrives, the router scores every model in your policy. The score accounts for how fast each one starts responding, how quickly it generates the rest of the output, and how much of each it has actually observed recently. Models with little recent data are scored optimistically so they still get tried.
3
Route to the fastest, then fall back
The router orders candidates fastest-first and sends your request to the top one. If it fails, the request automatically falls through to the next-fastest, and so on down the list.
The result: traffic continuously shifts toward whatever is fastest at the moment, with no manual tuning, and it adapts within minutes when a provider slows down or recovers.
Requesty measures both time-to-first-token (how fast a model starts responding) and generation speed (how fast it produces the rest of the output), so a model that starts quickly but generates slowly does not get an unfair advantage.
Metric
Description
Time-to-first-token
Time from request sent to first token received
Generation speed
How quickly tokens are produced after the first one
Request size
Performance is tracked separately for small and large requests, since they behave differently
Scope
Measured across all traffic on the router, so even your first request benefits from data others have already generated
Window
A rolling window of recent requests (about the last hour), weighting newer requests more heavily
Reliability
Models returning rate limits or server errors are penalized, so routing favors models that are both fast and reliable
Models with little recent latency data are still tried from time to time so the router can learn how they perform. After a handful of requests, it has enough signal to route them accurately.
Every policy page includes a Live Performance panel showing real traffic across the models in the policy. Switch between Latency, Success, and Speed over the last 24 hours or 7 days to see where your requests are going and how fast each model responds.For deeper analysis:
Models without recent data are scored optimistically, so they get tried from time to time to gather performance signal. Once they have measurements, they compete fairly against everything else in the policy.
Does latency routing consider cost?
No. Latency routing only considers speed. If you want cost optimization, use load balancing to prefer cheaper models, or manually order a fallback chain by price.
Can I force a specific model for some requests?
Yes. Instead of using the latency policy, pass a direct model name (e.g., openai/gpt-5.2) for requests where you need a specific model.
How often does latency data update?
Continuously. Latency metrics are updated after every request. The router uses a rolling average of recent requests to smooth out spikes.
What happens if the fastest model fails?
Latency routing tries models in speed order. If the fastest model fails, it tries the second-fastest, and so on.
Can I see which model was selected?
Yes. Check the response headers or request logs in Analytics. You will see which model handled each request.
Unlike load balancing, latency routing does not pin a user to one model. If you want the same conversation to keep hitting the same provider (for prompt cache reuse), pass a trace_id: the router keeps its ordering stable for requests that share a trace, while still adapting across new conversations.
Last modified on August 3, 2026
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.