At meaningful production volume, LLM spend becomes a line item that matters. The difference between well-routed and single-tier-everything is usually 50-70% of the monthly bill — and the routing work pays back in weeks.
Why routing matters
At 1M queries/month, the gap between Claude 5.5 Sonnet on everything (₹18 lakh) and a routed stack (₹6-8 lakh) is ₹10-12 lakh a month. The engineering to build the router is 2-3 weeks. Payback inside 60 days.
Quality matters. Bad routing costs quality. The router must be built with a measurement discipline, not as an afterthought.
The three-tier pattern
Tier 1 (fast, cheap): Claude Haiku, Gemini Flash, GPT-5-mini, or an open 8B model. Handles classification, routing, simple extraction, basic Q&A. Cost around ₹0.08-₹0.20 per query.
Tier 2 (balanced): Claude 5.5 Sonnet, Gemini 3. Handles general reasoning, structured output, code, complex extraction. Cost around ₹1.50-₹2.50 per query.
Tier 3 (frontier): GPT-5, Claude Opus 5.5 on very hard tasks. Reserved for reasoning that the balanced tier cannot handle. Cost around ₹4-₹10 per query.
Classification layer
Inbound query is classified by a Tier 1 model: task type, complexity, stakes. Classification cost under ₹0.05 per query.
Lookup table maps classification to tier. Simple classification = Tier 1. Complex reasoning = Tier 2. Legal/medical/high-stakes = Tier 3.
Fallback escalation: if Tier 1 or 2 response fails validation (schema, completeness), route to next tier. Tracked as a metric; high escalation rate signals classifier needs tuning.
When to override routing
Cost-sensitive high-volume tenant: force Tier 1 for all but marked-premium queries. Expose tier choice as a product setting.
Latency-sensitive workflow: force Tier 1 even on complex queries; accept quality cost for speed.
Compliance-sensitive workloads: route to specific models that meet compliance (e.g., Claude via AWS Bedrock Mumbai for DPDP-strict workloads).
Measured results across 12 deployments
Average cost reduction: 58% vs single-tier Claude 5.5 Sonnet baseline.
Quality impact: measurable on golden set at -2 to -5 points out of 100 on complex queries; zero measurable impact on simple queries (which is the majority).
Implementation time: 2-3 weeks per deployment including classifier tuning.
Payback: 45-70 days typical.
The discipline
Routing without measurement produces hidden quality regressions. Build the eval harness first, then route. The router's output goes through the same harness as the un-routed baseline weekly. Any regression is caught.
Key takeaways
- Three-tier routing cuts LLM costs 50-70% at meaningful production volumes.
- Classifier itself is Tier 1 and costs less than ₹0.05 per query.
- Fallback escalation catches misclassifications; track escalation rate as a tuning signal.
- Build the eval harness before the router; measure quality continuously.
Frequently asked
Surprisingly simple. A one-shot prompt with 2-5 examples and a JSON output schema works for most routing. Fine-tune only if the classifier itself becomes a bottleneck.
Both. Provider routing (Anthropic vs OpenAI vs Google) matters for compliance and latency. Model tier within a provider matters for cost-quality trade-off. Typically start with tier-within-provider, add cross-provider routing when single provider cannot meet a workload need.
Orthogonal and complementary. Prompt caching and response caching together cut another 20-40% on top of routing. Implement both.
Yes, and the payback is even faster because simple B2C workloads are 85-95% Tier 1 suitable. Start with routing on day one.