Why Is LLM Inference Cost So Hard to Reduce?
Two models with nearly identical benchmark scores can produce very different bills. This article explains why token price alone is a misleading selection criterion, how total versus activated parameters and reasoning token consumption affect the real cost per task, and how engineering teams can shift evaluation from price per million tokens to cost per completed task through tiered routing, budget-constrained decoding, context compression, caching, and observability.
1. The Phenomenon: Matching Scores, Unequal Bills
A typical contrast has recently emerged in the industry: two large models with almost identical capability scores, one with roughly 753B total parameters and about 40B activated per call, the other with roughly 2.8T total parameters and about 104B activated per call. The former has a clearly lower token price, yet when the cost is converted to the total spend for completing a real task, it is only about 20% cheaper. At the same time, some small models with only a few billion parameters can approach much larger models on public general-capability leaderboards, while their inference token consumption is extraordinarily high.
Both cases point to the same conclusion: capability scores are only the entry ticket; what really determines the budget is the cost per unit of task, which is jointly determined by unit price and token efficiency. For developers and enterprise users, selecting a model based on token price alone makes it easy to find, only after a billing cycle ends, that expectations were not met.
2. Define the Metrics First
Discussing cost requires unifying three concepts that are easily confused.
- Intelligence-index-style scores: multiple capability tests are normalized and then aggregated with weights. This works well for a lateral “capability checkup,” but it does not tell you how many tokens a specific task consumes.
- Total parameters and activated parameters: under a sparse (mixture-of-experts) architecture, total parameters determine the upper limit of model capacity, while activated parameters determine the compute for a single forward pass. Fewer activated parameters usually means lower compute overhead and better throughput potential, but not necessarily fewer output tokens.
- Inference token volume: this generally includes reasoning-process tokens and final output tokens. It is the direct multiplier on the bill and the part most likely to spiral out of control in long-chain reasoning models.
With a unified definition, cost can be written as a minimal formula:
cost per task ≈ (input tokens × input price + reasoning tokens × output price) / 1,000,000
This formula shows that if the unit price drops by 50% while token consumption rises by 100%, the cost per task actually increases.
3. Why Post-Training Optimization Raises Scores but Also Token Consumption
The two models in the original case share the same base model, and the difference comes mainly from the post-training stage. Post-training typically includes supervised fine-tuning, preference alignment, and reinforcement learning with verifiable rewards. The goal is to make the model better at breaking down problems and better at self-verification. The benefit is higher accuracy on complex reasoning and code tasks; the cost is that the model becomes more inclined to “think longer” and to write intermediate steps out explicitly.
This creates a structural contradiction:
- Benchmark questions are often difficult and multi-step, so the model tends to extend its chain of thought to improve accuracy.
- Chain-of-thought tokens are billed as output and are usually long text, so they cannot benefit from input-side caching optimizations.
- When the price advantage is offset by the token count, the cost-performance advantage is compressed.
Therefore, “same score, different cost” is not a billing anomaly but a difference in how capability is obtained: one achieves the same score with fewer parameters and a shorter path, the other achieves it with longer explicit reasoning.
4. Switch Evaluation from Unit Price to Cost per Task
Teams are advised to build their own cost table with fields that include at least: task type, average input tokens, average reasoning tokens, accuracy/pass rate, P95 latency, and cost per task. When evaluating, do not look only at average scores; look at the cost-effectiveness curve.
Illustrative evaluation script (pseudocode):
def evaluate(model, tasks):total_cost, total_pass = 0.0, 0for t in tasks:r = model.run(t.prompt)cost = (r.input_tokens * r.in_price+ r.output_tokens * r.out_price) / 1e6total_cost += costtotal_pass += int(r.passed(t.checker))return {"pass_rate": total_pass / len(tasks),"cost_per_task": total_cost / len(tasks)}
The key criterion is not “who is cheaper,” but: under the premise of meeting the quality threshold, who has a lower cost_per_task and more controllable P95 latency.
5. Cost-Reduction Techniques on the Engineering Side
- Tiered routing: send simple requests to a small model or a short-thinking mode, and escalate only complex requests, avoiding one-size-fits-all long reasoning.
- Budget-constrained decoding: set a cap or segmented budget for thinking tokens, and force the output to converge once it is exceeded.
- Prompt and context compression: deduplication, summarization, and retrieval-snippet trimming directly reduce input tokens.
- Cache reuse: cache stable prefixes to reduce repeated input overhead (specific capabilities depend on the general categories offered by the platform in use, such as caching, object storage, and message queues).
- Batching and asynchrony: submit offline tasks in batches to trade throughput for cost, while online paths focus on latency.
- Observability: use logging services and monitoring alerts to build dashboards for tokens, cost, and failure rate, and allocate bills by business line.
6. Selection Checklist
- Define the quality threshold first, then discuss price; being cheap without meeting the threshold is meaningless.
- Measure the token distribution with real business samples rather than relying only on official leaderboards.
- Pay attention to P95 cost and latency for long-tail tasks, since the long tail often swallows the budget.
- Keep multiple model fallbacks and degradation strategies to avoid single-vendor dependency.
- Make “cost per successful task” the north-star metric rather than price per million tokens.
7. Conclusion
Fewer parameters and a lower unit price do not automatically mean lower spending; what really creates the gap is token efficiency and task success rate. Migrating the evaluation standard from unit price to cost per task, combined with tiered routing, budget constraints, and an observability system, is what makes it possible to strike a sustainable balance between effectiveness and budget.
