Why Monthly LLM API Bills Can Differ by 50% Even at the Same Unit Price
When comparing LLM API pricing, identical per-token rates do not guarantee identical monthly bills. This article explains why the "standard unit cost" and the actual "cost function" differ across platforms, covering batch processing discounts, subscription plans with overage pricing, cache billing, free quotas, regional price differences, and a reusable formula for estimating monthly costs across conservative, baseline, and optimistic scenarios.
1. The Bottom Line: Same Unit Price Does Not Mean Same Total Cost
When comparing LLM API pricing, many teams focus only on three numbers from the pricing table:
- Input token price
- Cached input token price
- Output token price
This approach works for judging the “baseline list price,” but it is not enough to predict how much you will actually pay in a month. The real bill is usually also affected by:
- Whether batch processing discounts are supported
- Whether subscription plans or resource bundles exist
- Whether a plan covers only specific models
- How usage beyond the plan quota is billed
- Whether off-peak or nighttime pricing rules apply
- Whether new users or new models come with free quotas
- Whether different regions use different prices
- Whether caching applies automatically and how long the cache lives
Therefore, even if four platforms publish the same pay-as-you-go rates, you cannot conclude that their monthly bills will be the same. A more accurate statement is: their “standard unit costs” are identical, but their “cost functions” can be completely different.
If your workload is entirely real-time requests, with no plans, batch processing, or regional differences, costs across platforms will usually be close. If your workload includes large volumes of offline tasks, fixed-model calls, or off-peak requests, the final bills can diverge significantly.
2. A Unified Pricing Table: Establish the Baseline Cost First
For easier comparison, normalize pricing across platforms to “CNY per million tokens” and record it along three dimensions:
| Model Category | Input | Cached Input | Output |
|---|---|---|---|
| High-performance general model | 20 CNY | 2 CNY | 100 CNY |
| Next-generation enhanced model | 13 CNY | 1.3 CNY | 68 CNY |
| Lightweight code and reasoning model | 6.5 CNY | 1.3 CNY | 27 CNY |
The table above only represents standard pay-as-you-go pricing examples at a point in time. Always refer to the target platform’s latest pricing page for actual use. Note in particular that some platforms may not fully display cache pricing, or may only offer cache billing for specific models or regions.
2.1 Input and Output Costs Are Not Symmetric
For most LLM APIs, the output token price is significantly higher than the input token price. The reason is that output generation requires continuous inference and decoding, which typically consumes more compute resources.
For example, a single request contains:
- 1 million input tokens
- 200,000 output tokens
- No cache hits
Using the “high-performance general model” example pricing:
Input cost = 1 × 20 = 20 CNYOutput cost = 0.2 × 100 = 20 CNYTotal cost = 40 CNY
If your application generates long reports, code, test cases, or structured results, output tokens can quickly become the dominant cost. Conversely, for scenarios like classification, retrieval rewriting, or short Q&A, input may account for a larger share.
2.2 Do Not Estimate Cost by Request Count Alone
“100,000 API calls per day” is not a useful cost metric, because context length and output length can vary dramatically between requests. More meaningful units include:
- Input tokens per request
- Output tokens per request
- Cached prefix length
- Cache hit rate
- Call distribution across models
- Ratio of real-time to offline calls
It is recommended to log at least the following fields at the gateway layer:
request_idmodel_categoryinput_tokenscached_input_tokensoutput_tokensrequest_timeregionbilling_mode
With this data, you can convert “business call volume” into “verifiable billing volume.”
3. The First Real Differentiator: Batch Processing Discounts
Batch processing suits tasks that do not require immediate results, such as:
- Summarizing historical data
- Bulk document classification
- Offline content moderation
- Search index generation
- Code repository scanning
- Bulk report and tag generation
- Training data cleaning and format conversion
Some platforms charge batch jobs at a fixed percentage of the standard pay-as-you-go price. Taking a 40% discount (60% of standard price) as an example, if the original cost is 10,000 CNY, the batch cost is:
Batch cost = 10,000 × 60% = 6,000 CNYSavings = 4,000 CNY
This kind of discount does not mean every request should be converted to batch. Batch processing usually has the following constraints:
- Results are not returned immediately
- The submission, queuing, and result retrieval workflow is more complex
- Failed jobs require retries and idempotency control
- Some jobs may have submission size or file size limits
- It cannot directly replace online chat or real-time APIs
Therefore, the most important step is not “choosing the cheapest platform,” but splitting your workload into two categories:
Real-time workloads
Typical characteristics: users are waiting for results, and latency directly affects the experience. Examples:
- Online Q&A
- AI customer service
- Code completion
- Real-time search summarization
- Interactive data analysis
These requests should prioritize stable latency, availability, geographic proximity, and failover capability.
Offline workloads
Typical characteristics: tasks can finish minutes or hours later. Examples:
- Overnight batch processing
- Log archival analysis
- Re-indexing document libraries
- Large-scale data annotation
- Periodic content generation
These requests are better suited to batch processing, off-peak windows, or resource bundles. Sending all offline tasks as real-time requests usually means giving up available cost discounts outright.
4. The Second Real Differentiator: Subscriptions Combined with Overage Pricing
Another common model is “fixed plan plus pay-as-you-go overage”:
- The plan includes a fixed usage quota
- The plan may cover only designated models
- Usage beyond the quota reverts to pay-as-you-go pricing
- Off-peak requests may enjoy additional rules
- Unused quota may have an expiration date or may not roll over
This model works especially well for workloads with stable call volumes. Suppose a team has a fixed demand of 10 million tokens per month, and about half can be scheduled during off-peak hours—then a subscription model can be significantly cheaper than pure pay-as-you-go.
But subscriptions are not cost-effective for every team. Key risks include:
- Insufficient usage, leaving plan quota unconsumed
- The models actually used are not covered
- Business growth exhausts the plan quickly
- Overage pricing is high
- Off-peak rules do not match your scheduling windows
- Input, output, and cache quotas within the plan are metered separately and cannot be mixed
So you cannot compare only “plan prices”—you must also verify the metering rules of the plan. In particular, confirm:
- Whether the plan is metered by tokens or by requests
- Whether input and output share one quota pool
- Whether cache hits consume plan quota
- Whether different models use different quota coefficients
- Whether overage pricing matches standard pricing
- Whether the plan supports auto-renewal and usage alerts
5. Why “the Monthly Bill Can Differ by Half”: A Mixed-Workload Example
Suppose a workload generates the following monthly usage:
- Standard real-time requests: 5 million input tokens
- Real-time output: 1 million tokens
- Offline tasks: 5 million input tokens
- Offline output: 1 million tokens
If everything is billed at standard pricing with the high-performance general model:
Input cost = 10M tokens ÷ 1M × 20 CNY = 200 CNYOutput cost = 2M tokens ÷ 1M × 100 CNY = 200 CNYTotal cost = 400 CNY
If half of the offline tasks can use batch processing at 60% of standard price, the original offline cost is:
Offline input cost = 0.5 × 20 = 10 CNYOffline output cost = 0.1 × 100 = 10 CNYOffline list price = 20 CNYAfter batch pricing = 20 × 60% = 12 CNY
The real-time portion stays at 20 CNY, making the total:
Real-time cost: 20 CNYOffline cost: 12 CNYTotal: 32 CNY
The absolute amounts in this example are only illustrative—real costs scale with token volume. But it demonstrates a key point: when a significant share of calls can be moved to a discounted channel, the bill reduction can be far larger than what the pricing table alone suggests.
If the workload also combines subscription quotas, cache hits, and off-peak scheduling, the monthly bill can drop further. Conversely, if most requests run in real time during peak hours, even a platform offering plans may not yield noticeable savings.
6. Cache Billing: A Lower Price Does Not Mean Automatic Savings
LLM applications frequently send repeated system prompts, tool descriptions, knowledge base prefixes, or long document contexts. Some billing systems recognize repeated prefixes and bill them separately as cache hits.
You generally need to distinguish three situations:
- First-time cache write
- Repeated hits while the cache is still valid
- Re-writing the cache after expiration
Cache-hit pricing is usually lower than standard input pricing, but caches are not permanent. Common influencing factors include:
- Cache lifetime
- Whether the prefix is exactly identical
- Whether request ordering satisfies matching conditions
- Whether the model version has changed
- Whether the cache is shared across regions or instances
- Whether cache writes incur additional charges
Therefore, applications should place stable content at the front of the prompt and frequently changing content at the back. For example:
Stable parts:- System role instructions- Tool definitions- Fixed business rules- Long-lived document prefixesVariable parts:- User question- Current time- Retrieval results for this turn- Temporary context
At the same time, do not endlessly accumulate historical context just to chase cache hits. Excessively long contexts can lead to:
- Higher input costs
- Increased request latency
- Lower cache hit rates
- Reduced effective information density for the model
The goal of cache optimization is not “the more caching the better,” but ensuring that high-reuse, low-change content hits the cache consistently.
7. Free Quotas and Regional Pricing: The Most Overlooked Bill Variables
Some platforms offer free quotas for new models, new users, or specific services. Free quotas usually come with conditions:
- Only available to newly registered users
- Only cover designated models
- Only apply in specific regions
- Have an expiration period
- May only offset input or output
- Automatically switch to pay-as-you-go once exhausted
Therefore, free quotas should not be treated as a long-term cost advantage. For budgeting, it is recommended to calculate separately:
First-month cost = paid consumption - available free quotaSteady-state monthly cost = normal paid consumption
Regional differences matter as well. Cross-region calls may incur surcharges due to resource costs, network conditions, or regional pricing strategies. When comparing, at least normalize:
- The calling region
- The service deployment region
- The data storage region
- The user access region
- Whether cross-region transfer occurs
If your users are concentrated in a specific area, connecting to a nearby region generally helps reduce network latency. But if you choose an overseas or cross-region endpoint, you cannot look at API unit price alone—you also need to evaluate network transfer, compliance requirements, and data flow costs.
8. A Reusable Monthly Cost Formula
You can estimate monthly cost with the following general formula:
Monthly cost =Input cost+ Output cost+ Cache write cost+ Cache hit cost+ Batch processing cost+ Plan fixed fee+ Overage cost+ Cross-region related cost- Redeemable free quota
Where:
Input cost = standard input tokens × input unit priceOutput cost = output tokens × output unit priceCache hit cost = cached tokens × cache unit priceBatch cost = batch list price × batch discountOverage cost = usage beyond plan × overage unit price
To avoid distorted estimates, it is recommended to budget under three scenarios:
Conservative scenario
Assume:
- Low cache hit rate
- All requests billed at real-time pricing
- No free quota used
- Output tokens on the high side
- Some retries occur
Baseline scenario
Assume:
- Historical average token volumes
- Real cache hit rates
- All offline-eligible tasks use batch processing
- Plan quota is mostly consumed
Optimistic scenario
Assume:
- High cache hit rate
- More than half of tasks run during off-peak hours
- Low retry rate
- Free quota still valid
Measuring all three scenarios together prevents a budget that only holds under ideal conditions.
9. Selection Advice: Do Not Decide by “Who Has the Lowest Unit Price”
If four platforms publish identical standard pay-as-you-go prices, choose based on workload characteristics.
9.1 Mostly real-time calls
Focus on comparing:
- API stability
- Access latency
- Rate limiting policies
- Failover capability
- Logging and monitoring
- Authentication and access management
- Fit with your existing network environment
At this point, price differences may not be the primary factor.
9.2 Mostly offline tasks
Focus on:
- Whether batch processing is supported
- The batch discount rate
- Maximum job size
- Result retention period
- Failure retry mechanisms
- Whether job status queries are supported
Migrating tasks from the real-time channel to the batch channel is usually more effective than simply switching providers.
9.3 Stable usage with fixed models
You can evaluate subscriptions or resource bundles, but first collect at least one full billing cycle of real usage before deciding on plan size. Do not buy a large plan based solely on projected peak demand.
9.4 Already deployed on a specific cloud environment
If your business already uses that environment’s networking, logging, monitoring, identity, and security systems, connecting within the same environment often reduces migration costs. Even with identical token prices, it can lower operational complexity and cross-platform transfer costs.
10. Pre-Launch Cost Control Checklist
Before going live, confirm each of the following:
- Are input, output, and cache prices listed separately?
- Do cache writes and cache hits use different prices?
- Does batch processing support your target models?
- Do batch results meet your timeliness requirements?
- Does the plan cover the models you actually use?
- How is usage beyond the plan billed?
- What are the validity period and scope of free quotas?
- Do prices differ across regions?
- Will cross-region network charges apply?
- Can bills be split by model, project, and caller?
- Are usage caps and alerts available?
- Do failed retries generate duplicate token charges?
- Will pricing or metering rules change after model upgrades?
Ultimately, judging whether a plan is cost-effective cannot be based on “price per million tokens” alone. You should observe unit business costs, such as:
- Cost per report generated
- Cost per document page processed
- Cost per code review completed
- Cost per thousand customer service sessions
- Cost per million data records cleaned
Only by mapping token prices to actual business output can you accurately judge platform differences—and explain why seemingly identical unit prices can produce monthly bills that differ by a factor of two or more.
