Why LLM API Billing Differs Across Cloud Platforms Even at the Same Token Price
This article explains why identical per-token prices across cloud platforms can still produce nearly 2x different monthly bills. It breaks down the real cost formula into four factors—input/output pricing, discount coefficients, cache hit rates, and subscriptions/free quotas—and covers three mechanisms that drive the gap: batch discounts, prefix caching, and subscription/off-peak scheduling. It also provides a reusable decision path and practical caveats for controlling LLM inference costs.
1. The Phenomenon: Same Unit Price, Nearly Double the Bill
When you run the same LLM inference workload across multiple cloud platforms, you often get a counterintuitive result: the published pay-as-you-go unit prices are almost identical, yet the end-of-month bills can differ by nearly half. The reason is not “who is cheaper,” but that billing has more than one dimension. The unit price is only one factor; what really drives the gap is discount rules, caching strategy, and scheduling windows.
It is worth stressing that convergence of base pricing across platforms is the industry norm. As model capabilities become commoditized, the room for “unit price competition” shrinks, and competition shifts toward billing structure and engineering support. So the right approach to cost optimization is not horizontal price comparison, but a vertical breakdown of what makes up the bill.
2. What the Bill Is Really Made Of: Four Factors
The actual cost of a single call can be abstracted as:
Monthly bill ≈ Σ(input tokens × input price × discount coefficient)+ Σ(cached hit tokens × hit price)+ Σ(output tokens × output price × discount coefficient)+ fixed subscription fee - free quota deduction
Among the four factors, only the input and output prices are public and uniform. The discount coefficient, cache hit rate, subscription, and free quota depend on how you use the service, not where you use it.
3. Three Common Mechanisms That Actually Drive the Gap
3.1 Batch and Asynchronous Discounts
Most mainstream platforms offer an asynchronous batch channel: you package and submit requests, then retrieve results later, in exchange for a price significantly lower than real-time calls (commonly 50–60% of the standard rate). It suits latency-insensitive tasks such as offline summarization, bulk labeling, log aggregation, and evaluation runs. The trade-off is completion latency ranging from minutes to hours, and it requires reworking the call chain: writing requests to storage, submitting tasks, polling for results, and retrying failures.
3.2 Caching and Repeated Prefixes
When requests share a long, identical prefix (system prompts, knowledge base snippets, few-shot examples), the platform can automatically reuse intermediate computation results, and the hit portion is billed at a price far below the input price. There are three engineering points: first, put stable content up front and variable content at the end to increase prefix overlap; second, note that cache lifetime is limited (commonly minutes, with some platforms supporting longer periods and charging separately for writes); third, cache hits are not maximized by default and must be actively pursued through prompt structure.
3.3 Subscription Plans and Off-Peak Scheduling
Some platforms offer monthly or credit-based inference plans that cover designated models, with overage falling back to pay-as-you-go; there are also off-peak (nighttime) discounts or more generous quotas. For businesses with stable call volume and predictable peaks, a plan plus overage usually beats pure pay-as-you-go; for deferrable tasks, scheduling batch flows into off-peak windows can lower costs by another tier.
4. A Reusable Selection Decision Path
- Segment first: split traffic into real-time online, near-real-time, and offline categories, and measure the share and token distribution of each.
- Then calculate: plug each platform’s discount, caching, and plan rules into the cost formula above to compute the monthly cost for the three scenarios, instead of only comparing unit prices.
- Then decide:
- Not locked to a specific model version, mostly pay-as-you-go: platforms are at the same price, so prefer the one with the smoothest engineering support;
- High offline share: prefer platforms with batch discounts;
- Real-time calls with a locked version: prioritize evaluating a subscription-plus-overage combination, and try migrating deferrable traffic to off-peak windows;
- Business already running on a given cloud: connect nearby to save cross-cloud network and operations costs, with fees roughly the same as connecting directly to the model provider.
5. Three Easily Overlooked Details
- Cache writes may be billed separately, and a long lifetime is not always worthwhile; measure it against the actual hit rate.
- Older model versions have deprecation timelines, so the architecture should include a model abstraction layer to avoid hard-coding.
- Overseas region unit prices are usually higher than domestic ones, and cross-border calls must account for compliance and network costs.
6. Implementation Advice
Build a “model gateway + usage dashboard”: the gateway layer unifies authentication, routing, and fallback while hiding platform differences; the dashboard monitors four dimensions—scenario, business line, cache hit rate, and batch share—and reviews discount utilization once a week. The essence of cost governance is turning the uncontrollable unit-price problem into a controllable call-structure problem.
