Why LLM API Bills Can Differ by 2x at the Same Token Price
Many teams compare LLM API costs using only the per-million-token price. Once several platforms publish identical list prices for the same model, that comparison stops working: with the same call volume and the same input/output ratio, monthly bills can still differ by nearly 2x. This article breaks the bill down into its full set of billing rules, shows how to normalize price tables into a comparable matrix, explains the three rule categories that actually drive the gap (batch discounts, subscriptions with off-peak scheduling, and caching plus free quotas), and provides a reusable estimation function for sensitivity analysis before you commit to a platform. It also covers a practical decision path, common mistakes, and a rollout checklist.
1. The Problem: Same Unit Price, 2x Different Bill
When teams evaluate LLM API costs, the first instinct is to compare the price per million tokens. But that dimension breaks down as soon as several platforms publish exactly the same list price for the same model: with identical call volume and identical input/output ratios, the monthly bill can still differ by nearly 2x. This shows that the per-token price is only one coefficient in the cost function. What really determines spending is the complete set of billing rules.
Abstracting the bill as a function:
monthly cost = Σ(input tokens × input price)+ Σ(output tokens × output price)+ Σ(cache hit tokens × hit price)+ Σ(cache write tokens × write price)+ batch discount adjustments+ subscription fees and overage charges- free quota deductions
As long as every platform uses the same values in the “unit price” terms, the difference must come from the remaining terms. This is the starting point for the entire analysis below.
2. Normalizing the Basis: Turning Price Tables into Comparable Data
The easiest mistake in cross-platform price comparison is inconsistent measurement. Fix four dimensions first: model version, region, billing unit, and whether cache and batch are priced separately. After normalizing everything to “per million tokens,” arrange the data into a matrix with models as rows and platforms as columns.
| Model tier | Platform A | Platform B | Platform C | Platform D |
|---|---|---|---|---|
| Flagship | 20 / 2 / 100 | 20 / 2 / 100 | 20 / not listed / 100 | 20 / 2 / 100 |
| Balanced | 13 / 1.3 / 68 | 13 / 1.3 / 68 | 13 / 1.3 / 68 | 13 / 1.3 / 68 |
| Lightweight | 6.5 / 1.3 / 27 | 6.5 / 1.3 / 27 | 6.5 / not listed / 27 | 6.5 / 1.3 / 27 |
The three columns are input, cache hit, and output. Once the matrix takes shape, the conclusion is immediate: all four platforms charge the same on-demand rates, so the comparison work should shift to the rules layer. Note that “not listed” does not mean free. It means the capability is not disclosed on the pricing page, and you must confirm it through the official documentation or a support ticket before integration, or your capacity planning will have gaps.
3. The Three Rule Categories That Actually Create the Gap
3.1 Batch Discounts
Batch processing fits offline, deferrable tasks whose results are not needed immediately, such as log summarization, bulk translation, offline labeling, and end-of-day report generation. Some platforms offer a fixed-percentage discount off the standard price for designated models without changing model capability. For workloads with a high share of offline traffic, this is often the biggest lever.
3.2 Subscriptions and Off-Peak Scheduling
The core of a subscription is “prepay to lower the unit price”: you buy a token quota package covering designated models, usage inside the quota is billed at the package price, and anything beyond it reverts to on-demand pricing. When actual usage is slightly above the package quota, the blended average price is lower than pure on-demand. If the platform also offers off-peak time rules, moving deferrable calls into low-traffic windows can dilute the cost further.
3.3 Caching and Free Quotas
Prefix caching pays off clearly for scenarios with a fixed system prompt, repeated Q&A over long documents, and multi-turn conversations that share the same prefix. Three things need attention: whether caching is enabled automatically, how long the default time-to-live is, and whether cache writes are billed separately. In addition, free quotas during a new model’s launch period are a one-time deduction and should not be counted as ongoing cost in long-term budgets.
4. Bill Modeling: Making the Rules Computable in Code
Do not reverse-engineer from the bill at month end. Build a static model before integration. Here is a reusable estimation function:
def estimate(monthly_calls, in_tok, out_tok,cache_hit_ratio=0.0, offline_ratio=0.0,batch_discount=0.6, plan_tokens=0, plan_price=0,over_price=None, offpeak_ratio=0.0, offpeak_discount=0.5,free_tokens=0):billable_in = max(0, in_tok - free_tokens)on_demand = (billable_in * 20 + out_tok * 100) / 1e6on_demand -= billable_in * cache_hit_ratio * 18 / 1e6bill = on_demand * (1 - offline_ratio) \+ on_demand * offline_ratio * batch_discountif plan_tokens:covered = min(plan_tokens, in_tok + out_tok)bill = plan_price + (bill - covered / 1e6 * 20) * 1.0return bill * (1 - offpeak_ratio * offpeak_discount)
The value of modeling lies in sensitivity analysis: hold the other variables fixed, sweep a single parameter, and watch for inflection points in the cost curve. In practice, the cache hit ratio and the offline share are the two most sensitive variables, and the subscription quota is the variable most often overestimated.
5. Decision Path
- Do not lock in a specific model version: for balanced-tier on-demand calls, all four platforms charge the same, so leave the choice to operational convenience.
- Offline-task-heavy: prefer platforms with batch discounts, since the discount percentage multiplies directly onto the bill.
- Locked into a flagship model with mostly real-time calls: compare “subscription plus on-demand overage” against pure on-demand, which typically saves 10% to 20%; if you can shift nearly half of the calls into overnight off-peak windows, the savings can approach 50%.
- Already running on a given cloud: connect to the LLM service on the same cloud. Egress traffic and compliance-path costs stay consistent with the incumbent provider, with no extra migration.
- Overseas regions involved: unit prices usually run higher and must be modeled separately; conclusions from domestic regions do not carry over.
6. Common Pitfalls
- Looking only at unit price while ignoring cache write fees; scenarios with long prefixes that change frequently end up more expensive.
- Treating free quotas as an ongoing discount, which distorts the budget.
- Buying too large a subscription quota, leaving unused tokens inside the package and pushing the average price above on-demand.
- Ignoring the model deprecation schedule; once an older version stops opening to new users, you are forced to migrate, and the repeated load testing during migration is also a cost.
- Failing to verify “not listed” items, so unexpected line items appear on the bill after launch.
7. Implementation Checklist
First, unify the measurement basis and produce the price matrix. Then sample real traffic to measure the input/output ratio and the cache hit ratio. Next, run the static model to produce monthly forecasts for three options (pure on-demand, batch, subscription hybrid). Finally, validate forecast error with a small-traffic canary, and switch fully only after the error converges. Build this process into cost review, and bill differences turn from a “month-end surprise” into something “known before launch.”
