ModelRefs / Model Routing — Architecture Blueprint

Model Routing — Architecture Blueprint

Production architecture blueprint for Model Routing: components, deployment, cost and latency, failure modes, evaluation and governance.

Overview

This is the implementation view of Model Routing: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.

5 components to assemble, 5 documented failure modes, high implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.

Implementation complexity
high
Components
5
Failure modes
5
Evaluation readiness
documented
Sources
2read 2026-11-20

What this workflow takes in and produces

Takes in

  • requests and intent signals
  • model price and latency data
  • quality judgements or preference data
  • service-level targets

Produces

  • routing decisions
  • model choice per request
  • cost and quality reports
  • fallback and escalation records

Applied to

  • sending easy requests to cheaper models
  • escalating hard requests to stronger models
  • meeting a cost ceiling or latency target

Components you need to assemble

A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.

  • router or cascade logic
  • access to several model providers
  • quality evaluation on real traffic
  • cost and latency tracking
  • fallback and rollback

Implementation complexity: high. This describes the integration and evaluation effort, not the difficulty of any single component.

Deployment patterns

Deployment options recorded for this workflow: managed-api, hybrid.

Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.

Cost and latency

  • Measure the saving against a fixed strong-model baseline on your own traffic, including the cost and delay of the router itself.
  • A cascade that tries a cheap model first adds latency on the requests it escalates.

How this workflow fails

Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.

  • hard request sent to a weak model
  • quality loss unnoticed
  • router trained on a different traffic mix
  • provider outage without fallback
  • routing overhead that cancels the saving

Risk areas the evidence covers

  • quality retention
  • cost saving
  • routing accuracy
  • fallback
  • traffic shift

Proving it works before you ship

Evaluation readiness: Documented — Quality retention, cost saving, routing accuracy and latency measures are defined; the traffic mix and acceptable quality loss of the target service remain required.

Worked evaluation case: Routing against an always-strong baseline

Replay a sample of real requests through the router and through the strong model alone, grade both, and compare quality and cost.

What to measure

  • quality retained against the strong-model baseline
  • cost per thousand requests
  • requests wrongly sent to the weak model
  • latency added by routing
  • behaviour when a provider fails

Governance and data handling

  • Routing sends requests to several providers, so decide per data class which providers may receive it and keep that rule inside the router.
  • Log the model chosen for each request so quality problems can be traced.

Implementation notes

  • Evaluate routing against an always-strong baseline on a held-out sample of real traffic and report quality retention and cost together.
  • Re-evaluate when traffic, prices or either model changes, and keep a fallback for provider failures.

What this blueprint does not establish

  • The savings reported are the authors' figures on public benchmarks, and RouteLLM states them as holding only in certain cases.
  • FrugalGPT's 98 percent is an upper bound for specific tasks and not a typical result.
  • No traffic mix, model set, quality target, cost ceiling or acceptance threshold is registered for a target deployment.
  • No measured quality retention, cost saving or routing accuracy on a target service's traffic is attached.

Source coverage: Documented — The RouteLLM paper supports routers trained on preference data that choose between a stronger and a weaker model, with the authors reporting cost reductions of over two times in certain cases without hurting quality on public benchmarks. The FrugalGPT paper supports three cost strategies (prompt adaptation, model approximation and cascades) and reports up to a 98 percent cost reduction while matching the best single model, as a best case. Both are the authors' own results on public benchmarks, not on your traffic.

Sources read on 2026-11-20. Model prices and capabilities change often, so any saving must be re-measured before and after adoption.

Sources

Candidate models and benchmarks

Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the Model Routing workflow reference. This blueprint covers implementation; that page covers selection.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Model Routing — Architecture Blueprint.