LLM Token Pricing: Three-Stage Evolution and Practical Cost Optimization
This article explains why tokens became the standard billing unit for large language model (LLM) compute and traces three stages of token pricing—from aggressive price wars, to a rational repricing reset, to carrier-led prepaid bundles. It breaks down the core factors that drive token costs, provides a reusable Python cost-estimation function, and lays out a practical checklist of cost-optimization strategies—including tiered model routing, prompt engineering, caching, and budget monitoring—to help developers and enterprises control LLM spending in a volatile pricing market.
1. Why Tokens Became the Billing Unit for LLM Compute
LLMs don’t read raw “characters” or “files” directly. Instead, they first split text into semantic units called tokens before running inference. Because different models use different vocabularies, the same sentence often consumes a different number of tokens depending on the model. For this reason, per-token billing has become the industry-standard way to measure compute in a quantifiable and relatively fair manner.
To understand pricing, you first need to distinguish two types of tokens:
- Input tokens (prompt tokens): The prompts, context, and system instructions a user sends. These enter the model all at once, before inference begins.
- Output tokens (completion tokens): The content the model generates and returns.
The key point: generating output tokens typically consumes more compute than processing input tokens, and generation occupies GPU memory to produce tokens one at a time through autoregressive decoding. That’s why most providers price output higher than input—and this gap is the central variable in any cost calculation.
2. The Three-Stage Evolution of Token Pricing
Stage 1: An All-Out Price War (Late 2024 – Mid 2025)
During this period, a leading platform kicked off aggressive price cuts, driving the price per million tokens from an industry average of around ¥50 down to ¥0.3—a drop of more than two orders of magnitude—which triggered a chain reaction across the industry. The essence of this price war was subsidizing adoption to grow an ecosystem: providers hoped to attract developers quickly and capture application entry points through extremely low unit prices. For users, this was the golden period of lowest call costs, but it also came with uncertainty around service stability, quota limits, and future price increases.
Stage 2: Rational Return and Price Restructuring (From H2 2025)
As compute supply and demand normalized, around March 2026 several leading cloud providers in China raised the prices of AI compute services and LLM products one after another. Taking a mainstream model as an example, its input price rose from ¥0.0008 per 1K tokens to ¥0.004505 per 1K tokens—an increase of roughly 463%.
Meanwhile, the international market showed clear price divergence. A leading international model provider priced its standard API at about $5 per million input tokens and $30 per million output tokens, while a domestic provider’s flagship model was priced at ¥6 per million input tokens and ¥18 per million output tokens. Clearly, models across different markets and positioning have formed distinct price tiers. When choosing a model, you can no longer look at unit price alone—you have to weigh capability, latency, and stability together.
Stage 3: Carriers Enter and Bundling Takes Hold (From 2026)
Starting in May 2026, a telecom carrier launched a series of trial-commercial token packages, ranging from a light tier of ¥9.9 for 10 million tokens to a flagship tier of ¥299.9 for 150 million tokens—covering everything from light trial use to large-scale production. The significance of this stage is that pricing shifted from pay-as-you-go toward a scalable, bundled prepaid model, letting high-frequency, predictable workloads lock in costs and avoid the risk of price hikes.
3. Core Factors That Drive Token Pricing
Regardless of the stage, token cost is ultimately determined by the following factors:
- Model capability and scale: Flagship models with more parameters and stronger capabilities carry a significantly higher per-token cost than lightweight models.
- Input vs. output differences: Output is generally priced higher than input, so long-form generation scenarios are more cost-sensitive.
- Context length: Long context is convenient, but it linearly amplifies input token consumption.
- Value-added services and scheduling: Options such as batch/asynchronous inference, result caching, and context reuse often map to different price tiers.
- Market supply and demand and competition: This is the fundamental driver behind the three-stage evolution.
4. A Reusable Token Cost Model
Before integrating any model, it’s worth building a unified cost-estimation function so you can normalize different providers’ pricing conventions and then make decisions:
def estimate_token_cost(input_tokens, output_tokens,input_price_per_1k, output_price_per_1k):"""Generic token cost estimation.Prices should be passed in on a "per 1K tokens" basis."""input_cost = input_tokens / 1000 * input_price_per_1koutput_cost = output_tokens / 1000 * output_price_per_1kreturn {"input_cost": round(input_cost, 6),"output_cost": round(output_cost, 6),"total_cost": round(input_cost + output_cost, 6),}# Example: 10K input tokens, 5K output tokenscost = estimate_token_cost(10000, 5000, 0.0045, 0.012)print(cost) # Because output is more expensive, output_cost usually dominates
The practical value of this model is that it turns a “price sheet” into a per-call unit price the business side can estimate, making it easy to run capacity and budget calculations at the architecture-design stage.
5. A Cost-Optimization Checklist for Developers and Enterprises
Drawing on the patterns across the three stages, here are actionable optimization strategies:
- Tiered model routing: Route simple tasks (classification, extraction, rewriting) to lightweight, low-cost models and reserve flagship models for complex reasoning. This can significantly reduce overall spend.
- Cost-saving prompt engineering: Trim redundant context, compress system prompts, and structure inputs to directly cut input token consumption.
- Context and result caching: Cache and reuse high-frequency queries or stable outputs to avoid paying for them repeatedly.
- Asynchronous and batch inference: Use batch mode for latency-insensitive offline tasks, which usually yields a better unit cost.
- Usage monitoring and budget alerts: Plug into logging and monitoring with thresholds for token consumption, per-call cost, and monthly bills to prevent sudden spikes from blowing the budget.
- Combining prepaid packages with pay-as-you-go: Prioritize locking in prepaid packages for predictable, large-scale workloads to hedge against price increases, while keeping pay-as-you-go for spiky workloads to retain flexibility.
6. Conclusion
The three-year evolution of token pricing reflects the maturation of AI compute—from subsidized expansion, to rational pricing, and finally to scalable services. For developers and enterprises, the truly robust strategy isn’t chasing the lowest price at any single moment, but building the capabilities of a unified cost model + tiered model routing + usage monitoring. Only by internalizing cost governance as part of architecture design can you consistently spend every unit of compute on the parts of your system that actually create value, even as prices keep fluctuating.
