Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Agent Bills Rise Before Useful Reasoning: Tiered Routing Fix

· 7 min read · Home Tech

In this article
  1. The Core Problem: Billing by Token, Not by Value
  2. Why Reasoning Models Are So Expensive
  3. What Is Tiered Routing?
  4. How to Implement a Tiered Routing Fix
  5. Common Pitfalls and Misconceptions
  6. Real-World Example: Customer Support Agent
  7. Cost-Benefit Analysis of Routing
  8. Alternatives to Tiered Routing
  9. Frequently Asked Questions

Agent bills rise before useful reasoning because most systems charge for every token processed, including the long chain-of-thought steps that often fail to reach a correct answer. A tiered routing fix addresses this by sending only simple queries to cheap, fast models and reserving expensive, deep-reasoning models for complex problems, so you stop paying premium rates for routine work.

The Core Problem: Billing by Token, Not by Value

Modern AI agents are billed per token—every word in and out costs money, and reasoning models like OpenAI's o1 or DeepSeek's R1 charge significantly more per token than standard models. When an agent attempts a task, it may generate hundreds or thousands of hidden reasoning tokens before producing a final answer. If that reasoning is wrong or unnecessary, you still pay for every token.

For example, a simple arithmetic question like "What is 15% of 80?" might trigger a reasoning model to produce 500 tokens of deliberation, costing 10-50x more than a standard model that answers in 10 tokens. The bill rises because the pricing model is volume-based, not outcome-based.

Why Reasoning Models Are So Expensive

Reasoning models are trained to "think" before answering—they generate internal monologue, explore multiple hypotheses, and self-correct. This approach dramatically improves accuracy on complex tasks like math proofs, code debugging, or multi-step planning, but it comes at a cost:

  • Longer outputs: A reasoning model may emit 10,000 tokens to solve a problem a standard model solves in 500.
  • Higher per-token prices: Reasoning models often cost 3-15x more per input and output token than standard models.
  • No refunds for wrong answers: If the reasoning leads to an incorrect result, you still pay for the entire reasoning chain.

This creates a perverse incentive: agents that default to powerful reasoning models on every request will generate enormous bills, even for trivial tasks.

What Is Tiered Routing?

Tiered routing is a strategy where the agent classifies each incoming request and sends it to the cheapest model that can handle it reliably. A typical setup has three tiers:

  1. Tier 1 (Cheap & Fast): Standard models like GPT-4o-mini or Claude Haiku for simple Q&A, data extraction, or formatting tasks.
  2. Tier 2 (Balanced): Mid-tier models like GPT-4o or Claude Sonnet for moderate complexity—summarization, basic code generation, or multi-step instructions.
  3. Tier 3 (Expensive Reasoning): Reasoning models like o1 or Claude Opus for genuinely hard problems—advanced math, complex debugging, or long-horizon planning.

Routing can be rule-based (e.g., keyword matching, token length thresholds) or ML-based (a classifier that predicts which model will succeed). The goal is to match the model's capability to the task's difficulty.

How to Implement a Tiered Routing Fix

Implementing tiered routing requires a few key steps:

  • Define your tiers: Choose 2-3 models with clear price/performance differences. Document their strengths and weaknesses.
  • Build a classifier: Start with simple heuristics—if the prompt contains "calculate," "prove," or "debug," route to the reasoning tier. For more nuance, train a lightweight classifier on labeled examples of easy vs. hard tasks.
  • Add a fallback mechanism: If the cheap model fails (e.g., returns an error, low confidence, or the user asks for more detail), escalate to the next tier. This ensures quality without upfront cost.
  • Monitor and adjust: Track accuracy and cost per tier. Over time, you may find that certain task types are misclassified—adjust your routing rules accordingly.

A simple rule-based example: if the input is under 200 characters and contains no mathematical symbols or code, route to Tier 1. If it contains "explain step by step" or "why," route to Tier 2. If it contains "derive," "optimize," or "multi-step," route to Tier 3.

Common Pitfalls and Misconceptions

One common misconception is that tiered routing always reduces accuracy. In practice, a well-designed router can maintain or even improve accuracy because it prevents cheap models from being forced on hard tasks and prevents reasoning models from being wasted on easy ones.

Another pitfall is over-engineering the router. A complex ML classifier may cost more to run than it saves. For many use cases, simple keyword rules or a threshold on prompt length are sufficient.

A third issue is ignoring the cost of the router itself. If the router calls a model to classify every request, that adds latency and cost. Rule-based routers are nearly free; ML-based routers add a small inference cost.

Finally, don't forget that reasoning models can sometimes be cheaper for complex tasks because they avoid multiple rounds of trial-and-error with a standard model. The comparison should be end-to-end cost, not just per-token price.

Real-World Example: Customer Support Agent

Consider a customer support agent that handles 10,000 tickets per day. Without routing, it uses a reasoning model for every ticket, generating an average of 2,000 tokens per ticket at $15 per million output tokens. That's $300 per day.

With tiered routing:

  • 70% of tickets are simple (password reset, order status) and go to a cheap model costing $0.50 per million tokens, averaging 100 tokens each. Cost: $0.35 per day.
  • 20% are moderate (refund requests, troubleshooting) and go to a mid-tier model at $5 per million tokens, averaging 500 tokens each. Cost: $5 per day.
  • 10% are complex (escalations, technical issues) and go to the reasoning model, averaging 2,000 tokens each. Cost: $30 per day.

Total daily cost: ~$35.35—an 88% reduction. Accuracy on simple tickets stays high because the cheap model is perfectly adequate for those tasks.

Cost-Benefit Analysis of Routing

Is tiered routing always worth it? The answer depends on your traffic volume and the cost difference between tiers. If you handle only a few requests per day, the savings may be negligible. But for high-volume applications, the math is compelling.

Consider the break-even point: if your reasoning model costs 30x more per token than your cheap model, and you route 70% of traffic to the cheap tier, you can cut costs by roughly 90%. Even with a 10x price difference, you'd save about 60%.

However, there are hidden costs: development time, maintenance, and the risk of misrouting. A misrouted hard problem to a cheap model may produce a wrong answer, leading to user dissatisfaction or rework. A misrouted easy problem to a reasoning model just wastes money. You must decide which failure mode is more acceptable.

Alternatives to Tiered Routing

Tiered routing is not the only way to control agent costs. Other approaches include:

  • Token limits: Cap the maximum number of reasoning tokens a model can generate. This prevents runaway costs but may truncate useful reasoning.
  • Model caching: Store and reuse responses for identical or similar queries. This works well for static FAQs but not for dynamic tasks.
  • Human-in-the-loop: Have a human review which tasks need reasoning models. This is expensive in human time but can be more accurate than an automated router.
  • Fine-tuning cheaper models: Train a small model on your specific task distribution to match the reasoning model's accuracy on your data. This is a one-time cost that can pay off long-term.

Each alternative has trade-offs. Token limits are easy to implement but may hurt quality. Caching is simple but limited. Human review is accurate but not scalable. Fine-tuning is powerful but requires data and expertise.

Frequently Asked Questions

Does tiered routing work with any LLM provider?

Yes, tiered routing is provider-agnostic. You can route between models from the same provider (e.g., GPT-4o-mini vs. GPT-4o) or across providers (e.g., Claude Haiku vs. GPT-4o). The key is that your router can call different APIs based on the classification.

How do I know which tasks are "simple" vs. "complex"?

Start with heuristics: task type (Q&A vs. code generation), input length, presence of technical terms, and required output length. Over time, analyze your logs to see which tasks the cheap model handles correctly and which it fails. Use that data to refine your rules.

Will routing add noticeable latency?

Rule-based routing adds negligible latency (microseconds). ML-based routing adds the inference time of the classifier, which is typically 50-200ms. For most applications, this is acceptable, but for real-time chat, it may be noticeable.

What if the cheap model gives a wrong answer?

Implement a fallback: if the cheap model's response fails a confidence check or the user asks for more detail, escalate to the next tier. This ensures that critical tasks still get the reasoning model when needed, but only when needed.

Is it better to use one reasoning model for everything?

Only if you prioritize simplicity over cost. For low-volume or high-stakes applications, the extra cost may be worth it. For high-volume, cost-sensitive applications, tiered routing is almost always better.