LLM Pricing Explained: How Token Billing and Subscription Plans Really Add Up
This article breaks down how modern LLM pricing works. It explains the three billing dimensions most providers use — input tokens, output tokens, and cache-hit tokens — why newer, more capable models cost more per task despite similar-looking unit prices, and how pay-as-you-go and subscription tiers differ in practice. It also provides a reproducible per-task cost estimation formula, five practical optimization strategies such as prefix caching, context governance, and tiered model routing, and a five-point framework for judging whether a model or plan actually offers good value.
1. Price Increases Aren’t Automatically “Expensive”: First Understand the Billing Dimensions
Every time a new generation of LLMs is released, the community’s most immediate reaction is often “the price went up several times over.” But judging whether the pricing is reasonable requires breaking the vague notion of “unit price” down into measurable billing dimensions. Mainstream LLM services generally bill per token, usually with three tiers:
- Input tokens: all text sent to the model — user prompts, system instructions, context, and retrieved material.
- Output tokens: the text the model generates. Because generation is an autoregressive decoding process that produces one token at a time, the compute cost is significantly higher than reading input in a single pass. As a result, the output unit price is typically much higher than the input unit price.
- Cached-hit tokens: when multiple requests share the same prefix (a fixed system prompt, a long document, few-shot examples), the server can reuse already-computed intermediate state, and the cached portion is billed at a substantial discount — often only a fraction of the normal input price.
For example, a given generation of models might set prices at 20 for input, 100 for output, and 1 for cached hits (units here are illustrative relative multipliers only). Once you understand that these three dimensions exist, it becomes clear that the number “100” is not the overall cost — the actual cost is the weighted consumption, which depends on the input/output ratio and cache utilization.
2. Why the New Generation “Costs More for Good Reason”
Price increases usually have technical drivers behind them, not just commercial strategy:
- Model scale and capability growth: upgrades to parameter size, training data, and inference architecture raise the compute cost of a single inference call.
- Extra consumption from reasoning chains: models with deep reasoning capability generate a large volume of “thinking tokens” before producing the answer. These tokens count toward output billing, raising per-task consumption significantly.
- Context window expansion: a longer context means more input tokens participate in computation, and the complexity of the attention mechanism grows accordingly.
Therefore, when evaluating a new model, treat “unit price × average consumption per task” as the real cost rather than looking at the unit price alone. Industry testing also shows that a more capable model may have average token consumption per task close to or even exceeding that of the previous flagship generation, which directly inflates the bill.
3. Pay-As-You-Go vs. Subscription Plans: The Trade-offs Between Two Billing Models
When selecting a model, teams often weigh two models:
- Pay-as-you-go: billed on actual token usage. It suits scenarios with unstable call volume, elastic scaling needs, or API-first integration. The advantage is that cost aligns strictly with usage; the drawback is that peak bills are hard to predict.
- Subscription: a fixed monthly fee buys a certain usage allowance. It suits teams that call frequently with relatively predictable usage. The key metric is the “value multiplier“ — the ratio of the plan price to the actual usable allowance.
A common misconception shows up here: many people compare only the “monthly fee” with the vendor’s advertised quota, while overlooking the gap between a unit of allowance and the real workload it can cover. For example, a subscription at a few hundred yuan per month might correspond to only around a couple of thousand yuan in actually usable volume; a stronger value proposition would be a low-tier plan of tens of yuan covering thousands of yuan of usage, and an advanced plan of a few hundred yuan covering tens of thousands. This “multiplier” is the core measure of whether a plan is worth it, and a key indicator of product competitiveness — not the sticker price.
4. How to Calculate Per-Task Cost Scientifically
Setting aside marketing language, developers need a reproducible cost estimation method. The core formula is as follows:
def estimate_cost(avg_input_tokens, avg_output_tokens,cached_ratio, price_in, price_out, price_cached):"""Estimate the average cost of a single task.price_in / price_out / price_cached: unit prices for each dimensioncached_ratio: the proportion of input tokens served from cache (0~1)"""cached_input = avg_input_tokens * cached_rationormal_input = avg_input_tokens * (1 - cached_ratio)cost = (normal_input * price_in+ cached_input * price_cached+ avg_output_tokens * price_out)return cost# Note: the values are for method demonstration only; use the real unit prices of your target service
When calculating, be sure to collect real business samples — average input and output token lengths and the cache hit rate — rather than theoretical values. Reasoning models also require tracking the share of “thinking tokens” separately. Multiply the per-task cost by daily call volume to get the monthly or annual total cost of ownership (TCO), then compare it against budget.
5. Practical Cost Optimization Strategies
With capability requirements met, the following approaches can substantially reduce the bill:
- Leverage prefix caching: put the fixed system prompt and knowledge base documents at the beginning of requests to maximize the cache hit rate, turning the high unit price of repeated input into the low cache-hit price.
- Context governance: use retrieval-augmented generation (RAG) to inject only necessary fragments instead of stuffing entire long documents into the context; clear redundant conversation history in a timely manner.
- Tiered model routing: use a lightweight model for simple tasks and a flagship model for complex ones, with a routing layer splitting traffic by difficulty to balance cost and quality.
- Batch and asynchronous processing: for latency-insensitive offline tasks, use the batch API, which typically offers a lower unit price.
- Output constraints: specify answer length, format, and structure to reduce wasted generated tokens.
With general-purpose capabilities such as logging, monitoring and alerting, and object storage offered by cloud platforms like Baidu AI Cloud, you can turn token consumption into observable metrics, build a usage dashboard and budget alerts, and achieve continuous cost tracking and governance.
6. Building a Value-for-Money Evaluation Framework
Ultimately, judging whether a model or plan is “worth it” requires a multi-dimensional quantitative framework rather than a single price comparison:
- Capability baseline: measure whether performance meets requirements using authoritative leaderboards and your own business evaluation sets.
- Real unit cost: use the formula above to calculate actual consumption per task, not the sticker price.
- Value multiplier: the input-output ratio after converting a plan’s usable allowance into real workload.
- Engineering cost: integration difficulty, context management complexity, and observability support.
- Long-term elasticity: whether the billing model scales smoothly as call volume grows.
7. Summary
Faced with price increases in a new generation of LLMs, the rational approach is not simply to compare sticker prices but to understand the input / output / cache-hit billing structure, master the method of calculating real per-task cost, and proactively optimize through cache reuse, context governance, and model routing. Only when a plan’s value multiplier is strong enough and its capabilities hold up under testing in your own scenarios can you truly compete with the leading models. Making cost part of an observable, governable engineering system is the foundation for developers and enterprises to stay competitive in scaling AI into production.
