How to Calculate the True Cost of LLMs After Price Adjustments
Looking solely at the price per million tokens is not enough to determine whether a large language model (LLM) is cost-effective. This article explains how to evaluate the true total cost of completing tasks by factoring in token consumption, task success rates, and manual review costs. It also covers subscription leverage, the factors behind pricing changes, different pricing strategies, and a practical five-step framework for developers to select the right model based on real-world metrics.
Conclusion First
You cannot judge whether a model is a good deal just by looking at the unit price per million tokens. What truly matters is the total cost of completing a specific task, which is determined by the unit price, the number of tokens consumed, the task success rate, and subsequent manual labor costs. Using the recent K3 price adjustment as a starting point, this article provides a reproducible evaluation methodology for your own business.
1. Unit Price Does Not Equal Total Cost
Recent reports indicate that the K3 series output price has reached 100 CNY per million tokens, with an input price of 20 CNY and a cache hit price of 1 CNY. These figures are based on reports; always refer to the current pricing on the provider’s official website.
The actual expenditure on a model depends on how many tokens are consumed when completing a task. The cost of a single attempt can be calculated using the following formula:
Single Attempt Cost = (Input Tokens ÷ 1,000,000 × Input Price) + (Output Tokens ÷ 1,000,000 × Output Price)
Let’s illustrate this with a hypothetical example. Assume a task requires 2,000 input tokens and 1,000 output tokens.
Model A: Input price 20 CNY, output price 100 CNY (the K3 pricing mentioned above). The single attempt cost is: (2,000 ÷ 1,000,000 × 20) + (1,000 ÷ 1,000,000 × 100) = 0.04 + 0.10 = 0.14 CNY.
Model B (hypothetical): Input price 5 CNY, output price 30 CNY. However, completing the same task requires 3,000 output tokens. The single attempt cost is: (2,000 ÷ 1,000,000 × 5) + (3,000 ÷ 1,000,000 × 30) = 0.01 + 0.09 = 0.10 CNY.
Model B has a much lower unit price and a lower single attempt cost. However, this comparison does not account for the task success rate.
2. Factoring in Success Rates and Review Costs
Assume Model A has a task success rate of 90%, while Model B has a 60% success rate. The expected cost per successful task completion would be:
Model A: 0.14 ÷ 0.90 ≈ 0.156 CNY
Model B: 0.10 ÷ 0.60 ≈ 0.167 CNY
Model B is cheaper per attempt, but its lower success rate means it ultimately costs more to successfully complete a task. This shows that API call prices cannot be directly compared without context.
Based on this, we can define the Cost per Unit Effective Completion (CUEC)—the total cost of completing a standard task:
CUEC = (Single Attempt Cost ÷ Task Success Rate) + Review and Debugging Cost per Successful Task
Review and debugging costs must be calculated based on manual time. If a failed output requires 5 minutes of manual correction, this time cost should be factored into the formula.
3. Subscription Plans: Comparing Benefits with Leverage
Subscription prices may appear low, but whether they offer good value depends on the equivalent usage included in the plan. You can compare this using the following metric:
Leverage Ratio = Equivalent Usage Included in Plan ÷ Subscription Price
When using this metric, keep three things in mind. First, the numerator and denominator must be in the same currency; different platforms may have varying exchange rates and pricing models. Second, included quotas may have expiration dates, rate limits, or model scope restrictions. Third, plan details are subject to change, so always refer to the official current plan page.
This article does not cite unverified plan multipliers; readers should verify this metric independently. Additionally, whether a subscription is worth it depends on actual usage volume. For lower monthly usage, pay-as-you-go is usually more suitable.
4. Three Factors Behind LLM Price Adjustments
Pricing is typically influenced by cost, value, and competition.
Cost. Technologies like inference optimization, longer context windows, and reinforcement learning alignment can increase the compute resources required for a single inference. If a model uses a deeper Mixture of Experts (MoE) architecture or more complex attention mechanisms, the compute cost per token may rise. This is just one possible outcome. The actual impact depends on the MoE structure, context length, batching methods, and cache hit rates; price alone cannot determine which specific technology is at play.
Value. A model’s performance in areas like code generation, complex reasoning, and long-text comprehension determines the premium enterprises are willing to pay. Whether a model ranks high on public leaderboards should be verified by checking the leaderboard’s name, publication date, evaluation dataset, and model version. A single ranking cannot prove that pricing is reasonable.
Competition. Multiple domestic model providers often adjust their prices simultaneously. Providers must align their prices with their market positioning while also considering the prices of competitors and user expectations.
5. Three Pricing Strategies
Performance-Tiered Pricing. Models are divided into standard and high-performance versions. The standard version handles high-frequency, lightweight tasks like classification and information extraction, while the high-performance version targets complex reasoning and long-document processing. Users pay based on their needs, but the product line becomes more complex, requiring clear version documentation.
Adjusting Plan Leverage. Increasing the included quotas for mid-to-low tier plans can attract small and medium-sized developers, but it compresses the provider’s profit margins. Whether this is viable requires calculating gross margins, cache hit rates, peak concurrency, and user segmentation.
Task-Based Billing. Charging flat rates for specific task types (e.g., code generation, document summarization, conversational completion) makes it easier for users to budget. The tradeoff is that the provider assumes the risk of varying resource consumption across different tasks, so the pricing rules must be completely transparent.
6. Five Steps for Developer Model Selection
- Build a Task Benchmark Suite. Select 5 to 10 typical task types in your business. Record the input tokens, output tokens, retry rate, time to first token (TTFT), and output quality score for each category.
The table below is a placeholder example; actual data must be measured within your own business:
| Task Type | Avg. Input Tokens | Avg. Output Tokens | Retry Rate | TTFT | Quality Score |
|---|---|---|---|---|---|
| Text Classification | 800 | 50 | 5% | 0.8s | 4.5/5 |
| Long Document Summary | 12,000 | 800 | 15% | 3.2s | 4.2/5 |
| Code Generation | 3,000 | 1,500 | 25% | 5.0s | 4.0/5 |
- Calculate the CUEC. Compute this separately for each task type, then calculate a weighted sum based on the proportion of each task type in your overall business.
- Account for Hidden Costs. Include the costs of retrying incorrect outputs, debugging time, and security audits.
- Monitor Cache Hit Rates. If your business requests are highly repetitive and template-driven, the cache hit price will significantly impact your total cost.
- Validate with Low Traffic Before Full Migration. Set a periodic re-evaluation schedule. Model prices and subscription rules change frequently, so every decision should be based on current pricing.
7. Conclusion
The K3 price adjustment demonstrates that the cost of large language models cannot be measured solely by unit price. During model selection, you should calculate task consumption, success rates, hidden costs, and caching strategies together. Pricing information changes frequently; the most reliable data sources are the official current pricing page and empirical testing data from your own business.
