LLM API Pricing Increases: Cost Structure, Subscriptions, and Model Selection
Recent API price increases for a flagship LLM have sparked debate, but the more important issue is that many teams do not calculate true usage costs. This article provides a reusable framework covering input, output, and cached-token pricing; the different economics of API usage and subscriptions; why larger models do not necessarily cost proportionally more to run; engineering tactics such as caching, routing, context control, output limits, and cost observability; and a benchmark-driven selection process based on workload data and cost per task.
Introduction: The Price Increase Is Not the News—an Unclear Bill Is
A Chinese LLM provider recently released a new-generation flagship model whose API pricing rose severalfold compared with the previous generation. According to figures circulating in the industry, output tokens are priced at around RMB 100 per million, input tokens at about RMB 20 per million, and cached hits as low as RMB 1 per million. Two reactions have emerged in the community. One side argues that “the benchmark scores are near the top, so a higher price is justified.” The other side compares subscription allowances from leading overseas models and concludes that the overall cost of use is not necessarily better.
The debate exposes a more common problem: most developers do not systematically calculate the real cost of using LLMs. This article sets aside specific vendors and products and offers a reusable analytical framework across four dimensions: billing structure, the difference between subscriptions and APIs, the relationship between model scale and cost, and engineering-level cost reduction.
1. Read the Pricing Structure First: Input, Output, and Cache Hits Are Three Different Products
LLM API pricing is not a single number. It includes at least three dimensions:
- Input tokens: the prompt, context, conversation history, and other content sent into the model. In long-text scenarios such as document understanding, codebase analysis, and multi-turn agent tasks, input volume is often 10x or even 100x the output volume.
- Output tokens: the content generated by the model. The unit price is usually much higher than input because generation requires token-by-token autoregressive inference and cannot be parallelized as heavily as input processing.
- Cache hits: when the prefix of a request matches a recent request, the already-computed KV cache can be reused. The price is often only a small fraction of regular input pricing.
The ratio among these three determines your real bill. A typical mistake is to compare only “output unit price” across models. For example, one model may charge twice as much for output as another, but half as much for input. If 90% of your workload is input, your overall cost may actually be lower.
A simplified cost estimation formula:
Cost per task ≈ (input tokens × input price)+ (output tokens × output price)- (cached tokens × (input price - cached price))
Before evaluating any model, collect the distribution of these three token types from your own production logs, then plug the numbers into each vendor’s quote. Conclusions about “which model is expensive or cheap” often do not hold when separated from the workload shape.
2. Subscription Allowances and API Pricing Are Two Different Ledgers
A central argument in the community is that the usable allowance converted from a leading overseas model’s subscription tier—around USD 20 per month—is far higher than what a similarly priced domestic model subscription provides. Therefore, a model with a lower nominal API price may not be cheaper in practice.
This argument reminds us to distinguish two pricing models:
- Pay-as-you-go API: the price is a “suggested retail price.” You pay for what you use. It is transparent but offers no discount. It suits workloads with high traffic volatility and precise cost attribution.
- Subscription: a fixed monthly fee in exchange for an allowance pool. Three key variables matter: the size of the allowance pool, the reset cycle (weekly versus monthly resets can make a large difference), and whether different product forms such as chat and coding assistance share an allowance or are billed separately.
When comparing costs, the right approach is not to compare “list prices” but to calculate the effective unit price:
Effective unit price = monthly subscription fee ÷ equivalent token volume actually usable in the month
Note that subscription allowances usually have fair-use limits, and heavy users will hit rate limits. A rigorous evaluation process looks like this:
- Run a real workload through the API for one week and record the token consumption curve.
- Project total monthly consumption.
- Calculate the cost of two options separately: API-only payment and subscription plus overflow API usage.
- Combine that with stability and rate-limiting policies before making a final decision.
3. Why Doubling Model Scale Does Not Necessarily Double Price
Another point of controversy: when the previous-generation model was at the 1T-parameter level, its pricing was already not low. After the new generation expanded to nearly 3T parameters, the price rose severalfold. At the same time, another vendor released a larger-scale model at a lower price. Is this contradictory?
From a technical perspective, both can be reasonable because parameter count is not the same as inference cost. Key factors affecting inference cost include:
- Active parameters: under a mixture-of-experts (MoE) architecture, each token activates only some experts. Actual computation depends on active parameters, not total parameters.
- Compute supply and utilization: owned compute scale, cluster scheduling efficiency, and batching strategy all significantly dilute per-token cost.
- Engineering optimization: quantization, speculative decoding, attention mechanism optimization, and KV cache compression can all reduce inference overhead while maintaining quality.
- Pricing strategy: some vendors trade price for volume to capture the ecosystem, while others take a high-end position to recover training investment. This is a business choice, not a purely technical result.
Therefore, “the model got bigger, so it should be more expensive” and “another vendor got bigger and became cheaper” are both oversimplified inferences. The metric worth watching is cost per task—how many tokens, and therefore how much money, are consumed on average to complete a standardized task such as fixing a code defect or generating an analysis report. A new-generation model may have a higher token unit price, but if inference efficiency improves and fewer turns are needed to complete the task, cost per task may actually fall. Conversely, if the new model tends to “overthink” and token consumption per task surges, there are hidden costs beyond the headline price increase.
4. Engineering Practices for Cost Reduction
Regardless of which model you choose, the following practices can significantly improve your cost structure:
1. Maximize cache hit rate. Put static content such as system prompts, tool definitions, and few-shot examples at the prompt prefix, and place dynamic content afterward. Avoid inserting timestamps, random IDs, or other volatile fields into the prefix. The price gap between cache hits and regular input is often tens of times. Raising the hit rate from 30% to 80% can cut costs roughly in half.
2. Route requests by model tier. Not every request needs the flagship model. Build a routing layer: lightweight tasks such as intent classification and format conversion go to small models, and only complex reasoning tasks call the flagship model. Illustrative routing logic:
def route(request):complexity = estimate_complexity(request)if complexity == "low":return call_small_model(request)elif complexity == "medium":return call_mid_model(request)return call_flagship_model(request)
3. Control context bloat. Long-context capability is a double-edged sword—the more you stuff in, the higher the input cost. Establish context management policies: summarize and compress conversation history, prune retrieval results by relevance, and truncate tool returns.
4. Limit wasted generation. Use max_tokens caps, structured output constraints, and clear stop conditions to prevent redundant model output, because output tokens are the most expensive part.
5. Build cost observability. Tag each request with business labels and aggregate token consumption by feature, user, and task type. Without cost attribution, any optimization is guesswork. Use general logging and monitoring/alerting capabilities to set automatic alerts for sudden consumption spikes and prevent runaway loops from causing bill blowups.
5. Model Selection: Replace Emotional Judgment with Benchmarks
When facing the debate over whether a severalfold price increase is worth it, make decisions in the following order:
- Define the workload profile: input/output ratio, context length, and task-type distribution.
- Build a private evaluation set: sample 50–200 representative tasks from real business workloads, run them on candidate models, and record both success rate and token consumption.
- Calculate cost per task: success-rate-weighted cost is the effective cost—a cheap model that needs three retries is worse than an expensive model that succeeds once.
- Account for hybrid subscription and API plans: calculate the effective unit price using the method in Section 2.
- Preserve multi-vendor capability: connect to multiple models through a unified adapter layer. This allows price comparison and switching, and maintains availability when a single vendor rate-limits. At the infrastructure level, general capabilities such as cloud container platforms and message queues can be used to build such routing and scheduling systems at relatively low cost.
Conclusion
Rapid changes in LLM pricing essentially reflect the industry moving from “subsidies for market share” toward “aligning cost and value.” For developers, rather than agonizing over the size of a particular price increase, it is better to build your own cost measurement system: understand the three-layer billing structure, calculate both the subscription and API ledgers, replace unit-price comparison with cost per task, and continuously reduce spending through engineering measures such as caching and routing. When a new-generation model is released, you do not need to take sides; you need a regression test based on your own data. Letting the numbers speak is the strongest capability for dealing with pricing volatility.
