Why LLM API Bills Can Differ by Nearly 2x at the Same Unit Price
This article explains why monthly LLM API bills can vary by almost double even when per-token prices are identical across providers. It breaks the bill into a practical cost model driven by unit price, billing rules, and scheduling, then details the four factors that create the gap: batch discounts, prompt caching write and hit costs, subscription and off-peak rules, and regional pricing with free-tier limits. It also provides a selection decision path and an actionable cost-optimization checklist.
1. The Problem: Same Unit Price, Different Bills
In real-world model service procurement, developers often run into a counterintuitive situation. After lining up the price lists for the same model across different access channels item by item, the pay-as-you-go unit prices (input, cache hit, output) are completely identical, yet the final monthly bill can differ by nearly 2x. This shows that the bill is not determined by unit price alone. Instead, it is determined jointly by three things: unit price × billing rules × scheduling strategy.
The bill becomes clearer when expressed as a function:
Monthly bill = Σ(tokens per category × unit price × discount factor) - free quota - subscription credits
The discount factors and credits come from four rules that are independent of unit price: batch discounts, cache write and hit billing, subscription plans and off-peak rules, and regional differences. Ignore these four, and any price comparison is just measuring transcription errors on the same price list.
2. Cost Model: Breaking the Bill into Five Computable Parts
To reproduce “same price, different bill,” start with a minimal usable model. Suppose a business has real-time request token volume of T_realtime within a month, offline batch volume of T_batch, a repeated-prefix ratio of r, and a subscription coverage cap of Q. Then:
C = (1-r)·T_realtime·P_in + r·T_realtime·P_cache+ T_batch·P_in·k_batch- min(Q, usage)·P_sub
k_batch is the batch discount factor (commonly 50%–60% in the industry), and P_cache is typically around 10% of the input price. This formula explains why moving half of the calls to a batch channel, or shifting half of the calls to off-peak hours, can both deliver close to 50% savings. What changes is k_batch and the time-window factor, not the unit price.
3. The Four Rules That Actually Open Up the Gap
The batch channel. Submitting non-real-time tasks (offline summarization, batch labeling, log aggregation, nightly regression) to an asynchronous batch API is typically billed at 50%–60% of the standard price, at the cost of latency ranging from minutes to hours. Whether it is usable depends on whether the business can accept eventual consistency.
The two sides of cache billing. Repeated prefixes can automatically hit the cache, with a hit price of about one-tenth of the input price. However, writing to the cache itself may be billed separately by duration (for example, a 5-minute or 1-hour TTL). If the prefix reuse rate is low, or the TTL does not match the actual call interval, caching becomes a net expense instead. The rule-of-thumb threshold is that the same prefix must be reused more than three times within the TTL window for caching to reliably pay off.
Subscription and off-peak rules. Some channels offer package plans that cover specific models, with usage beyond the plan switching to pay-as-you-go. Combined with off-peak discounts, scheduling deferrable tasks into business troughs (such as after 18:00) has been measured to save 12%–24%, and close to 48% with well-tuned scheduling.
Region and free quota. Cross-region calls (for example, to overseas regions) generally carry a unit price increase of about 10% and often lack a cache price. The million-token free quota during a new model’s launch period only offsets pay-as-you-go charges and does not stack with other discounts.
4. Selection Decision Path
Must you lock to a specific model version?├─ No → Choose a better value version in the same tier, pay-as-you-go, same price across channels, prefer the nearest access point└─ Yes → Can the task be deferred?├─ Deferrable → Batch channel (save 40%–50%)└─ Not deferrable → Subscription plan + off-peak scheduling (save 12%–24%, nearly 48% after rescheduling)
For a business already running on a given cloud, connecting to a channel in the same region nearby avoids cross-network transfer and compliance costs, with charges consistent with the original provider’s billing.
5. An Actionable Optimization Checklist
- Set up usage instrumentation by model, by channel, and by time window, and produce a three-dimensional
token × unit price × discountreport; - Explicitly split requests into real-time and offline queues, with offline defaulting to batch;
- Design and reuse stable prefixes for long prefixes such as system prompts and tool definitions, and monitor hit rate and write cost;
- Manage time-window routing with a configuration center, triggering deferrable tasks during trough windows;
- Review the price list and discount rules every quarter, and complete migration evaluation before a model version is retired.
6. Conclusion
Bill differences under the same pricing are, in essence, differences in the ability to arbitrage billing rules. Only by first clarifying the usage structure, and then discussing unit price, can costs be pushed down to the theoretical floor. If you use Baidu AI Cloud’s model services, the same advice applies: make “usage tiering + rule matching” the main line of cost governance, rather than simply comparing prices.
