If there's one architectural idea that separates cost-effective AI products from money pits, it's the router: send easy requests to a cheap, fast model, and escalate only the hard minority to an expensive frontier one. With tiered model lineups now standard and cheap models genuinely capable, the router pattern has become the default design for affordable, high-quality AI.
The core insight
Most traffic hitting a real AI product is easy — routine questions, simple classifications, standard generations — with a minority of genuinely hard cases. Sending everything to your best model means paying frontier prices for requests a cheap model would nail. A router matches each request to the cheapest model that can handle it, capturing frontier quality only where it's actually needed.
Most requests are easy; a few are hard. Pay accordingly. That one sentence is worth more, at scale, than almost any prompt-tuning trick.
How to build one
Several approaches, increasing in sophistication:
- Rule-based — route by request type, length, or keywords. Simple, transparent, surprisingly effective as a first cut.
- Classifier — a small, cheap model predicts difficulty (or category) and routes accordingly.
- Cascade — try the cheap model first; if its answer is low-confidence or fails a check, escalate to the stronger one. Pays the frontier cost only when the cheap attempt falls short.
Making it reliable
The keys to a good router: a way to detect when the cheap model isn't good enough (confidence signals, validation checks, verifiability), sensible defaults, and monitoring so you can tune the routing over time. Watch the escalation rate — if almost everything escalates, your "cheap" path isn't pulling its weight; if quality dips, you're under-escalating.
Why it's more powerful now
Two 2026 shifts supercharge the router: cheaper, stronger low tiers mean the "cheap" path handles far more, at higher quality, than it used to; and tiered lineups from every provider make escalation trivial. The gap between a well-routed product and one that defaults everything to the flagship is now enormous — often the single biggest cost lever you have.
Why it matters
The router pattern is how the best AI products get frontier quality where it counts and rock-bottom cost everywhere else. It's more impactful at scale than almost any prompt optimization, and cheaper capable models only widen its advantage. If you build one thing into your AI architecture this year, make it a router.