AI · Engineering · Developer Tools · Model Routing

Most of Your Agent's API Calls Don't Need Your Best Model. Routing Is How You Find the Ones That Do.

10 November 2026 · Devectra

The default architecture is one model, everywhere

Most teams that build an AI agent or an LLM-backed feature start with a single model wired into every call site. One model classifies the user's intent, one model drafts the reply, one model summarizes the retrieved document, one model decides whether to call a tool. It's the simplest thing to ship, and for a prototype it's the right call — don't build infrastructure you don't need yet.

The problem shows up after launch, when the bill arrives. A frontier model costs several times more per token than a mid-tier model from the same family, and an order of magnitude more than a small one. If your agent fires five or six model calls per user turn — classify, retrieve, rerank, draft, check, respond — and every single one of those calls goes to your most expensive model, you're paying frontier prices for work that doesn't need frontier reasoning. Deciding whether a support ticket is "billing" or "technical" doesn't need the same model you'd use to debug a gnarly multi-step refund policy.

This is the problem model routing is built to solve: send each request to the cheapest model that can still get it right, and reserve the expensive model for the requests that actually need it.

What routing actually looks like in production

There are two broad approaches worth knowing, and they're not interchangeable.

Learned routers. RouteLLM, an open-source framework released by the LMSYS group (the team behind Chatbot Arena), trains a classifier on human preference data to predict whether a cheap model's answer would be judged as good as a frontier model's answer for a given query. In their published benchmarks, a matrix-factorization router reached about 95% of GPT-4's quality on MT-Bench while sending only roughly a quarter of queries to GPT-4 — and after augmenting the training data, that share dropped further, with the team reporting cost reductions in the 48–75% range against a random-routing baseline, depending on the benchmark and router variant. The actual savings on your traffic will differ, because MT-Bench and MMLU are not your support tickets or your contract-review prompts — but the mechanism (train a difficulty/quality classifier, not a hand-written rule) is the part worth borrowing.

Managed routers. Amazon Bedrock's Intelligent Prompt Routing works differently: it routes within one model family (for example, across tiers of the same provider's models) rather than across vendors, and AWS states it can cut costs by up to 30% without a meaningful quality hit — with the caveat that it's currently tuned for English prompts. That's a much smaller lift to adopt than training your own router, at the cost of being locked to one provider's model lineup.

A third category — gateway tools like OpenRouter — route primarily on provider availability, latency, and price across many vendors rather than on predicted answer quality. That solves a different problem (failover and price shopping), not the one this post is about.

Where routing quietly breaks

The failure mode isn't that routing doesn't work. It's that it works well enough in testing to ship, and then degrades in ways nobody notices because nobody's measuring the right thing.

The classifier is a second model you now have to maintain. Whether it's a trained router or a simpler heuristic ("if the prompt is under 200 tokens and matches these patterns, use the cheap model"), it has its own error rate, and its mistakes are invisible by default — a misrouted request doesn't throw an error, it just produces a worse answer that looks plausible. If you don't have evals that catch quality regressions per task type, you won't know routing broke something until a customer complains.

The overhead can eat the savings. A router that makes its own LLM call to decide where to send the real request can roughly double latency and cost on every turn — at which point you're paying for a decision that costs almost as much as just picking the expensive model. Lightweight classifiers (embedding-based, or a small fine-tuned model) add single-digit milliseconds; LLM-as-router adds a full extra round trip. Know which one you're building before you commit to the pattern.

Routing within a family isn't routing across capability tiers. A router that only moves you between two models of similar architecture (as Bedrock's family-scoped routing does) caps your savings at what that family's smallest tier costs. If your real cost driver is using a reasoning-heavy frontier model for simple classification, you need a router that's allowed to send that request somewhere genuinely cheaper, which usually means cross-provider.

When it's actually worth building

For most SMB-scale agent deployments — a handful of call sites, moderate volume — a hand-written routing rule based on task type beats a learned classifier. If "classify this support ticket" and "draft a legal-sounding refund denial" are two distinct, known call sites, just hardcode which model handles each. You don't need RouteLLM's preference-trained classifier to know that intent classification doesn't need your frontier model.

The case for a learned router shows up when you have one call site that receives a wide, unpredictable range of query difficulty — a general-purpose chat interface, a ticket triage system fielding everything from "reset my password" to a multi-step billing dispute — and high enough volume that the savings from routing exceed the cost of building and maintaining the classifier. Below that volume, you're adding a moving part to save less than an engineer's time to build and monitor it.

Either way, the prerequisite is the same: you need task-specific evals before you route, not after. Routing is a bet that a cheaper model is "good enough" for a given request. Without a way to measure "good enough" per task type, you're not optimizing cost — you're gambling with it, and you won't find out you lost until it shows up downstream as a worse customer experience.

The takeaway

Don't route because routing is available; route because you've measured that a specific call site is paying frontier prices for non-frontier work. Start with hardcoded model assignment per call site, add a learned or managed router only at the volume where the savings clearly beat the maintenance cost, and build the per-task eval before the router — not after you've already shipped it and started wondering why quality is slipping.

Have a system like this in mind?

Get a scoped plan ↗
Most of Your Agent's API Calls Don't Need Your Best Model. Routing Is How You Find the Ones That Do. — Devectra Blog — Devectra