Back to writing
ArchitectureAIRoutingCostScalability

Multi-Model Routing: There Is No Right Model, Only a Decision per Task

Wictor VargasWictor Vargas6 min

Multi-model routing: there is no right model, only a decision per task.

In the previous article, I wrote about observability and why, without traceability, there is no trust.

One of the first things a good trace reveals is uncomfortable:

Most calls did not need the model that answered them.

Simple classifications going through the most expensive model. Trivial extractions with long reasoning. Repeated questions being processed from scratch.

Today I want to talk about that.

Because the question "what is the best model?" is the wrong one.

The right question is: what is the best model for this task, at this cost, within this deadline?

The single-model pattern

Almost every AI project starts like this:

  1. The team tests a few models
  2. Picks the one that did best in the prototype
  3. Uses that model for everything

It makes sense at the beginning. It reduces variables and speeds up validation.

The problem is that this choice is rarely revisited.

And in production, it gets expensive:

  • Cost: simple tasks pay the price of complex ones
  • Latency: users wait for a large model on something a small one would solve
  • Dependency: a change in a vendor's pricing, policy, or availability affects the whole system
  • Risk: a silent model degradation hits every feature at the same time

A single model is a single point of decision.

And in architecture, single points tend to become single points of failure.

Different tasks, different requirements

Inside the same product, AI tasks are very different from each other.

Think of a customer service assistant:

TaskWhat matters
Classifying the intent of a messageLow latency and cost
Extracting data from a documentPrecision and structured output
Answering based on company policyGrounding and source citations
Resolving an ambiguous caseReasoning and quality
Summarizing the conversation for a human agentConsistency and cost

Using the same model, with the same effort, for all of these tasks is like using the same database instance for caching, transactions, and analytics.

It works.

Until the bill arrives.

What a router actually is

Multi-model routing is a layer that decides, on every call, which model and which level of effort should handle that task.

That decision can take into account:

  • The type of task
  • How critical the result is
  • The latency SLA
  • The available budget
  • The kind of data involved
  • That model's quality history for that task

There are three common ways to do it.

1. Static routing per task

Each feature has its model defined in configuration.

  • Classification goes to a small model
  • Policy answers go to a mid-sized model with RAG
  • Critical cases go to the most capable model

It is simple, predictable, and already removes most of the waste.

For most teams, this is where to start.

2. Routing by classification

A small model, or even a rule, evaluates the input and picks the path.

Simple questions take the cheap path. Complex questions move up to a larger model.

It requires more care: the classifier becomes a critical part of the architecture and must be evaluated as such.

3. Cascading escalation

The system tries the cheapest model first.

If the answer fails validation, because of invalid format, low confidence, or missing sources, the task moves up to the next level.

It is efficient when there is an objective validation criterion.

Without that criterion, it is just a slower way of paying twice.

The router is not only about cost

When people talk about routing, the conversation usually stops at savings.

But the architectural gains are bigger.

Resilience. If a vendor becomes unavailable or slow, the router triggers a fallback. The system degrades, but it does not stop.

Vendor independence. With a single interface between the application and the models, swapping or adding a vendor becomes a configuration change, not a rewrite.

Governance. Tasks that involve sensitive data can be restricted to approved models and regions. The rule lives in one place.

Continuous evolution. A new model can start by receiving a fraction of the traffic for a single task, be compared with the current one, and only then be promoted.

Routing turns model choice from a project decision into an operational decision.

And operational decisions can be measured, reviewed, and corrected.

The risks of routing badly

Like any new layer, the router brings its own problems.

The most common ones:

  • Inconsistency: different models answer in different ways, and users notice
  • Prompts coupled to the model: the same prompt does not perform equally on every model
  • Incomplete evaluation: each task and model combination needs its own test set
  • Premature complexity: a dynamic router in a system with three features is engineering with no return
  • Black box: if the trace does not record which model answered and why, no incident can be explained

That is why routing only works well on top of two foundations I have already discussed here: continuous evaluation and observability.

Without evaluation, you do not know whether the cheap model is good enough.

Without observability, you do not know which model answered.

Where to start

A pragmatic path:

  1. Map the tasks: list every model call in the system and what it does
  2. Define the criterion for each task: cost, latency, quality, or compliance
  3. Create a single interface between the application and model vendors
  4. Start with static routing: one model per task, defined in configuration
  5. Build an evaluation set per task before swapping any model
  6. Record in the trace the model, the version, and the reason for the choice
  7. Measure cost and quality per task, not as a system-wide average

Only after that does it make sense to think about dynamic classification or cascades.

Final reflection

Model choice is usually treated as a bet: you pick the best one of the moment and hope it stays that way.

But models change. Prices change. Vendors change.

What needs to be stable is the architecture that decides.

There is no right model.

There is a decision, made per task, measured in production, and revisited whenever the context changes.

And that decision should not be scattered across the code.

It should be designed.

It is architecture.

Wictor Vargas
Written by Wictor Vargas

AI & Systems Architect. A new article every 15 days.

Enjoyed the article?Share it with someone taking AI to production.
Biweekly newsletter

Continue this reading in your inbox

Join the newsletter and receive new articles every 15 days on architecture, AI, governance, and the decisions that connect technology to business.

Read next