Why LLM API Bills Can Differ by 2x at the Same Unit Price
Comparing LLM API pricing across platforms usually starts with a unit-price table, yet real bills often tell a different story. This article explains why identical models and identical call volumes can produce bills that differ by a factor of two, and shows how to compare platforms by their billing rules rather than headline rates. It covers aligning unit prices, prefix caching, batch discounts, subscription plus overage with off-peak scheduling, and how to enforce these rules in a gateway and scheduling layer, along with common mistakes and an actionable checklist.
1. The Problem: Same Unit Price, Diverging Bills
When teams compare LLM API pricing across platforms, the first instinct is usually to pull a unit-price table and pick the cheapest provider. Real bills often show the opposite result: with the same model and the same call volume, two months of spending can differ by a factor of two. The reason is not mysterious. The pay-as-you-go unit price is only one factor in the bill; what actually drives the gap is the set of billing rules and how calls are organized.
Breaking the bill apart, it can be approximated as:
Monthly bill ≈ Σ(input tokens × input price + output tokens × output price)× (1 - cache hit rate × cache discount)× (1 - batch discount)+ fixed subscription fee + pay-as-you-go overage
The unit price appears only in the first term. Cache hit rate, batch discount, subscription, and off-peak rules are all coefficients applied on top of the unit price. When those coefficients reach 0.5, the bill is naturally cut in half. So the right way to compare platforms is not to compare unit prices, but to compare the “rule sets.”
2. Step 1: Align Unit Prices and Confirm the Same Baseline
The mature LLM service market already shows clear price convergence. Take a general-purpose LLM as an example: the same model can have identical pay-as-you-go list prices across different cloud platforms—input at 20 per million tokens, cache hits at 2, and output at 100; the lightweight version at 13, 1.3, and 68; and a smaller code-oriented variant at 6.5, 1.3, and 27. Four platforms at the same price means the question “which provider is cheaper” has no answer on the pay-as-you-go dimension.
Three details need attention when aligning unit prices, because they often distort comparison tables:
- Whether the cache hit price is listed separately. Some platforms’ pricing pages show only input and output tiers; the cache hit price is missing and is actually charged at the input price, which significantly underestimates cost.
- Regional differences. Overseas regions are usually more expensive than domestic ones, with input and output possibly marked up by about 10%. Cross-border workloads must take prices for the region where they land.
- Free quotas and new-user policies. New models often come with a certain amount of free token quota at launch. This is a one-time promotion and must not be counted in a long-term cost model.
The conclusion is clear: only after unit prices are aligned does the real comparison work begin.
3. Step 2: Cache Billing, the Most Overlooked Multiplier
Prefix caching is one of the most effective cost-reduction mechanisms available today. The logic is that repeated prefixes in a request (system prompts, tool definitions, long documents, few-shot examples) do not need to be recomputed; once there is a hit, they are billed at the hit price. The default time-to-live is usually on the order of minutes, writing to the cache may be billed separately, and pricing may be tiered by duration.
There are three engineering implications:
- The prefix must be stable. Putting timestamps, random IDs, or user nicknames at the very front of the prompt will permanently break the cache.
- Prompts should be layered. Keep the stable layer first and the dynamic layer last so the hit rate stays high.
- Long-document scenarios benefit the most. For batch tasks where input far exceeds output and the prefix is highly repetitive, costs can drop by an order of magnitude after a hit.
An illustrative way to organize the prompt:
[Stable layer] Role definition + tool schema + output format constraints + domain knowledge[Semi-stable layer] Conversation summary[Dynamic layer] Current user input + timestamp
Note that the cache hit rate is a runtime metric. It must be continuously observed through monitoring and log statistics, not estimated and written into a budget sheet.
4. Step 3: Batch Processing and Subscriptions, the Two Real Dividing Lines
Once unit prices are leveled, the difference can only come from rules. Two common types of rules in the industry are as follows.
The first is the batch discount. Submitting non-real-time tasks to an asynchronous batch channel is billed at a certain percentage of the standard price (commonly 60%), at the cost of response time shifting from seconds to minutes or even hours. It suits scenarios such as log summarization, batch translation, offline labeling, data cleaning, and evaluation runs. The test is simple: does the task allow delayed delivery? If yes, use batch; if not, use real time.
The second is subscription plus overage. Some platforms offer package-style quotas that cover specified models and come with off-peak rules: calling during business low periods consumes quota more slowly or at a lower unit price. The value of a subscription is converting unpredictable pay-as-you-go spending into a budgetable fixed cost, with overage falling back to pay-as-you-go. For stable, model-locked real-time workloads, this combination is usually cheaper than pure pay-as-you-go, with savings of up to 10–20%; if a substantial share of calls can be scheduled into low periods, the savings can grow to nearly half.
The applicable boundaries of the two rule types can be expressed in pseudocode:
if delayed delivery is allowed:use the asynchronous batch channel # discounted standard priceelif model is fixed and call volume is predictable:use subscription quota + off-peak scheduling # fixed cost + pay-as-you-go overageelse:use pay-as-you-go # keep elasticity
5. Step 4: Apply the Rules in the Architecture
Comparison conclusions only matter once they land in the scheduling layer. Four actions are recommended:
- Build a unified gateway. Consolidate access to multiple platforms behind one internal abstraction layer, with model names, keys, and rate-limit policies configured centrally, so switching providers does not change business code.
- Tag and route. Tag each request with a task label (real-time/offline, cacheable or not, model tier) and let the gateway decide which billing channel it takes.
- Off-peak queue. Put deferrable tasks into a message queue and consume them in batches during low periods, shaving peaks while lowering unit cost.
- Cost observability. Attribute the bill along four dimensions—model, business line, cache hit rate, and batch share—and set budget alerts to avoid discovering anomalies only at month end.
Model selection also affects cost. When capability is sufficient, prefer a smaller variant, which significantly lowers input and output unit prices; also watch the retirement pace of older-generation models, since newly registered users may no longer be able to enable them, and the official guidance is usually to migrate to a newer general-purpose model. The architecture should retain the ability to swap models quickly.
6. Common Mistakes
- Comparing only unit prices and not rules, leading to a budget error of 2x.
- Treating free quota as a long-term discount, so the bill spikes after renewal.
- Assembling prompts carelessly so the cache never hits, while budgeting at the hit price.
- Sending everything through the real-time channel, paying standard price for offline tasks that could have been batched.
- Ignoring regional and compliance requirements, placing data in an unsuitable region to save a little cost.
7. Conclusion and Action Checklist
The right order for comparing platforms is: first align unit prices to confirm the baseline, then check the four rule categories—caching, batch, subscription, and off-peak—one by one, and finally hard-code the conclusions into the gateway and scheduling layer. The actionable checklist:
- Recompute the bill once with a consistent methodology, explicitly modeling cache hit rate and batch share.
- Inventory the task list, mark deferrable tasks, and migrate them to the batch channel.
- Evaluate subscription plus overage for locked real-time workloads and try off-peak scheduling.
- Build a cost dashboard by business line with budget alerts.
- Retain multi-platform access and model-swap capability to avoid being locked into a single rule set.
In a market where unit prices converge, cost competitiveness comes from engineering capability, not procurement tricks. Understand the rules clearly and organize traffic well, and spending half as much for the same volume is achievable.
