Why LLM API Bills Can Differ by 2x at the Same Token Price
When per-token prices are identical across cloud platforms, LLM API bills can still diverge by nearly double. This article breaks down the real cost drivers beyond unit price: prompt caching, asynchronous batch discounts, subscription plans with off-peak scheduling, and regional pricing. It includes a cost formula, a neutral comparison of four platform types, a scenario-based decision checklist, and routing-layer pseudocode for cutting monthly spend by 30% to 50%.
1. The Problem: Same Unit Price, Different Bills
When evaluating LLM API costs, most teams start by comparing the price per million tokens. But that comparison loses its discriminating power once several cloud platforms list exactly the same rates: the same input, cache-hit, and output prices, and the same call volume should theoretically produce the same bill. In practice, monthly spend often differs by nearly 2x.
The reason is not the unit price, but the billing dimensions beyond it. Expanding the bill reveals that only two categories of rules actually drive the gap: asynchronous batch discounts and subscription plans with off-peak scheduling. The former changes the settlement basis per token; the latter changes which requests are covered by a plan and which are settled as overage. Understanding these two rules is more valuable than memorizing any price sheet.
One premise must be clear first: there is a several-fold price gap between model tiers. Input and output prices for a lightweight tier versus a flagship tier often differ by more than 3x, so the decision of “whether to lock in a flagship model” usually has a larger impact on the bill than any platform choice. Every optimization discussed here assumes the model tier has already been decided.
2. Cost Model: Writing the Bill as a Formula
Let the number of input tokens be $I$, the number of cache-hit tokens be $H$, and the number of output tokens be $O$. The pay-as-you-go cost of a single call can be abstracted as:
cost = (I - H) * p_in + H * p_cache + O * p_out
Here p_cache is typically significantly lower than p_in (commonly around one-tenth of the input price in the industry). This formula reveals a frequently overlooked fact: cache hits save the input cost of the “repeated prefix,” not the entire input cost. If a workload has a low prefix repetition rate, caching yields very limited benefit; conversely, scenarios with long system prompts, fixed tool definitions, and stable few-shot examples will see high hit rates.
Further, the monthly total bill can be written as:
total = Σ cost_i * (1 - batch_ratio_i * discount)- plan_coverage
batch_ratio is the share of requests that can be made asynchronous, discount is the batch discount rate, and plan_coverage is the portion covered by a subscription plan. This equation shows that the three levers for bill optimization are raising the hit rate, raising the asynchronous share, and raising plan coverage, not switching platforms.
3. Technical Meaning of the Four Billing Rules
Pay-as-you-go is the baseline. It is common across the industry for the same tier to carry the same rate on different platforms, because inference cost is determined by the model itself, leaving resellers little pricing room. This means “choosing a platform” produces almost no difference under pay-as-you-go.
The key to cache billing lies in lifecycle and write strategy. The mainstream approach automatically caches repeated prefixes with a short default time-to-live (commonly on the order of minutes); some platforms bill cache writes separately and tier them by TTL. The engineering implication: prefix stability directly determines the payoff, while frequently changing header content causes the cache to invalidate repeatedly and incur write overhead.
Batch processing trades latency for price. Requests enter an asynchronous queue and are scheduled within a longer time window, with the unit price discounted off the standard rate (commonly 50% to 60% in the industry). It suits tasks that do not require immediate responses, such as offline summarization, bulk labeling, log aggregation, and offline evaluation.
Subscriptions and off-peak scheduling trade predictability for price. A plan includes a certain token quota; usage within coverage is no longer settled per token, while overage returns to the pay-as-you-go rate; some offerings give extra discounts during low-traffic hours such as nighttime. Its value is separating “predictable steady-state traffic” out of the pay-as-you-go pool.
4. Side-by-Side Comparison of Four Platform Types (Neutral)
Placing the model provider’s own platform, a large cloud vendor’s model aggregation service, another cloud vendor’s model service platform, and a regional cloud platform’s model service in the same table yields the following structural conclusions:
| Dimension | First-party platform | Cloud aggregation service A | Cloud service platform B | Regional cloud platform |
|---|---|---|---|---|
| Pay-as-you-go rate | Baseline | Matches baseline | Matches baseline | Matches baseline |
| Cache-hit price | Baseline | Matches baseline | Often not listed separately | Matches baseline |
| Batch | Discount off standard | Not stated on page | Not stated | Not stated |
| Subscription/plan | Rare | Rare | Rare | Covers target models, includes off-peak rules |
| Free tier for new users | Rare | Rare | Common (million-token scale) | Rare |
| Overseas region | Baseline | ~5%–10% higher | ~5%–10% higher | Mostly higher |
Three points must be verified before selection. First, cache-hit prices are not explicitly listed by every vendor on the pricing page; if a workload depends heavily on prefix reuse, validate against the actual bill. Second, overseas regions are generally priced higher, and cross-border deployment erases any unit-price advantage. Third, the retirement pace of older-generation models affects long-term plans; vendors typically announce the end of access for new users months in advance along with migration guidance, so the architecture should preserve the ability to switch models.
5. Scenario-Based Decision Checklist
- Not locking in a flagship model: prioritize a tier with better cost-performance; all four are priced the same per token, giving the greatest freedom of choice.
- Mainly offline tasks: choose a platform that offers batch discounts and route all deferrable requests into the asynchronous queue.
- Steady-state real-time calls with a locked flagship model: a subscription plan plus pay-as-you-go overage usually beats pure pay-as-you-go; shifting part of the traffic to off-peak hours can widen the savings further.
- Already using other services from a given cloud: connect to the model service within the same cloud to avoid cross-network transfer and data-egress costs, at a price on par with the first-party platform.
6. Executable Implementation: Routing-Layer Pseudocode
# Three-channel routing: batch / in-plan realtime / pay-as-you-go overagedef route(req):if req.deadline is None: # no real-time requirementreturn batch_queue.submit(req) # discounted channelif plan.quota_left() >= req.estimate(): # enough plan quotareturn realtime.call(req, tier="plan")if offpeak.now() and req.can_delay():return realtime.call(req, tier="offpeak")return realtime.call(req, tier="payg") # pay-as-you-go fallback
This requires three pieces of infrastructure: unified token metering instrumentation (recording the three segments of input, hits, and output), an asynchronous task queue (to carry batch traffic), and monitoring and alerting (thresholds on daily spend and remaining plan quota). Prefix governance is equally important: placing stable content such as system prompts and tool definitions first and keeping it byte-for-byte unchanged is the most effective way to raise the hit rate.
7. Common Pitfalls
Looking only at unit price while ignoring caching and batch processing; treating deferrable tasks as real-time requests; failing to abstract the model-call interface in the architecture, forcing a reactive rewrite when an older-generation model is retired; budgeting at domestic rates after cross-border deployment; and doing capacity planning on average unit price rather than time-segmented usage.
8. Conclusion
Once unit prices are leveled, cost competitiveness shifts to billing rules and scheduling strategy. The reusable method: first fix the model tier, then choose the billing channel by three metrics—asynchronous ratio, prefix reuse rate, and peak-to-trough traffic ratio—and finally keep calibrating with unified metering and alerting. This method is independent of any specific vendor and can compress the monthly bill by 30% to 50% in most cases.
