Why Are LLM Tokens So Expensive? A Breakdown of Token Pricing Logic
This article breaks down the pricing logic behind LLM tokens, explaining that they are not sold by word count but priced to recover two distinct cost layers: rigid physical infrastructure costs and continuous R&D amortization. It walks through a practical cost-estimation model for GPU clusters, clarifies why input and output tokens are priced differently, and explains why context length, caching, and peak-capacity reservation make bills appear opaque. Finally, it offers developers an actionable checklist for cutting token spend.
Why Are LLM Tokens So Expensive? A Breakdown of Token Pricing Logic
1. The Short Answer: Tokens Aren’t Sold by Word Count—They’re Sold to Cover “Compute Time + R&D Amortization”
The first time many developers see an API bill, their reaction is: it’s just spitting out a few words, so why does it cost this much? To answer that, you need to split the price into two layers. One is money already spent (data centers, accelerators, bandwidth—metered whether you use them or not). The other is money that must keep being spent (training, evaluation, iteration—another round every few months). The unit price of a token is essentially these two cost layers divided by real, effective output, plus a reasonable margin and risk premium.
Once you understand this fraction, you understand why “longer context, more output, higher concurrency” pushes your bill up directly—and why engineering-side optimizations (caching, batching, context trimming) can create order-of-magnitude differences.
2. Layer One: Physical Costs, or “The Money Burning Every Second”
2.1 Electricity and Depreciation for Accelerators
Take a mainstream training/inference accelerator as an example. At full load, power draw is roughly in the range of a few hundred watts to 700 watts, which works out to about 2 to 4 kWh per hour. Estimating 3 kWh at 0.8 yuan per kWh, running flat out for a full year is about 20,000 kWh, or roughly 16,000 yuan in electricity—and note that this is for a single card.
Now look at depreciation. At a per-card purchase cost of 250,000 yuan, linearly depreciated over 3 years, that’s about 83,000 yuan per year. Electricity plus depreciation puts the annual holding cost of one card in the neighborhood of 100,000 yuan. A mid-sized inference cluster estimated at 1,000 cards has an annual holding cost of about 100 million yuan—and this still doesn’t include data center space, cooling, network bandwidth, operations staff, or storage overhead for model weights and vector data.
Here’s a key property: the cost is rigid. Once the cards are bought and the power is on, depreciation and electricity get paid regardless of utilization. So the real cost of inference services depends heavily on utilization—idle-time load gets spread across all requests.
2.2 Capacity Ceiling: How Many Tokens Can You Spit Out in One Second
A single card’s actual throughput is jointly constrained by model parameter count, context length, batch size, and memory bandwidth—roughly on the order of 100 to 300 tokens per second. Taking a middle value of 200, 1,000 cards can theoretically produce about 200,000 tokens per second, or roughly 170 billion tokens per day.
That looks astronomical, but the demand side is equally dramatic: a large search or recommendation business already handles on the order of tens of billions of requests per day, and agentic applications running a single long session can consume anywhere from hundreds of thousands to millions of tokens. Stack up massive volumes of long-context sessions, and supply gets consumed fast. Token scarcity comes from effective compute, not from the text itself.
2.3 A Reusable Cost-Estimation Model
When doing capacity planning in engineering, you can use the following illustrative code to lock down the relationships above and avoid guesswork:
def annual_cluster_cost(cards, kw_per_card=0.7, price_per_kwh=0.8,unit_price=250_000, years=3, overhead=0.35):power = cards * kw_per_card * 24 * 365 * price_per_kwhdepreciation = cards * unit_price / yearsbase = power + depreciationreturn base, base * (1 + overhead) # includes data center / bandwidth / opsdef tokens_per_day(cards, tps_per_card=200):return cards * tps_per_card * 86400base, total = annual_cluster_cost(1000)print(total / tokens_per_day(1000)) # lower bound of physical cost per token
overhead is an empirical coefficient used to roughly cover cooling, networking, and labor; the real value should be calibrated against your own monitoring data. The value of this model is that it gives a cost floor: any price below it is unsustainable, and any optimization should first raise the denominator (effective token output) rather than squeezing the numerator.
3. Layer Two: Researcher Talent Costs, or “The Money That Keeps Getting Spent”
3.1 The Direct Bill for a Single Training Run
Training a frontier-scale model, one complete run typically costs on the order of tens of millions of dollars in compute alone: taking 25,000 previous-generation accelerators running for three months, electricity and depreciation alone already reach tens of millions of dollars. And that’s just the “visible bill.” The real bulk is invisible: the salaries of top researchers, failed reruns caused by cluster instability, and a large volume of unsuccessful experiments.
Engineering has to accept one fact: training is not a single transaction, but a pipeline. Data cleaning, mixture experiments, hyperparameter search, alignment, and evaluation—every stage repeatedly consumes compute. A common rule of thumb in the industry is that the final successful run is often just a small fraction of the total investment.
3.2 Iteration Cadence Turns One-Time Spending into Recurring Spending
The capability half-life of frontier models is short—typically needing an update every 3 to 6 months, and each update is almost equivalent to one complete training run plus multiple rounds of alignment. So the cost structure shifts from “one-time investment” to “continuous investment”: a highly valued AI company needs to spend on the order of billions of dollars per year on training and inference just to keep its capabilities from falling behind.
This explains a counterintuitive phenomenon in token pricing: the token fees collected today are essentially financing the next model version. The price includes forward-looking R&D amortization and a failure-risk premium—not just the electricity for this one second.
3.3 Combining Both Layers into a Unit Price
Suppose a model service spends 4 billion yuan per year, corresponding to an annual output of 1 trillion tokens. Output costs significantly more than input (the industry commonly uses an input/output weighting conversion, where the output-side weight can be several times the input), and after conversion, the average recovery needed per token is about 0.3 yuan. Compared against market pricing of tens of dollars per million tokens on the output side, there is gross margin—but that margin has to cover the next training round, pre-purchasing compute, and a long loss period. It’s a classic “high investment, long payback” structure.
4. Why Token Billing “Looks Opaque”
- Input and output are priced differently: the output stage requires token-by-token autoregressive generation and cannot be processed in parallel all at once like input, so its cost is inherently higher.
- Context length amplifies cost non-linearly: attention computation grows with sequence length, so the marginal cost of long context is far higher than that of short requests.
- Caching and batching change actual cost: repeated prefixes that hit the cache and merged batch requests have real compute overhead far below the listed price—an important source of bill discrepancies.
- Peak capacity must be reserved: compute reserved to meet burst traffic sits idle during troughs, and that cost gets spread into the unit price.
5. A Cost-Cutting Checklist for Developers
- Compress context: keep only the necessary fragments and inject them on demand via retrieval, rather than stuffing in the whole document.
- Reuse stable prefixes: put system prompts, tool descriptions, and long documents in the prefix position to improve cache-hit probability.
- Constrain length with structured output: use explicit schemas and length limits to suppress redundant generation—what you save on the output side is the most expensive part.
- Batch and go asynchronous: merge requests for offline tasks to avoid peak pricing and rate limits.
- Tiered routing: send simple tasks to smaller-parameter models and only escalate complex ones, avoiding “always using the most expensive one.”
- Build observability: use logging and monitoring/alerting to attribute token consumption by business dimension and locate abnormal sessions; put data and weights in object storage, and elastic compute on a container platform, scaling on demand rather than running at full capacity long-term.
- Write cost into the interface contract: enforce quotas and budget controls at the gateway layer to prevent a single agent loop from spiraling out of control.
6. Closing
Tokens are expensive—not for the text, but because both of these accounts—rigid physical costs + continuous R&D costs—must be recovered through actual output. For users, the rational approach isn’t to complain about the unit price, but to focus optimization on raising effective output and cutting wasteful consumption; for builders, improving utilization, maintaining a steady iteration cadence, and making costs observable is the real path to gradually driving down token prices.
