LLM API Billing: Why Identical Unit Prices Produce Different Bills
This article explains why LLM API bills can differ even when published per-token unit prices match. It covers batch processing discounts, subscription packages, off-peak pricing, cache write fees, model migration costs, break-even calculations, common mistakes, and a practical framework for platform selection and monthly cost measurement.
During model selection, many developers compare only the published pay-as-you-go unit prices. When unit prices match, platforms may appear equivalent. Monthly bills often show a different result because rules beyond the unit price matter: whether offline batch processing has a discount, how subscription packages offset usage, whether off-peak calls receive additional discounts, and whether cache writes are billed separately.
The conclusion up front is that selection should follow this order. First, separate tasks into real-time interactive and offline batch workloads. Second, for high-volume tasks with flexible timing, calculate the break-even point for a subscription plus off-peak plan. Third, account for cache write fees and confirm whether caching actually saves money.
The platforms and models in this article are anonymized. The prices are illustrative examples and are not a procurement basis. For actual selection, use the latest official price lists and bills from each platform.
1. Why total bills differ when unit prices are the same
Take one mainstream model series as an example. Four platforms have the same pay-as-you-go list prices: CNY 20 per million input tokens, CNY 2 per million cached-hit tokens, and CNY 100 per million output tokens. The advanced model is priced at CNY 13 for input, CNY 1.3 for cache hits, and CNY 68 for output.
List prices determine the base cost per token. They do not include three categories of rules: whether offline batch processing has a discount, whether subscription packages can offset usage, and whether off-peak calls receive additional discounts. These three categories determine the actual cost of the same workload on different platforms.
2. First layer of difference: offline batch processing discounts
Among the four platforms, only one open platform provides an explicit Batch channel. When submitting non-real-time, latency-tolerant batch tasks, the unit price is 60% of the standard price. The other three platforms’ pricing documentation does not contain an equivalent discount clause.
Take a typical overnight data-cleaning task as an example. Assume 100 million input tokens and 20 million output tokens.
The real-time channel cost is: 100 × CNY 20 + 20 × CNY 100 = CNY 4,000.
The Batch channel cost is: CNY 4,000 × 60% = CNY 2,400.
The task saves CNY 1,600, a direct cost reduction of 40%.
This saving ratio applies only to this type of task. If the workload includes many real-time requests, the overall saving will shrink accordingly.
Tasks suitable for the Batch channel include:
- Log analysis and data labeling that do not require second-level response.
- Bulk content moderation that can run on a scheduled overnight basis.
- Offline knowledge base construction, such as preprocessing before large-scale text vectorization.
Before use, confirm three things: whether the platform provides an explicit offline batch interface, whether the task completion deadline is acceptable, and whether the platform imposes limits on concurrency and single-task size. If the documentation is unclear, confirm through support or sales channels.
3. Second layer of difference: subscription packages and off-peak billing
An independent AI infrastructure provider offers token subscription packages covering the models above. Users pay a fixed monthly fee and receive a certain quota of input and output token packages. The special feature is that off-peak calls can avoid consuming package quota and receive an additional discount.
The main package rules are as follows:
- Subscription coverage: the monthly fee includes a certain amount of input and output token packages.
- Overage pay-as-you-go: usage beyond the package is billed at the standard unit price.
- Off-peak discount: consumption scheduled to the platform’s low-peak period (for example, 18:00 to the next morning) is not counted against the package offset but is billed at a discounted price.
Assume the following:
- Monthly total usage is 100 million input tokens and 20 million output tokens, which would cost CNY 4,000 at standard prices.
- The package monthly fee is CNY 2,500 and includes 50 million input tokens and 10 million output tokens. The standard value of this package is CNY 2,000.
- The off-peak discount is 50% of the standard price and applies only to the overage.
- Package quota is used up during the daytime peak period.
Under these assumptions, the monthly costs of four options are as follows:
- Pure pay-as-you-go: CNY 4,000.
- Subscription with all overage at standard price: CNY 2,500 + CNY 2,000 = CNY 4,500, which is CNY 500 more than pure pay-as-you-go.
- Subscription with 30% of overage moved to off-peak: CNY 2,500 + CNY 2,000 × 70% + CNY 2,000 × 30% × 50% = CNY 2,500 + CNY 1,700 = CNY 4,200, still CNY 200 more than pure pay-as-you-go.
- Subscription with 100% of overage moved to off-peak: CNY 2,500 + CNY 2,000 × 50% = CNY 3,500, which is CNY 500 less than pure pay-as-you-go, a reduction of about 12.5%.
These numbers show that a subscription plan does not automatically save money. It needs two conditions: the package quota must be fully used, and enough of the overage calls must be placed in off-peak periods.
The break-even point can be calculated with the following formula:
Subscription monthly fee + overage standard value × [(1 − s) + s × d] < pure pay-as-you-go monthly fee
Here, s is the proportion of overage moved to off-peak, and d is the off-peak price coefficient (0.5 at a 50% discount).
Substituting the numbers above gives CNY 2,500 + CNY 2,000 × (1 − 0.5s) < CNY 4,000, which means s > 50%. In other words, only when more than half of the overage calls are placed in off-peak periods can the subscription plan be cheaper than pure pay-as-you-go.
If monthly usage falls below the package quota, the package fee is still incurred in full, and unused quota cannot be refunded. Therefore, before subscribing, estimate usage stability using the past three months of bills.
4. Two easily overlooked hidden rules
The first is bidirectional cache billing. Most platforms automatically enable caching for repeated prefixes, and cached-hit portions are billed at the lower cache-hit unit price. However, cache writes themselves may be billed separately, and prices may differ by time-to-live (TTL). The following example assumes a default TTL of 5 minutes and a write price of 1.25 times the input price. Specific values should follow the platform documentation.
Assume a system prompt prefix of 50,000 tokens, called once per minute, for a total of 20 calls within a 5-minute window.
Without cache: 20 calls × 50,000 tokens × CNY 20 per million tokens = CNY 20.
With cache: one write costs 50,000 × CNY 20 per million × 1.25 = CNY 1.25, and the other 19 hits cost 19 × 50,000 × CNY 2 per million = CNY 1.9, for a total of CNY 3.15.
If the call interval exceeds 5 minutes, every request triggers a write. In that case, 20 calls cost CNY 25, which is CNY 5 more than the CNY 20 without cache. Caching pays only when requests are frequent and the prefix is stable.
The second is legacy model retirement migration. An older model series is no longer open to new users and is planned to be retired at the end of the year. Businesses that depend on the old model need to modify prompts and adjust parameters, and the new model’s unit price structure may also change. The engineering cost of migration should be included in the budget, and the migration window should be planned in advance.
5. Common mistakes and considerations
- Comparing only list prices while ignoring discounts and package rules.
- Ignoring cache write fees and treating caching as a zero-cost optimization.
- Not validating the success rate of off-peak scheduling. Failed tasks need to be rerun, and retry costs may offset the discount.
- Purchasing a package quota larger than actual usage, with unused portion non-refundable at the end of the month.
- Binding all traffic to a single platform. When billing rules change, lacking an alternative weakens negotiating leverage.
6. Comprehensive selection strategy
When multiple platforms have the same unit price, decisions can be made in the following order.
Step one: split by business form. Real-time interactive tasks should prioritize platforms with low access latency and existing business resources. Offline tasks should prioritize platforms that provide explicit Batch discounts.
Step two: calculate subscription and off-peak options. For businesses with large call volumes and flexible timing, use the formula above to calculate the break-even point. Consider a subscription only when the off-peak share of overage can stably exceed the break-even point.
Step three: calculate cache benefits. First confirm whether request prefixes are stable and call frequency is high enough, then calculate write fees and hit benefits.
Finally, keep an account on at least one backup platform. Multi-platform redundancy is both a disaster recovery measure and a basis for price negotiation.
7. Measurement method and risk notes
It is recommended to measure monthly using actual bills with the following formula:
Monthly total cost = real-time call cost + Batch task cost + subscription monthly fee + overage call cost (priced separately for off-peak and daytime) + cache write cost + failed retry cost
Note the following risks:
- Off-peak scheduling may fail, causing tasks to return to peak-period pricing.
- Packages may expire, or quotas may be adjusted.
- Overage unit prices and off-peak discounts may change.
- All calculations in this article are based on example prices. Actual results should follow the rules and bills published on each platform’s official website.
LLM API cost control has entered a stage of fine-grained operations. The comparison focus is not which platform has the lower list price, but which platform’s rules better fit your own call patterns. Put offline discounts, off-peak pricing, and subscription offsets into the same measurement model, then validate with actual bills, to convert list prices into real costs.
