LLM API Costs: Why Identical Unit Prices Can Still Produce a 50% Different Bill
Developers often compare LLM API input, cache-hit, and output unit prices and conclude that providers are equivalent. In production, however, bills for the same traffic can differ by 30%–50%. This article explains the hidden billing variables beyond the unit price table: cache writes and TTL, batch-call discounts, subscription packages and off-peak rules, free quotas, and regional pricing. It also provides a unified cost model, practical instrumentation steps, and version-lifecycle considerations to help teams compare LLM API costs accurately and reduce spend.
When calling LLM APIs, many developers start by opening each platform’s pricing page and comparing three numbers: input unit price, cache-hit unit price, and output unit price. For current mainstream flagship models on several platforms that host and distribute models, usage-based pricing is strikingly consistent: CNY 20 per million input tokens, CNY 2 for cache hits, and CNY 100 for output; an advanced model is commonly priced at CNY 13 / 1.3 / 68. Looking only at that table, the conclusion seems to be that every provider costs the same.
Real production bills disprove that conclusion. Under the same business traffic, monthly spending across platforms can differ by 30%–50%. The reason is not in the unit-price table but in the billing rules, discount mechanisms, and usage patterns around it. The following sections break down the main sources.
Five Sources of Bill Differences
1. Caching: Enabled Automatically, but Billed Differently
Mainstream LLM services generally support prefix caching: when multiple requests share the same system prompt or long context prefix, the repeated portion hits the cache and is billed at the cache-hit price, usually about one-tenth of the input price. This looks like a universal benefit, but the details matter:
- Whether cache writes are charged: some platforms bill cache-write operations separately and price them by different lifetimes, such as a 5-minute TTL versus a 1-hour TTL. More writes and longer lifetimes mean higher hidden costs.
- Whether TTL matches the business rhythm: if request intervals generally exceed the cache lifetime, the cache is effectively useless, but write fees are still charged.
- Hit-rate accounting: even with the same cache-hit price of CNY 2, a business with an 80% cache hit rate and one with a 30% hit rate can see actual input costs differ by more than twofold.
Practical recommendation: place frequently reused system prompts and tool definitions at the very front of the request body, and control session turn cadence to match the cache TTL. When calculating costs, model them as “uncached input price × miss rate + cache-hit price × hit rate + write fee” rather than looking only at the input unit price.
2. Batch-Call Discounts: The Strongest Lever for Offline Tasks
Some platforms offer a batch mode: tasks are submitted asynchronously and returned later, in exchange for billing at roughly 60% of the standard price. For evaluation, data labeling, document batch processing, nightly report generation, and other scenarios that are not sensitive to real-time latency, this is one of the easiest cost optimizations to overlook and one of the highest-return. If half of a team’s calls can move to batch mode, that alone can save 20% of the list price.
3. Subscription Packages and Off-Peak Rules: Hedging Tools for Stable Traffic
Some platforms offer monthly token packages that trade prepayment for a lower effective unit price, and some also include off-peak rules that provide additional discounts during low-traffic periods. This model suits mature workloads with stable, predictable call volume. Conversely, businesses with highly volatile traffic may buy a package and fail to use it fully, which becomes waste. The key to selection is to build at least two weeks of traffic profiling before deciding between pay-as-you-go and subscription.
4. Free Quotas: Trial Benefits for New Models
To promote newly launched models, some platforms provide free quotas in the millions of tokens. For teams in the validation stage, this can support a complete proof of concept and canary testing. Note that quotas usually have expiration dates and applicable model scopes. Include them in the “first-month cost basis” to avoid bill shock after the trial period ends.
5. Regional Pricing: Hidden Costs for Cross-Region Services
The same model may have different prices in different regions. For example, some platforms price certain overseas regions about 10% higher than their home region. For services with users in multiple regions, beyond the unit price, teams should weigh the latency benefit of nearby access against the cost increase. When necessary, consider an architecture with model inference in one region plus edge distribution.
The Right Way to Calculate Costs
Build a unified reconciliation model with the following formula:
Monthly cost = Σ(uncached input tokens × input price)+ Σ(cached tokens × cache-hit price)+ Σ(cache write tokens × write price)+ Σ(output tokens × output price)- batch discounts - free quota - subscription credits
Then multiply by the regional coefficient. On that basis, do three things:
- Instrumentation: record input, output, and cached token volumes and cache hit rate daily.
- Scenario split: distinguish real-time calls from offline calls, and evaluate batch mode for the offline portion.
- Traffic profiling: evaluate the break-even point for subscription packages.
Version Lifecycle Is Also a Cost
Also pay attention to model version retirement schedules. When a platform announces that a model generation will stop accepting new users and is scheduled for retirement, plan migration early to avoid being forced to switch during a business peak. During migration, prefer a next-generation version with comparable capabilities and rerun evaluation sets to confirm the quality baseline. Token consumption distribution, especially chain-of-thought output length, can differ significantly across model generations and directly affect output-side bills.
Conclusion
The unit-price table is only the beginning of the pricing story. Cache TTL and write billing, batch discounts, subscription packages, free quotas, regional pricing, and version lifecycle are the real variables that determine bill differences. Build a unified reconciliation model, split usage scenarios, and continuously monitor cache hit rates to actually reduce costs in the “same-price era” of LLM APIs.
