LLM API Pricing: Why Monthly Bills Differ When Unit Prices Converge
As list prices for mainstream LLM APIs converge, monthly bills can still vary widely because of cache billing, batch processing, off-peak rules, subscription quotas, and migration costs. This article breaks down these billing variables and provides a reusable example and calculation method for comparing providers using real usage data.
Why do bills differ when unit prices are the same?
Many developers start by comparing per-token list prices across platforms. For the professional tier of a mainstream LLM family, public list prices across multiple channels are close: CNY 13 per million input tokens, CNY 1.3 per million cache-hit tokens, and CNY 68 per million output tokens. With the same unit prices, it may look like choosing any provider makes no difference.
But when the same call volume is calculated under different billing rules, the monthly bill can differ substantially. The main variables include cache billing, batch processing, off-peak rules, and subscription quotas. This article explains how these variables affect the bill and gives a calculation method you can apply yourself. All prices in this article are illustrative assumptions, not current prices from any platform. Check the latest official pricing before use.
1. What the list price does not show
Cache billing. Cache-related costs usually fall into three categories. Cache write is the cost incurred when a prefix is first stored in the cache. Some platforms charge for this separately and price it by cache retention time (TTL) in tiers, such as 5 minutes and 1 hour. Cache hit is the cost when later requests reuse the same prefix; some platforms can price it as low as 10% of the standard input price. On a cache miss, that input is billed at the normal input price. For long-lived prefixes such as system prompts and tool definitions, the higher the hit rate, the more obvious the savings. Changing even one character in the prefix invalidates the cache.
Model lifecycle. Before an older model is retired, the official guidance usually recommends migrating to a newer generation. If an application still depends on the old model, migration requires engineering work. During the migration window, old and new services run in parallel, and resource overhead rises for a short period. This cost is not in the list price, but it does appear in the monthly bill.
Regional differences. The same model may have different prices in different regional nodes, and overseas regions are often higher. Some platforms price overseas nodes more than 10% higher. Before deploying across regions, check the price page for the target region directly instead of applying numbers from another region.
2. Boundary conditions for batch processing and off-peak rules
Batch processing. Offline tasks such as bulk content moderation, data cleaning, and offline analytics are not latency-sensitive, so some platforms offer batch discounts. Using an example platform, the batch price is 60% of the standard price. If offline tasks account for 30% of all tokens and the discount does not stack with other discounts, overall spending drops by about 12%. When the offline share reaches 37.5%, the reduction is about 15%.
Before use, confirm several conditions: the maximum completion time the task can tolerate, whether there is a queue-time limit, whether failed tasks are retried automatically and billed again, and whether tasks can be canceled. Some platforms do not mention batch rules on their price pages. If users do not check the documentation proactively, they may pay full price for offline tasks.
Off-peak rules. Some platforms lower unit prices during low-demand periods, for example by defining the period after 6 p.m. as off-peak. When using this rule, confirm the exact off-peak window, whether the off-peak discount applies uniformly to input, cache hits, and output, whether off-peak requests are queued or rate-limited, and whether the off-peak discount can stack with subscription quotas. The calculations in this article assume that the off-peak discount applies equally to all three token types and can stack with subscription quotas.
3. How to choose an LLM API to save money
A fixed monthly fee plus overage is a common subscription model. To judge whether a subscription is worthwhile, calculate two numbers first: how many tokens the subscription quota covers, and how much those tokens would cost on pay-as-you-go. If the monthly fee is lower than the pay-as-you-go value, the subscription has room for savings. If the quota is not fully used, the effective unit price will be higher than the pay-as-you-go price, and the subscription can increase cost instead.
You can evaluate providers in three steps.
Step 1: Break down your own calls. Use a real bill from the past month to measure the input-to-output ratio, cache hit ratio, offline task share, and peak/off-peak distribution. If you do not have bill data, at least estimate the output token share, because output is usually the main source of cost.
Step 2: Calculate with weighted rules. Do not use the simple method of “unit price multiplied by total volume.” Apply cache, batch, off-peak, and subscription rules separately to each token category, then sum the results.
Step 3: Include migration costs. If your business is already deeply integrated with a cloud provider—for example, using its message queue, object storage, or container services—switching API providers requires more work than changing the Base URL. Check the following items:
- Internal network latency and connectivity; cross-cloud calls may add latency and egress traffic fees
- Authentication and key management, including key rotation and permission isolation
- Rate limits and quotas; confirm that the new platform’s concurrency and tokens-per-minute limits can handle peak traffic
- Logging, monitoring, and alerting integration
- API compatibility, including tool-call format, streaming output, and SDK versions
- Rollback plan to ensure a fast switch back to the original platform if a failure occurs
In practice, if the combined cost difference between two platforms is within 10% to 15%, keeping the existing integration usually saves more engineering resources. This is an empirical judgment, and engineering labor costs should still be included in the final comparison.
4. A reusable calculation example
Assume a business has a monthly call volume of 100 million tokens: 70 million input tokens and 30 million output tokens. Of the input, 40% hit the cache. Use the illustrative price assumptions above: CNY 13 per million input tokens, CNY 1.3 per million cache-hit tokens, and CNY 68 per million output tokens.
Scenario 1: Pure pay-as-you-go with cache.
- Input misses: 42 million × CNY 13/million = CNY 546
- Cache hits: 28 million × CNY 1.3/million ≈ CNY 36.4
- Output: 30 million × CNY 68/million = CNY 2,040
- Total: about CNY 2,622
Note that each input segment can be billed only once. The 42 million missed tokens plus the 28 million hit tokens make up all 70 million input tokens. You cannot bill all 70 million input tokens at both CNY 13 and CNY 1.3.
Without cache, all 70 million input tokens would be billed at CNY 13, for an input cost of CNY 910 and a total of CNY 2,950. In this example, cache saves about CNY 328, or about 11%.
Scenario 2: Subscription plus off-peak migration.
- Subscription: monthly fee CNY 800, quota 40 million tokens, proportionally covering 40% of input, cache, and output. At pay-as-you-go rates, the value of these 40 million tokens is about CNY 2,622 × 40% ≈ CNY 1,049, which is higher than the CNY 800 monthly fee, so the subscription has room for savings.
- Overage: 60 million tokens, including 25.2 million input misses, 16.8 million cache hits, and 18 million output. At standard prices, the overage cost is CNY 327.6 + CNY 21.84 + CNY 1,224 ≈ CNY 1,573.
- Off-peak migration: assume 40% of the overage can be moved to off-peak periods, where the unit price is 70% of standard. This part costs CNY 1,573 × 40% × 70% ≈ CNY 441. The remaining 60% is still CNY 1,573 × 60% ≈ CNY 944, for a total overage of about CNY 1,385.
With subscription only and no off-peak use, the total cost is CNY 800 + CNY 1,573 ≈ CNY 2,373, about 9.5% lower than Scenario 1. With off-peak migration, the total cost is CNY 800 + CNY 1,385 ≈ CNY 2,185, about 16.7% lower than Scenario 1.
If the off-peak migration share rises to 50%, the total cost is about CNY 2,137, a reduction of about 18.5%. Under this set of assumptions, the combined reduction from stacking these rules is roughly 17% to 19%. The subscription fee and the size of the overage together limit the maximum possible reduction.
This example also shows something else. Output tokens have the highest unit price and account for about 78% of total cost in this case. All input-side costs, including cache hits, are about CNY 582, or only about 22% of total cost. To reduce cost, controlling output length is often more effective than simply comparing input prices.
To achieve a reduction of more than 50%, multiple conditions usually need to hold at the same time—for example, a very high cache hit rate, a large offline task share, and a subscription price clearly below the pay-as-you-go value. Whether this is achievable must be verified with your own bill data.
5. Conclusion: use bill data to decide
LLM API pricing rules change quickly, and platforms differentiate themselves through rules for cache, batch processing, off-peak usage, and subscriptions. For developers and business decision-makers, the most reliable approach is to break down your own call characteristics and then apply each platform’s billing rules item by item.
Before deciding, complete three tasks. First, validate the calculation with real bill data. Second, rely on official documentation and the latest price pages, because prices and rules may change at any time. Third, complete migration testing before the old model is retired to avoid an operations gap during the version switch.
The list price sets the starting point, but the bill is determined by both usage patterns and billing rules. Rather than chasing unit price alone, build a cost evaluation method that can be updated continuously as the business changes.
