Why Do LLM API Prices Rise as Parameter Counts Double?
This article explains the technical logic behind large language model (LLM) API pricing. It covers how inference costs scale with model size, why some providers cut prices as their models grow, why cached input tokens cost far less, and how developers can control spending through prompt structure, usage metering, and model routing.
Large language models are improving quickly. Parameter counts have grown from hundreds of billions to trillions, and reasoning ability has improved noticeably. Alongside these gains, one trend has sparked wide debate: newer models with double or even more parameters often carry higher API prices instead of lower ones. Output prices can reach several times those of the previous generation. At the same time, some providers have cut prices while scaling up their models. Is this driven by cost or by market strategy? This article breaks down the technical logic behind LLM pricing and offers practical strategies for developers.
1. The Physical Basis of Pricing: Where Inference Costs Come From
Inference costs in LLMs come mainly from memory and compute. Take the mainstream dense Transformer architecture as an example. Generating each token requires reading and writing all model parameters.
- Weight memory ≈ parameter count × bytes per parameter. A 2T-parameter model needs about 2 TB of memory for a single copy of its weights, even with FP8 quantization. It must therefore run across a multi-node, multi-GPU cluster.
- The decode stage is typically bound by memory bandwidth. Each token passes through the full set of weights, so the larger the parameter count, the higher the theoretical lower bound on latency per token.
- To keep throughput high, serving providers spread costs across large batches. However, oversized batches raise time to first token, so batch size requires careful tradeoffs.
As a result, when parameter count grows from 1T to 2.8T, the unit inference cost rises roughly in proportion. This is the most concrete physical reason output prices increase. Longer chains of thought and larger reasoning token budgets can also multiply the total amount users pay.
2. Why Some Larger Models Are Cheaper
One provider scaled its model to 1.6T parameters and still lowered its prices. Several factors can explain this:
- Sparsity in MoE architectures. Mixture-of-experts (MoE) models have large total parameter counts, but each token activates only a small subset of them. If the number of active parameters stays the same or drops, the compute cost per token does not necessarily rise.
- Gains from inference optimization. Techniques such as FP8/FP4 quantization, speculative decoding, operator fusion, and paged KV cache management continue to lower costs. Revenue growth from larger models can fund price cuts.
- Differences in market strategy. Price is a competitive tool. Setting low prices to win volume and grow an ecosystem through API revenue is a common industry approach. High prices, by contrast, prioritize gross margin and differentiated positioning.
3. Why Cache Hits Can Be Dozens of Times Cheaper
Cached input prices can be as low as a few dozen times below uncached prices. This is not just marketing. It has real technical grounding.
- Prefix KV cache reuse: For repeated system prompts or long document contexts, the provider can cache the KV vectors. On a cache hit, the full prefill computation is skipped, and only the incremental part needs to be computed.
- Cost pass-through: Saved compute is passed on to users as lower prices. This also encourages users to place repeated content at the start of their prompts, which creates a positive cycle.
Developers can cut costs significantly by restructuring their prompts. Here is an illustrative comparison:
Inefficient: System instructions and fixed documents are placed at varying positions toward the end of each request.Optimized:[Fixed prefix: role setting + frequently used documents] <- Can hit the cache at CNY 1 per million tokens[Dynamic suffix: the user's current question] <- Uncached price of CNY 20 per million tokens
4. How Developers Can Evaluate and Control Costs
- Do not look only at unit prices. Evaluate the number of tokens needed to complete a task multiplied by the unit price. Reasoning models may output five to ten times as many tokens as standard models, so a low nominal price does not guarantee low actual spending.
- Build a usage metering system. At the gateway layer, log input tokens, output tokens, cache hits, and latency for every call, then attribute costs accordingly:
cost = (tin * p_in + tout * p_out + tcache * p_cache) / 1_000_000
- Use tiered routing. Send simple tasks to smaller models and call flagship models only for complex reasoning. This approach can typically reduce overall costs by more than half.
- Consider the total cost of ownership. Beyond API prices, factors include stability, rate-limiting policies, context length, and batch discounts.
5. Conclusion
LLM pricing is the combined result of compute costs, architectural efficiency, and market strategy. Growing parameter counts bring real inference overhead, while quantization and sparsity keep pushing the cost curve down. Price changes reflect different choices between a “capability premium” and “scaling for volume.” Rather than worrying about unit price swings, developers should build cost optimization into their engineering practice. Use caching well, route requests carefully, and monitor usage closely so that budgets go toward what matters as models iterate quickly.
