Why Are LLM Bills Skyrocketing? Cost Governance for Tokens, Caching, and Routing
This article explains why large language model bills grow out of control and how to bring them back under control. Instead of focusing on per-unit price, it breaks down the real cost structure across input tokens, output tokens, and cached tokens, then shows how request amplification, repeated context billing, and routing every task to the most expensive model drive total spend. It covers a three-part pricing model, common token amplification sources, a simplified cost estimation formula, practical ways to improve cache hit rates, tiered model routing with example logic, and observability and budgeting practices. Readers will get a practical checklist for building a sustainable AI cost governance loop.
1. The Real Reason Bills Skyrocket: Cost Structure, Not Unit Price
When many teams launch an LLM-powered application, their first reaction is that the per-unit price is too high. But once you break down the bill, three things usually cause costs to spiral: request volume gets amplified, context is billed repeatedly, and every task is sent to the most expensive model. Unit price is only a multiplier; what really determines the total is the “volume” in front of that multiplier.
So the first step in cost governance is not to cut unit price, but to build an observable cost structure. Without usage data broken down by business line, user, and feature, any optimization is guesswork.
2. Tokens: The Unit of Cost and Its Amplification Effect
2.1 Three-Part Pricing: Input, Output, and Cache
The industry commonly splits LLM calls into three billing segments: input tokens, output tokens, and cache-hit tokens. The unit prices differ significantly. Output is usually much higher than input, while the cache-hit price is typically only a small fraction of the input price. This means that for the same request, the longer the output and the larger the context, the faster the bill grows.
Note that specific unit prices change constantly as models iterate. The table below only demonstrates the calculation method, in units per million tokens. Before going live, always refer to the actual pricing in the console of your chosen platform.
| Scenario | Input Price | Cache-Hit Price | Output Price | Typical Use |
|---|---|---|---|---|
| High-capability model | Higher | About one-tenth of input | Highest | Complex reasoning, agent tasks, critical business |
| Lightweight model | Low | About one-tenth of input | Low | Classification, summarization, customer service, high concurrency |
2.2 Overlooked Amplification Sources
- Multi-turn conversations resend the full history; the more turns, the faster input tokens grow, linearly or even faster.
- Retrieval augmentation stuffs entire documents into the context; the more you retrieve, the larger the input.
- Agent-style tasks call the model repeatedly, costing several times more per task than a normal Q&A.
- Verbose output with no length constraints directly inflates the most expensive segment.
2.3 Estimation Formula
You can use a simplified formula for capacity planning:
Cost per call ≈ input_tokens/1e6 * input_price+ hit_tokens/1e6 * cache_price+ output_tokens/1e6 * output_priceMonthly cost ≈ cost per call * daily_requests * 30
Plug in tunable parameters such as trimmed message history, number of retrieved items, and maximum output length, and you can quickly see which segment holds the most optimization potential.
3. Caching: Turning Repeated Context into a Discount
3.1 Why Caching Saves Money
When the request prefix (system prompt, fixed instructions, long documents) stays unchanged, the platform can reuse already-computed intermediate results, and the hit portion is billed at the cache price. For long prompts, fixed knowledge bases, and batch tasks of the same type, the savings from a higher hit rate can be substantial.
3.2 How to Improve the Hit Rate
- Put unchanging content first and variable content last to keep the prefix stable.
- Avoid inserting volatile fields such as timestamps or random IDs at the beginning of the prompt.
- Aggregate batch tasks under the same template to reduce template drift.
- Establish stable versions for long documents to avoid frequent changes that invalidate the cache.
3.3 Watch the Boundaries
Caching is not permanently valid; there are expiration and invalidation policies. The hit rate must be measured, not assumed. Treat “cache hit rate” as a core metric to monitor continuously, rather than a one-time optimization.
4. Routing: Sending Each Request to a Model That Is “Good Enough”
4.1 Tiered Routing
Layer tasks by difficulty: simple classification, extraction, and formatting go to lightweight models; complex reasoning, code, and agent workflows go to high-capability models. In practice, a large share of production requests fall into the simple tier, and sending all of them to expensive models is the biggest waste.
4.2 Routing Signals
- Input length and whether it contains long documents.
- Task type label (Q&A / summarization / classification / generation / reasoning).
- Confidence and retry strategy: escalate to a stronger model only when confidence is low.
- Business value: allow high cost for critical business, and strictly throttle long-tail traffic.
4.3 Example Code
def route(req):if req.task in ("classify", "extract", "format"):return "light_model"if req.tokens > 8000 or req.task == "agent":return "strong_model"return "mid_model"
The key to routing is that it must be “fallback-capable and measurable”: every escalation should be logged to make it easy to review cost and effectiveness.
5. Observability and Budgets: Putting Costs in a Cage
- Tagging: attach business line, feature, user, and environment labels to every call.
- Dashboards: aggregate tokens and cost by label to locate the top consumers.
- Budgets and alerts: set daily/monthly thresholds, and automatically downgrade or throttle as thresholds approach.
- Load testing: estimate the monthly bill using real traffic distribution before launch to avoid overspending on day one.
- Archiving: send call logs and usage details to logging services and object storage for auditing and traceability.
6. Implementation Checklist
- Build a three-part cost ledger and break down usage by business line.
- Stabilize the prefix to improve the cache hit rate and monitor it continuously.
- Implement tiered routing and push simple tasks down to lightweight models.
- Constrain output length and the number of retrieved items to suppress input amplification.
- Set budget alerts and automatic downgrades to form a closed-loop governance process.
7. Conclusion
The essence of LLM bill governance is switching from a “unit-price mindset” to a “structure mindset”: use tokens to understand measurement, use caching to compress repetition, use routing to match difficulty, and use observability and budgets to close the loop. Models will keep iterating, but this analytical framework of input, output, caching, and routing remains effective in the long run, serving as a stable handle for controlling AI costs.
