> ## Documentation Index
> Fetch the complete documentation index at: https://docs.weflayr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adaptive routing

> Benchmark candidate models on your own past calls, then route each new call to the model that performed best on similar calls.

## Context

Most AI products send every request to one model, because picking a model per request without losing quality is hard. The cheapest model that does the job changes from one request to the next, and only your own requests show which one it is.

Off-the-shelf routers rely on classifiers trained on generic data, and teams compare models on public benchmarks, which measure someone else's tasks. Neither tells you how a model will perform on your requests, so switching to a model that looks better on paper can still change how your agent behaves.

## How Adaptive Routing works

Weflayr routes on how models perform on your own requests:

1. It **benchmarks** candidate models on your own past calls, against the model you use today.
2. It **routes** each new call based on how each candidate performed on similar calls, following your cost and quality objective.

Because it learns your use case's instructions, tools and recurring patterns, the router focuses on the details of each request that actually decide which model is best. You review every model's results on your own calls before any production traffic moves.

![Offline, a sample of calls is benchmarked on dozens of models and judged against the current model. Online, the router encodes each new call, finds the most similar benchmark calls and ranks the models.](https://mintcdn.com/weflayr/fzO4KUhvv7tEobsb/images/concepts/adaptive-routing-overview.png?fit=max\&auto=format\&n=fzO4KUhvv7tEobsb\&q=85\&s=9130629c6291342f332018068c8785aa)

> [card] [Benchmarking](https://docs.weflayr.com/concepts/benchmarking.md)
>
> How candidate models are replayed on your calls and judged against your current model.

> [card] [Routing](https://docs.weflayr.com/concepts/routing.md)
>
> How the router picks the model for each new call.

## Results

On 1,177 test calls over 11 use cases, the **Best quality** objective beats Claude Opus 5.5 on quality (+20 points) at 71% lower cost, and **Same quality** beats it slightly (+5 points) at 89% lower cost, ahead of OpenRouter's Auto Router and of the published routers of LLMRouterBench.

> [card] [How Weflayr's Adaptive Routing outperforms leading LLM routers on quality and cost](https://weflayr.com/blog/adaptive-routing/)
>
> The full setup, datasets and results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.