LLM Token Cost: Why Cheap Per-Token Pricing Doesn't Mean a Cheap Bill, and How to Choose a Model
This article breaks down the real cost of using large language models beyond the per-million-token prices listed on pricing pages. It explains four layers of cost structure—billing methodology, context caching, quota utilization under subscriptions, and task success rate—and shows why a model with a lower nominal price can end up costing more per completed task. It also offers a reusable per-task cost accounting method, the business reasons behind pricing differences, and an engineering checklist for reducing spend through tiered routing, context governance, batching, output constraints, observability, and isolation. The key takeaway: compare models by the cost, time, and usability of completing the same task, not by token price alone.
LLM Token Cost: The Truth Behind Pricing and How to Choose the Right Model
1. Where the Problem Starts: A Low Unit Price Is Not a Low Bill
When estimating the cost of calling a large language model, the most common approach is to compare the per-million-token prices published on official pricing pages. By that measure, flagship Chinese models are typically quoted at only 30% to 60% of comparable flagship models abroad, and lightweight-tier models can be quoted at a single-digit percentage of a mid-tier overseas model. The conclusion seems obvious: Chinese models are cheaper.
Switch the perspective from “pay-as-you-go APIs” to “monthly subscription plans,” however, and the conclusion nearly reverses. Based on publicly reported conversions, a coding subscription plan priced at roughly a thousand yuan per month works out to only about a dozen yuan per hundred million tokens if you fully consume the estimated monthly token ceiling. Several comparable domestic plans, measured the same way, convert to anywhere from twenty-some yuan to a hundred yuan. In other words, apart from a few lightweight plans, most domestic subscription options actually carry a higher effective unit cost.
This is not a data error. It is the combined result of billing methodology, supply strategy, and usage behavior. To make the right choice, you first have to break “price” into comparable components.
2. Breaking Down the Cost Structure in Four Layers
2.1 Billing Methodology: A Price List and a Bill Are Not the Same Thing
API pricing usually charges input tokens and output tokens separately, with the output rate significantly higher than the input rate. A subscription plan instead gives you a single pooled quota that does not distinguish input from output, or model tier from model tier (or applies only a weighted conversion between tiers). Comparing the two directly is bound to produce distortion.
A more hidden difference lies in how usage is weighted. In real workloads, input is often far larger than output (long-document understanding, codebase context). If a plan deducts quota at a higher weight for input, the same “hundred million token quota” supports far fewer actual requests. When evaluating a plan, ask the vendor to state clearly: whether the quota distinguishes input from output, whether it distinguishes model tiers, and whether long context carries an extra weight.
2.2 Cache Hits: The Most Underrated Variable
Mainstream inference services generally offer context caching: when multiple requests share the same prefix (system prompt, project conventions, long documents, code context), the cached portion is billed at a price far below the standard input rate. In measured scenarios, the cache share in coding-assistant workloads often exceeds 90%, and is even higher in heavy long-context scenarios.
This means the nominal unit price and the effective unit price can differ by an order of magnitude. Any comparison that ignores caching is essentially invalid. On the engineering side, you can actively raise the hit rate by placing stable, unchanging content at the front as a fixed prefix, avoiding timestamps or random IDs at the top of the prompt, and reusing the same context block across turns of a conversation.
[Fixed prefix: system rules + project conventions + reference docs] ← high cache hit[Variable part: this turn's user question + incremental context] ← standard billing
2.3 Quota Utilization: Where Subscription Profit Comes From
A subscription can advertise an extremely low converted unit price only on the assumption that “most users don’t use it all.” The industry generally expects actual consumption to fall well below the quota ceiling: heavy developers are subsidized by low prices, while light users contribute the unused balance. So the value of a subscription depends heavily on your personal usage curve: the closer your usage is to the ceiling, the lower the converted unit price; when usage is very low, a subscription may be far worse than pay-as-you-go.
A simple test is to extrapolate from two weeks of real usage and compare it against a pay-as-you-go bill, rather than calculating from the “theoretical ceiling.”
2.4 Task Success Rate: The Denominator of Total Cost
The most important layer is this: cost should be “the cost of completing one deliverable task,” not “cost per million tokens.” For the same reporting task, different models differ enormously in both accuracy and spend—some cost very little per attempt and get it completely right, some cost more per token but pass on the first try, and others retry repeatedly and end up with the highest cumulative consumption.
# Per-task cost estimation (illustrative)def cost_per_task(token_in, token_out, cache_ratio,price_in, price_out, price_cache, attempts=1):billable_in = token_in * (1 - cache_ratio)cost = (billable_in * price_in+ token_in * cache_ratio * price_cache+ token_out * price_out)return cost * attempts # attempts is determined by task success rate# A plan with a low unit price but attempts=4 may cost more overall# than a plan with a high unit price but attempts=1
On hard tasks (complex code refactoring, long-unreproducible defects, cross-module changes), a weaker model’s retry count often multiplies, and both total cost and total time deteriorate at the same time.
3. A Reusable Accounting Method
Teams should build a “per-task cost table” with fields for: task type, mean input/output tokens, cache hit rate, average attempts, cost per task, average latency, and result usability rate. The accounting process is:
- Pick 3–5 real, high-frequency tasks and fix the inputs and acceptance criteria;
- Record the token details and cache-hit status of every call;
- Count the attempts needed to meet the acceptance criteria;
- Compute per-task cost with the formula above, and record latency at the same time;
- Recompute every two weeks, because both model versions and billing policies change.
The key point: any horizontal ranking of “how much per million tokens” can only serve as an initial screen. The final decision must rest on your own task distribution.
4. Why the Strategies Differ
Low-priced subscriptions are usually backed by two things: sustained funding and economies of scale, which allow heavy users to be subsidized at low prices; and a statistical bet on quota utilization. Domestic vendors face higher compute procurement costs and stronger pressure to recoup investment, so they lean toward low-threshold API pricing to win enterprise call volume, and have less room to subsidize the subscription side. This is a difference in business strategy, not purely a difference in technical capability, and you should not infer model capability from it when choosing.
5. An Engineering Checklist for Cutting Costs
- Tiered routing: send simple intent recognition, formatting, and summarization to the lightweight tier; send complex reasoning and code generation to the flagship tier.
- Context governance: inject only the necessary retrieved fragments, and keep the prefix stable to improve cache hits.
- Batching and asynchrony: merge requests for non-real-time tasks, smooth out peaks, and reduce use of the expensive tier.
- Output constraints: use structured output and clear acceptance rules to reduce rework.
- Observability: build logging and monitoring with alerts, and track tokens, cache hit rate, success rate, and latency per task to form a cost dashboard.
- Elasticity and isolation: use container platforms and message queues to carry asynchronous inference pipelines, and split quotas by business line so a single scenario doesn’t consume the whole budget.
When deploying on a cloud, these capabilities map to general product categories such as object storage (dataset and result archiving), message queues (peak shaving for tasks), container platforms (inference gateway and routing), and logging plus monitoring with alerts (cost observability). Baidu AI Cloud can be composed in the same way from these general capabilities.
6. Conclusion
The token unit price is only an entry ticket. What really determines the bill is the multiplicative effect of cache hit rate, quota utilization, and task success rate. The right dimension for comparison is not “how much per million tokens,” but: how much money and how much time it takes to get the same thing done, and whether the result can be used as is. Quantify those three questions into your team’s own cost table, and you avoid the misjudgment of “cheaper unit price, more expensive bill.”
