How to Evaluate LLM API Pricing: From Unit Prices to Real Per-Task Costs
This article explains how to judge LLM API pricing beyond headline unit prices. It covers three layers of cost: nominal per-token prices, subscription prices converted to a per-token basis, and the actual cost of a typical task. It includes a formula and a Python script for sensitivity analysis, along with selection advice for developers and businesses.
1. Why a Higher Unit Price Does Not Automatically Mean Higher Costs
A recent release from a Chinese large language model (LLM) provider raised the output price of its new generation to roughly five times that of the previous one. The community quickly split into two camps: one said the increase was excessive, and the other said it was justified. Both views look at only one part of the problem.
Evaluating whether an LLM’s pricing is reasonable requires three levels of analysis:
- Nominal unit price: the input, output, and cache-hit prices per million tokens. This is the easiest figure to find and the easiest to misread.
- Subscription-converted price: the effective unit price of a subscription plan, such as a fixed monthly fee for a set quota, calculated per token. This is often an order of magnitude lower than the API list price.
- Real consumption per task: the number of tokens a typical task consumes, multiplied by the unit price. This shows what each call actually costs, which is what most users care about.
Debating only the first level often leads to a one-sided conclusion. A model with a higher unit price can cost less overall if it completes tasks successfully, needs fewer retries, and uses its context window efficiently. Conversely, a cheaper model that needs several retries may cost more in practice.
2. Quantitative Analysis Across Three Dimensions
2.1 Limitations of Comparing Nominal Unit Prices
Price increases for new-generation models usually come with capability gains. Flagship models from leading providers tend to be priced in the same range, and a high price for a model that ranks near the top on benchmarks partly reflects the market’s pattern of charging a premium for performance. Still, comparing nominal unit prices has two blind spots:
- No like-for-like baseline: providers differ widely in how they bill. Some separate cached tokens from uncached ones, and some tier prices by context length. Comparing the raw numbers can therefore be misleading.
- Usage structure is ignored: the ratio of input to output tokens and the cache hit rate vary greatly across real workloads. A model whose cache-hit price is an order of magnitude lower is especially well suited to agent-style applications that repeatedly send the same long context.
2.2 Subscription Conversion: The Hidden Real Price Gap
Subscription plans are the most common way for individual developers to pay for model access. If you divide each provider’s plan fee by its usage cap, you get the amount of real usage each unit of currency buys. This calculation shows a notable pattern:
- Some subscription plans from leading overseas providers offer a leverage of roughly 10 to 20 times compared with their API list prices. In other words, subscribers pay an effective unit price far below the API rate.
- The subscription leverage of some domestic models is clearly smaller. For these models, the converted price for subscribers is close to the API price.
This means that even when the API list price is similar or lower, a model with small subscription leverage can cost heavy subscribers significantly more. Many pricing discussions overlook this point.
2.3 Per-Task Consumption: The Final Measure of Value for Money
Capable models often generate longer chains of reasoning and make more tool-call rounds, which increases the number of tokens consumed per task. If a model’s average per-task consumption approaches that of the most expensive competitor, and its unit price is not much lower, it has no real cost advantage overall.
A rough estimate of total cost can be expressed as follows:
Cost per task ≈ (input tokens × input price + output tokens × output price + cache-hit tokens × cache price) × (1 + retry rate)Cost-effectiveness = task completion quality / cost per task
You can run a sensitivity analysis with a short script:
def cost_per_task(in_toks, out_toks, cache_toks,p_in, p_out, p_cache, retry=0.0):# Unit: CNY per million tokensbase = (in_toks * p_in + out_toks * p_out+ cache_toks * p_cache) / 1_000_000return base * (1 + retry)# Example: 8k input tokens, 2k output tokens per task, with 60% of input tokens hitting the cachec = cost_per_task(8000, 2000, 4800,p_in=20, p_out=100, p_cache=1, retry=0.1)print(f"Average cost per task: about {c:.4f} CNY")
Plug the unit prices of each candidate model into the same set of task parameters, then multiply by your measured task completion and retry rates. The result is a far more reliable basis for model selection than comparing benchmark scores or unit prices alone.
3. What Makes Pricing Competitive
Returning to the original question, what price structure is truly competitive? Three criteria stand out:
- Capability premiums must be verifiable: a higher price should correspond to reproducible gains in areas such as complex reasoning, long-context handling, and agent task success rates, not just leaderboard rankings.
- Subscription leverage must be large enough: subscriptions work by trading volume for a lower price. The 10 to 20 times leverage offered by leading providers has become a psychological anchor for users. If the converted subscription price is close to the API price, heavy users will leave quickly.
- Per-task costs must be controllable: more efficient inference strategies, such as trimming reasoning chains sensibly, raising cache hit rates, and improving context compression, reduce the tokens each task consumes. This demonstrates technical strength more convincingly than a simple price cut.
By these criteria, the capability gains in the new generation deserve recognition. However, its pricing and subscription structure still face clear value-for-money pressure compared with leading international products. For providers, rather than following price increases, it may be more effective to build differentiation through more generous subscription quotas and lower cache prices. For users, a three-layer evaluation framework of unit price, subscription-converted price, and per-task consumption supports decisions based on data rather than sentiment.
4. Selection Advice for Developers and Enterprises
- Test before you buy: run a small benchmark on your own real tasks, record token consumption, success rates, and retry rates, and then apply the formula above.
- Route by scenario: use low-cost models or enable caching for simple tasks, and send only complex reasoning tasks to flagship models. This can significantly lower total cost.
- Focus on caching and batching: in scenarios with frequently repeated context, such as fixed system prompts and knowledge-base Q&A, the cache-hit price is the key variable that determines cost.
- Lock in traffic costs: if a platform offers traffic packages or long-term discounts, these are often much more economical than pay-as-you-go pricing for stable workloads.
There is no standard answer to the pricing debate, but there is an evaluation method. Shifting the discussion from “Is it expensive?” to “What is the ratio of total cost to task quality?” is the rational approach that technical practitioners should take.
