Why LLM API Bills Can Differ by 2x at the Same Unit Price
Identical per-token pricing across cloud platforms does not guarantee identical monthly bills. This article breaks down LLM inference cost into a formula covering unit price, token mix, billing tier, and cache and region factors, then walks through four adjustable levers—prefix caching, batch processing, subscription and off-peak schedules, and model tiering—along with a routing example, a usage-profiling and vendor-selection process, common mistakes, and a reusable priority order for cutting monthly spend.
1. The Problem: Same Unit Price, Bills That Differ by 2x
In enterprise LLM deployments, a pattern keeps recurring: the list price for the same model is nearly identical across cloud platforms, yet at month-end close, two teams running the same workload with the same prompts can see bills that differ by close to 2x. That means per-token unit price is not the variable that determines cost. What actually drives the gap is the billing rules and the way calls are made.
Break the bill apart and cost is determined by four factors working together: unit price, token usage structure, billing tier (real-time / batch / subscription), and cache and region multipliers. The first two are decided by your own workload; the last two are decided by platform rules. Once competition has flattened unit prices, the optimization space shifts entirely to the latter two.
Worth stating up front: this article does not recommend or benchmark any specific vendor. It abstracts the phenomenon into a general engineering problem—how to reduce inference cost through architecture and scheduling design in a market where unit prices have converged.
2. Cost Model: Write the Bill as a Formula First
Let a request have input tokens $I$, output tokens $O$, cache hit rate $h$, input unit price $p_i$, cache-hit unit price $p_c$, and output unit price $p_o$. The cost of a single request is:
Cost = I * (h * p_c + (1 - h) * p_i) + O * p_o
The monthly bill is the sum over all requests, multiplied by the tier multiplier $\alpha$ and the region multiplier $\beta$:
MonthBill = Σ Cost * α * β
Here $\alpha$ is 1 for real-time calls, typically below 1 for the batch tier (commonly around 40% off in the industry), while the subscription tier works as “pay a fixed fee up front for an allowance, with overage falling back to pay-as-you-go.” $\beta$ is typically 1 for domestic regions and commonly 5%–10% higher for overseas regions.
This formula reveals a counterintuitive conclusion: output tokens are usually the main cost driver. Take the common pricing structure where the input-to-output unit price ratio is roughly 1:5. If a request produces 800 output tokens from 2,000 input tokens, the output side contributes about twice the amount of the input side. So the payoff from “compressing the prompt” is often lower than the payoff from “compressing output length.”
3. Four Adjustable Levers
3.1 Caching: The Most Easily Overlooked Discount
Mainstream platforms have made prefix caching a default capability: repeated prefixes are matched automatically, cache entries have a short lifetime (commonly on the order of minutes), writing to the cache may be billed separately, and hits are settled at the cache-hit price. The engineering implication is to put the system prompt, tool definitions, and few-shot examples at the very front and keep them byte-for-byte stable, while pushing volatile content such as timestamps and random IDs to the back.
[Stable prefix: system instructions + tool schema + fixed examples] ← aim for a hit[Semi-stable section: conversation summary][Volatile section: user input, timestamps, request ID] ← does not break the prefix
Raising the hit rate from 0 to 0.6, with the cache price at roughly one tenth of the input price, cuts input-side cost by about 50%.
3.2 Batch Processing: A Natural Discount for Offline Work
Convert non-real-time tasks (offline summarization, bulk labeling, log classification, evaluation runs) into asynchronous batch jobs, which typically buys about a 40% discount at the cost of completion latency ranging from minutes to hours. The test is simple: is a user waiting on this result?
3.3 Subscription and Off-Peak: Move Load to Cheaper Hours
Some platforms offer subscription packages that cover specified models and come with off-peak rules (consumption is cheaper at night or during low-traffic periods). This works best for stable, long-running real-time workloads: use a fixed monthly fee to cover baseline load, with overage falling back to pay-as-you-go.
3.4 Model Tiering: Not Every Request Needs the Flagship
Route requests by difficulty: simple classification, extraction, and rewriting go to a lightweight model; complex reasoning goes to the flagship model. The unit price of a lightweight model is typically only a third of the flagship’s, or lower.
4. Scheduling Implementation Sketch
def route(req):if req.kind == "batch":return {"tier": "batch", "alpha": 0.6}if req.difficulty == "low":return {"model": "light", "tier": "realtime"}if is_offpeak(now()) and req.deadline_s > 3600:return {"tier": "offpeak_subscription"}return {"model": "flagship", "tier": "realtime"}
Pair this with circuit breaking and graceful degradation: when a cache miss occurs and the output budget is exceeded, automatically switch to a shorter output template so that long-tail requests do not pull up the average.
5. Usage Profiling and Selection Process
- Sample one week of real traffic; measure the input/output token distribution, cache hit rate, and peak-to-trough ratio.
- Calculate the ratio of real-time baseline load to deferrable load.
- Plug each platform’s tier multipliers into the formula above and compute the monthly cost of four combinations (pure pay-as-you-go, pay-as-you-go + batch, subscription + overage, tiered routing).
- Pick the cheapest combination that meets the latency SLA, and keep a quarterly recalculation mechanism.
6. Common Mistakes
- Looking only at unit price and ignoring the tier: when unit prices match, the tier difference is the only variable.
- Overlooking the overseas region multiplier: cross-border deployment brings a hidden markup.
- Changing the system prompt frequently: this directly breaks the cache.
- Unbounded output: output tokens are the main cost item.
- Inertia with older models: older model versions often have a deprecation timeline, so plan the migration to a newer general-purpose model ahead of time.
7. Conclusion
Unit-price convergence means cost engineering shifts from price comparison to scheduling. The reusable priority order is: first do model tiering and output compression, then prefix-cache hygiene, then move offline traffic into batch processing, and finally cover the stable baseline with subscription plus off-peak rules. Stacking all four steps makes a 30%–50% reduction in the monthly bill an achievable target for a typical workload shape; if the workload is already served from a nearby region and half the load can be shifted later in the day, the savings can go further.
