Why Are Tokens So Expensive? The Full Pricing Chain from GPU to Your Bill
This article breaks down the full cost structure behind token pricing for large language models. It starts with the rigid hourly cost of GPU hardware, then explains how utilization, engineering optimization, model architecture, input/output asymmetry, market supply-demand, and hidden service reliability costs all shape the final price you see on your bill. It also offers practical strategies for enterprises to optimize AI spending, including model selection, caching, and workload scheduling.
A Public Accounting: Turning a Black Box into a Transparent Chain
In early 2025, an AI team did something rare in the industry: they publicly disclosed the cost and revenue structure of their large-model online service, tracing from the hourly rental price of a GPU all the way to the final price of each token. What makes this noteworthy is not the announcement of profits or losses, but the fact that it laid open the cost chain behind token prices for the first time. It turns out that the price of a single token can be precisely derived step by step, starting from “how much does one accelerator card cost per hour.”
Token pricing has never been a simple “cost-plus” formula. It is the result of a series of interlocking factors: hardware hourly cost, hardware utilization, inference optimization level, model specification, input/output differences, service strategy, and market supply and demand. Each layer leaves its mark on the final bill. Let’s break it down from the bottom up.
Layer 1: Hardware Cost Is Rigid — Utilization Determines How Much Each Request Carries
The physical foundation of large-model inference is professional-grade GPU accelerator cards, not consumer gaming GPUs. These cards are not billed by “actual usage” but by “occupied time” — whether or not requests come in, as long as the card is on the rack and powered on, it is continuously generating cost.
This is a counterintuitive but critical point: hardware cost does not scale linearly with token volume; it is a fixed cost. If no requests arrive in a given hour, the cost does not decrease; if requests flood the card to full capacity, the cost does not increase either. Therefore, the real determinant of per-token cost is “how many tokens this card produced in that hour” — in other words, utilization.
Real-world load is never uniform. During peak daytime hours, requests may queue up; at night, the system may be nearly idle. Moreover, cold-starting an accelerator card often takes minutes or longer, and dependent resources such as storage and networking must also be spun up synchronously. Providers cannot toggle compute on and off like a light switch. As a result, provisioning hardware for peak demand has become industry standard, leaving significant idle capacity during off-peak periods. This idle cost does not vanish; it is eventually spread across the price of every token actually consumed. This is why many platforms offer steep discounts during nighttime hours — instead of letting cards idle and burn money, they prefer to fill them with discounted traffic. From a cost-structure perspective, this is a rational choice.
Layer 2: The Same Card — Engineering Optimization Can Create Multi-Fold Cost Differences
Since hardware cost is rigid, the variation in token prices mainly comes from “how the card is used.” With the same hardware, different teams’ optimization levels can make unit token costs differ by several times. Optimization efforts concentrate on three dimensions.
First, batching. Individual requests are often short-lived. If you process each request one by one, the accelerator card wastes a lot of time waiting for data, scheduling, and communication, leaving compute units underutilized. Modern inference systems commonly use dynamic batching: requests are not grouped into fixed batches; instead, they accumulate in a queue and new requests are continuously inserted into the running batch, keeping all compute units as busy as possible. This “carpooling” strategy can significantly increase per-card throughput, effectively amortizing the compute cost of each token.
Second, inference engine and memory management. Autoregressive models need to read all model parameters to generate each token, so memory bandwidth and capacity are the main bottlenecks. Among these, the KV cache is a major memory consumer — it stores the historical state of the attention mechanism and grows linearly with context length. A highly efficient inference engine manages the KV cache with fine-grained memory allocation, allocating on demand and reclaiming promptly to reduce internal fragmentation, allowing the same card to handle more concurrent requests. In addition, operator fusion, reducing tensor movement, and fully leveraging parallel compute capabilities are all key to converting “one card-hour” into more tokens.
Third, model architecture. For models of similar scale, those using a Mixture-of-Experts (MoE) architecture activate only a subset of expert parameters per inference step, which can significantly reduce average compute while maintaining quality. Low-bit quantization represents weights and activations with fewer bits, and under controlled precision loss, can reduce memory usage by several times, allowing a single card to host a larger model or more concurrent requests. When these optimizations are combined, the number of tokens produced per unit cost can differ by an order of magnitude.
Layer 3: Model Specification and Input/Output Asymmetry Create Tiered Pricing
Now we move from the “production side” to the “billing side.” Even within the same provider, prices differ significantly across services and token types, and each difference has a cost logic behind it.
Model specification is the most direct differentiator. Flagship large models have more parameters, higher compute per token, and higher memory usage, so their unit prices are naturally higher. Lightweight models have lower compute and faster response times, making them suitable for simple tasks, and their prices are lower. For developers, “bigger is always better” is a typical cost misconception — using lightweight models for simple problems and reserving flagship models for complex tasks is the way to keep average costs low.
The difference between input and output tokens is also significant. For the same model, the price per input token is usually much lower than per output token. The reason: input processing can be parallelized — the prompt is read in bulk and computation is highly parallel, so unit cost is lower. Output generation, by contrast, is autoregressive and word-by-word; each generated token depends on the previous one, which limits parallelism, and every step requires reading all model parameters, leading to longer compute time and more concentrated memory bandwidth. Furthermore, in long-context scenarios, longer inputs directly increase KV cache memory usage, which is why calls with very long contexts are typically priced higher.
Service strategy also matters. Many platforms offer off-peak discounts. The underlying principle is not that “night tokens are cheaper,” but that GPU cards are idle at night, and discounted sales convert fixed costs into revenue. For users, moving non-real-time tasks to discount windows can significantly reduce spending. For providers, this is a flexible application of “fixed costs + variable pricing.”
Layer 4: Market Supply-Demand and Hidden Costs — The Ultimate Explanation for “Expensive”
Adding the first three layers explains most of the cost composition of token prices. But the user perception that “tokens are still expensive” has deeper reasons.
One is the supply-demand relationship. The growth of compute supply is constrained by hardware delivery cycles, power resources, data center construction, and other factors, while demand from large-model applications is exploding. Tight supply naturally shows up in prices. Rental prices for different tiers of accelerator cards can differ several times, and scarcity is the most direct driver.
Another is the cost of service reliability. To provide low-latency, highly available services, providers must maintain a certain amount of redundancy: no queuing at peak times, failover on faults, and security assurance. Redundant resources may sit idle most of the time, but they are part of the service promise and must be included in costs. At the same time, one-time R&D expenditures — such as model training, alignment, safety reviews, and continuous tuning — are amortized into token prices over a reasonable period. Additionally, data center operational expenses like electricity, cooling, bandwidth, and maintenance labor are long-term fixed costs that tokens must also “carry.”
Enterprise Cost Optimization: From Model Selection to Strategy Tuning
Understanding the underlying logic of token pricing gives enterprises multiple levers to optimize actual spending:
- Match model specification to task complexity. Use lightweight models for simple tasks, and reserve flagship models for complex ones. Avoid “using a sledgehammer to crack a nut.”
- Implement semantic caching. For repeated questions and fixed knowledge-base retrieval results, cache hits can save substantial input token costs and improve response speed.
- Separate real-time from offline workloads. Offline batch tasks can use asynchronous interfaces and off-peak windows — trade time for price.
- Set budgets and monitoring. Assign token quotas and alerts for different departments or projects to prevent unconscious usage from inflating the bill.
- Use managed platforms. Deploying inference on platforms that offer auto-scaling, monitoring, alerting, and log analysis can significantly reduce self-managed operational costs. For example, Baidu AI Cloud offers GPU cloud servers, container platforms, and serverless inference capabilities that help developers acquire compute on demand, scale automatically, and simplify operations — thus optimizing overall cost while maintaining service quality.
Here is a simplified budget-control logic example:
# Example: daily token budget control (pseudo-code)usage = get_daily_token_usage()budget = 1_000_000 # daily budget capif usage > budget:switch_to_lightweight_model() # downgrade to a lightweight modeldefer_batch_tasks_to_off_peak() # move offline tasks to discount hours
Conclusion
Token pricing is not a simple “cost plus profit” calculation. It is a composite outcome determined by rigid hardware costs, utilization, engineering optimization, model specifications, input/output differences, market supply-demand, and hidden service costs. The reason tokens are “expensive” is that each layer has its own cost barrier: hardware is consumed rigidly by the hour, utilization rarely reaches theoretical limits, high-quality service requires redundancy, and premium compute remains scarce.
But conversely, these cost barriers also leave room for optimization. The more a team can increase per-card throughput, the lower the unit token cost becomes. As inference optimization techniques continue to advance and compute supply gradually improves, token prices have a long-term downward trend. For today’s developers and enterprises, understanding this pricing chain is the first step to rationally controlling AI application costs.
