LLM API Pricing Explained: Token Costs, Caching, and Subscription Cost Analysis

    This article explains why flagship LLM API prices move, how output, input, and cached tokens map to real inference costs, and why API sticker prices are poor comparison points. It covers subscription versus API effective pricing, competitive pressure, and practical cost-control methods such as prefix caching, structured prompts, workload-based benchmarking, and tiered model routing.

    LLM API Pricing Explained: Token Costs, Caching, and Subscription Cost Analysis

    1. Why Flagship Model Pricing Keeps Rising

    After a model team recently released a new-generation flagship model, its API pricing rose several-fold compared with the previous generation: output pricing reached roughly RMB 100 per million tokens, input pricing was around RMB 20, and cached input dropped to about RMB 1. The adjustment sparked extensive discussion in developer communities. Some argued that better performance justifies a premium; others questioned whether it fits industry norms for a larger model to cost several times more.

    To assess such pricing changes rationally, it helps to return to the underlying logic of LLM pricing: pricing is never simple cost-plus markup. It is the result of interaction among technical capability, supply and demand, competitive landscape, and business model.

    2. The Real Structure of Inference Cost: Why Output Is the Most Expensive

    From a billing perspective, almost all LLM services follow the same price gradient: output > input > cached input. Behind this gradient are real differences in inference computation.

    1. Output token cost. Autoregressive generation requires attention computation over all previously generated content at every step, and it cannot be parallelized at the same scale as the prefill phase. The compute cost of generating one token is usually several times the cost of processing one token during prefill. The output phase also places extremely high demands on memory bandwidth, making it a typically expensive path.

    2. Input token cost. The input side also requires a full forward pass, but prefill can be fully parallelized, GPU utilization is high, and unit cost is significantly lower than in the decode phase.

    3. The meaning of cache hits. Modern inference services commonly use prefix caching: when multiple requests share the same system prompt or long-context prefix, the KV cache can be reused directly, eliminating repeated prefill computation. This is the technical basis for the large gap between RMB 1 for cached input and RMB 20 for uncached input. For the service provider, the compute cost of a cache hit is nearly negligible, creating an incentive to pass part of the savings to users while also encouraging users to optimize prompt structure and reuse prefixes.

    For developers, this suggests a practical cost optimization strategy: place stable system instructions, tool definitions, and document content as early as possible in the prompt and keep them consistent, while concentrating dynamic content later. This can significantly improve cache hit rates. An illustrative call structure is:

    1. messages = [
    2. {"role": "system", "content": "<stable long instructions and documents that can be reused from cache>"},
    3. {"role": "user", "content": "<actual request that changes each time>"}
    4. ]

    In long-text, multi-turn dialogue, and Agent scenarios where tools are called repeatedly, this structural optimization can often reduce actual input cost by an order of magnitude.

    3. Unit Price vs. Total Cost: How to Evaluate Value Correctly

    A common mistake in community discussions is to compare API unit prices directly. In fact, API unit prices have very limited comparability for three reasons:

    1. Differences in pricing systems. Some vendors’ low effective prices come not from API pricing but from subscription plans aimed at individual developers. API list prices are adjusted frequently and have complex tiers, so direct unit-price comparison is not very meaningful.

    2. Differences in usage multipliers. The core of a subscription is a fixed monthly fee for usage within a certain quota. At the same subscription tier, different platforms can deliver vastly different equivalent API value. Some user estimates have found that certain flagship subscription tiers can cover dozens of times the monthly fee in equivalent API usage, while a newly released Chinese flagship model with a similar subscription price consumes quota much more aggressively, with per-task consumption approaching international flagship levels. This means the effective unit price calculated under a subscription may actually be higher than intuition based on API unit prices suggests.

    3. Differences in tasks. The single-run consumption of Agent-type tasks, including tool calls and long-context replay, is far higher than that of simple question answering. Evaluation should be based on benchmarking your own real business workload, not on leaderboard scores. A high leaderboard ranking only shows that the price is justified; it does not mean the model is cost-effective for your scenario.

    A suggested evaluation framework is:

    1. effective unit price = monthly subscription fee / number of real business tasks completed
    2. (or) effective unit price = Σ(tokens consumed per task × applicable billing rate) / number of tasks

    Run a benchmark round with typical tasks from your own business, then divide by price. Only the resulting number has decision-making value.

    4. The Competitive View: Pricing Is Not an Isolated Number

    Model pricing is also strongly constrained by competitors. A background point repeatedly mentioned in this round of discussion is that another Chinese team released a larger-parameter model at the same tier, but because of optimizations in inference architecture and infrastructure, its price dropped noticeably. This shows that expanding parameter scale does not necessarily raise unit price; inference efficiency, cluster scheduling, and caching strategy engineering also determine the final quote.

    This also means whether a flagship model’s premium can be sustained depends on continued progress in post-training capability. If a competitor achieves a significant breakthrough in post-training and matches or even surpasses capability while maintaining a low price, the first mover’s pricing room will be quickly compressed. This has played out many times historically: the LLM industry has no long-term moat based on first-mover premium.

    For users, this is not a bad thing: capability competition and price competition among leading vendors continue to push the entire industry toward cheaper and stronger models. For most application scenarios, the capability gap among leading models is often smaller than the price gap, so rational model selection may yield more value than chasing every new release.

    5. Recommendations for Developers and Enterprise Users

    1. Do not pay for benchmarks; pay for tasks. First define an evaluation set for your business, benchmark real tasks across models, and then compare prices.

    2. Use caching and structured prompts well. Prefix caching is currently one of the most overlooked and most certain cost-reduction methods, with especially clear benefits in long-text scenarios.

    3. Adopt tiered model selection and avoid flagship dependency. Assign high-difficulty reasoning and complex Agent tasks to flagship models; assign routine classification, summarization, formatting, and other light tasks to lower-cost or smaller models through a routing layer. In most production systems, this pattern can cut overall cost by more than half.

    4. Pay attention to effective unit prices for subscriptions versus APIs. If usage is stable and limited to individuals or small teams, prioritize evaluating the equivalent usage of subscription tiers; for high-frequency enterprise calls, a combination of API tiered pricing and cache optimization is more suitable.

    5. Maintain migration capability. Abstract models at the application layer and avoid deep coupling to the specific behavior of a single model, so you can switch at low cost when the price or capability landscape changes.

    6. Conclusion

    A several-fold increase in flagship model API prices looks like a “price hike” in the short term, but in the long term it is the result of industry competition and inference economics working together: the high cost of output, the savings potential of caching technology, the pricing game between subscription and API models, and the pressure from competitors’ post-training progress jointly shape the current price landscape. For developers and enterprise users, rather than fixating on a single price adjustment, it is better to build a cost evaluation system based on real task consumption and use engineering methods—cache reuse, model tiering, and structured prompts—to continuously lower actual cost. In an era when LLM capabilities are converging quickly, solid cost engineering is often more valuable in the long run than chasing every newly released flagship model.