LLM API Billing Explained: Why Monthly Bills Can Differ by 50% for the Same Usage
This article breaks down the four-layer structure of LLM API pricing—list prices, batch discounts, subscription/off-peak rules, and caching/hidden costs. It provides a billing estimation model and a platform selection framework to help teams optimize costs, explaining why identical usage can result in vastly different monthly bills depending on routing strategies rather than base unit prices.
A Counterintuitive Phenomenon
Many teams comparing LLM platforms start by looking at the “price per million tokens (input/output)” on each platform’s pricing page, concluding that if the list prices are the same, the choice doesn’t matter.
However, during actual settlement, the monthly bill for the same business usage can differ by 30% or even 50% across platforms. The reason is not mysterious: the on-demand unit price is just the starting point of the billing system. The real cost determinants are the billing rules layered on top of the unit price—batch API discounts, subscription packages, off-peak pricing, cache billing methods, free tiers, and regional pricing. This article breaks down these rules and provides a reusable method for bill estimation and platform selection.
The Four-Layer Structure of the Billing System
To accurately estimate your bill, it’s recommended to break down any platform’s billing into four layers:
1. List Price (On-Demand Unit Price)
This is the surface-level number, usually priced in three tiers: input, cache hit, and output. In the industry, list prices for models of the same generation are largely aligned across major cloud platforms, with an input/output ratio of about 1:5 (reasoning models may reach 1:10 or higher). Looking only at this layer, there is almost no difference between platforms, making price comparison meaningless.
2. Batch API Discounts
Almost all major platforms offer asynchronous batch APIs: you submit requests to a queue, and the platform processes them during idle compute periods, typically promising to return results within 24 hours. In exchange, the price is usually 50%–60% of the standard price.
Key consideration: How much of your business traffic does not require real-time responses? For tasks like offline data cleaning, corpus annotation, report summarization, and evaluation set scoring, which often account for a significant portion, batch APIs can directly cut costs in half without altering your business architecture—simply change synchronous calls to a submit/poll model:
# Pseudo-code: Sync call to batch calljob = client.batch.create(file="requests.jsonl")while not job.done():job = client.batch.retrieve(job.id) # Usually completes within 24hresults = download(job.output_file)
3. Subscription / Package / Off-Peak Rules
Some platforms offer a hybrid model of “prepaid packages + on-demand overage,” accompanied by off-peak discounts (e.g., lower unit prices during specific daily time slots). These rules are very friendly for stable and schedulable workloads: routing delayed calls to off-peak hours and combining them with package pricing can reduce overall costs by over 40% compared to pure on-demand. Conversely, if traffic is completely unpredictable, overestimating packages leads to waste.
4. Caching and Hidden Costs
This is the most easily overlooked layer:
- Automatic Prefix Caching: Most platforms automatically enable caching for repeated prefixes (identical system prompts, few-shot examples, long document contexts). The hit portion is billed at the hit price, usually only about 10% of the standard input price.
- Cache Write Fees: Some models/platforms bill cache writes separately, and caches have a TTL (e.g., 5 minutes or 1 hour); longer TTLs mean higher write unit prices. For high cache hit rate scenarios, calculate whether the “write fee × write count” is covered by the “hit savings.”
- Regional Pricing: Instances in specific cross-border regions may cost around 10% more. Choose the closest available region if there are no specific compliance requirements.
- Free Tiers: New models often have million-token-level free quotas during their initial launch, suitable for a quick test during the validation phase, but do not use this as a long-term cost baseline.
Bill Estimation Model
Combining the above rules, the monthly bill can be abstracted as:
Monthly Cost = Σ [ (Input Token × Input Unit Price + Output Token × Output Unit Price) × Routing Factor ]
Where the routing factor is allocated based on call type:
| Call Type | Routing Factor Reference |
|---|---|
| Real-time, on-demand | 1.0 |
| Real-time, package/subscription | 0.75–0.88 |
| Delayable, off-peak discount | 0.5–0.6 |
| Delayable, batch API | 0.5–0.6 |
| High cache hit portion | ~0.1 (plus write fee) |
Example: A business has a monthly consumption equivalent to 10,000 at the standard on-demand price. If 60% can be offline via batch (×0.6), 25% can be scheduled to off-peak (×0.55), and only 15% must be real-time on-demand, the monthly bill is approximately 10000 × (0.6×0.6 + 0.25×0.55 + 0.15×1.0) ≈ 5575, saving 44% directly. This is the mathematical essence of “same unit price, bill differs by half”: the price difference entirely comes from the routing structure, not the unit price itself.
Platform Selection Decision Framework
Based on the above analysis, here is a universal decision sequence:
- Check the model list first: Confirm whether the target platform offers the models and versions you need. Models not listed on the pricing page are out of the question.
- Evaluate existing business bindings: If your business already deeply uses a certain cloud’s gateway, monitoring, or private network, accessing the same vendor’s LLM service nearby results in shorter management and compliance chains, even if the on-demand price is the same as the original manufacturer.
- Route by call characteristics:
- High proportion of offline batch processing → Prioritize platforms with strong batch API discounts.
- Stable and schedulable usage → Evaluate combinations of subscription/package + off-peak rules.
- All real-time and unschedulable → On-demand prices are similar; choose the best integration experience, stability, and rate-limiting policies.
- Verify hidden rules last: Cache write and TTL billing, sunset schedules for older model versions, cross-region price differences, and free tier expiration dates. These details are often written in inconspicuous places. It’s recommended to screenshot them one by one as evidence for future reconciliation.
Conclusion
Comparing LLM API prices is essentially an “engineering of billing rules.” The unit price table is the least important page. The real cost-saving actions are: offlining delayable calls, scheduling flexible calls to off-peak hours, caching repeated contexts, and incorporating the model version lifecycle into planning. Solidify these four tasks, and even if the list price is identical, the monthly bill can show a twofold difference. It’s recommended that teams review token usage distribution monthly and dynamically adjust routing strategies—model iterations and platform promotion rhythms are fast, making cost optimization a continuous process rather than a one-time decision.
