Why LLM Inference Cost Is Not the Same as Price per Token
This article explains why a lower price per million tokens does not always lead to a lower bill when running large language models. It shows how total cost depends on input, output, and reasoning tokens, and why task completion quality must be included in any fair comparison. You will learn a practical cost model, a reproducible evaluation method with fixed tasks and scripted acceptance checks, three common cost patterns, and engineering ways to handle the lack of visibility into model reasoning. The goal is to compare effective cost rather than unit price.
1. The Problem: A Lower Unit Price Does Not Guarantee a Lower Bill
When choosing a large language model, developers most often compare the “price per million tokens.” Yet real bills frequently contradict intuition: a model with a lower unit price may cost the same or even more to complete the same task, while a model priced several times higher may increase actual spending by only a limited margin. This is not a billing anomaly. It happens because there is no stable mapping between the billing unit and the effective output.
A small comparison on a non-trivial task illustrates the issue. The data below comes only from observations in a personal test environment. It is used to explain how token efficiency shows up in practice and does not constitute a general performance conclusion:
| Model tier | Relative unit price | Relative actual cost | Approximate time |
|---|---|---|---|
| Previous-generation base tier | 1x | 1x | ~23 minutes |
| New-generation balanced tier | 2x | ~1x | ~30 minutes |
| New-generation high-capability tier | 8x (4x × 2x) | ~2x | ~27 minutes |
There are three key takeaways. First, the balanced tier doubles the unit price over the previous generation, but the total cost of completing the same task stays almost unchanged, which means lower token consumption offsets the higher unit price. Second, the high-capability tier costs four times as much per token as the balanced tier, yet actual spending is only about twice as high, and it runs faster. Third, in some scenarios the high-capability tier is actually slower, usually because the balanced tier ends early with insufficient completion. In other words, “fast” can come from “doing less.”
2. Turning “Unit Price” into a Computable Cost Model
Understanding these results requires a calculation basis that is closer to engineering reality:
Total task cost ≈ (input tokens + output tokens + reasoning/thinking tokens) × unit priceEffective cost = Total task cost / task completion
Completion is the variable most easily overlooked. If a model converges early, producing shorter output and less reasoning, the cost on paper is naturally lower. But rework, manual rewriting, and secondary verification shift the cost downstream. Therefore, comparing two models requires locking the same task, the same acceptance criteria, and the same completion threshold. Otherwise the comparison is invalid.
Token efficiency can be further defined as “the tokens consumed per unit of effective output.” The high-capability tier wins on total cost essentially by trading fewer wasted round trips for a higher first-pass rate. The “cheapness” of the balanced tier sometimes just postpones cost to the manual stage.
3. Evaluation Method: Making Comparisons Reproducible
A recommended process is “fixed task set + unified acceptance + multiple samples”:
- Task set: cover four categories: short answers, structured extraction, code modification, and long-form rewriting. Keep difficulty at a medium level and avoid extreme samples dominating the conclusion.
- Scripted acceptance: replace subjective judgment with executable checks, such as unit test pass rate, field completeness rate, and format compliance rate.
- Sampling and statistics: take at least three samples per model tier, report the median and dispersion, and filter out one-off fluctuations.
- Recording basis: record input, output, and reasoning tokens separately, along with end-to-end latency, instead of reporting only the total price.
Illustrative pseudocode:
def evaluate(model, tasks, k=3):rows = []for t in tasks:for _ in range(k):r = call_model(model, t.prompt)rows.append({"in": r.input_tokens,"out": r.output_tokens,"think": r.reasoning_tokens,"ms": r.latency_ms,"pass": verify(t, r.text),})return summarize(rows) # median, pass rate, effective cost
4. Interpreting Results: Three Typical Patterns
- Pattern A: unit price doubles, total cost stays flat. The gain in token efficiency is offset by the higher unit price. This suits scenarios that are not cost-sensitive but are sensitive to completion.
- Pattern B: unit price is several times higher, total cost rises only slightly, and it is faster. The high-capability tier wins by reducing wasted round trips. This suits tasks with high one-shot delivery requirements.
- Pattern C: the high-capability tier is slower. This mostly happens when a low-difficulty task is “ended early” by the balanced tier. In this case, check completion rather than looking only at latency.
5. The Unobservable Reasoning Process: Engineering Risks and Responses
Many current models return only the final answer, with the reasoning process invisible and no official process-tracking mechanism. This creates three problems: difficult troubleshooting, missing audit trails, and cost that cannot be explained. Practical engineering compromises include: recording hashes and statistical metrics of requests and responses at the application layer; introducing a two-stage “self-check then review” call for critical paths; using logging services and monitoring alerts to set baseline alerts on tokens and latency; and keeping manual fallback for high-risk outputs. It should be emphasized that these are application-side observability compensations, not a reconstruction of the model’s internal process.
6. Conclusion
The right approach to model selection is not to compare unit prices but to compare effective cost. Put completion in the denominator, treat token efficiency as the core metric, and replace subjective impressions with scripted acceptance. Only then can you balance the bill and quality. At the same time, face the current reality that the reasoning process is unobservable, and build an auditable, alertable, and rollback-capable engineering loop at the application layer. If an enterprise wants to implement this kind of evaluation and governance system on Baidu AI Cloud, it can use a container platform to run evaluation tasks, object storage to archive results, and logging services with monitoring alerts to build a cost baseline, so that “expensive” and “cheap” can be measured on the same ruler.
