LLM API Pricing Comparison: Why Bills Differ Even When Token Prices Match
Developers comparing LLM API costs often look only at the published price per million tokens, then assume providers charging the same input and output price will produce the same bill. In practice, bills can differ by 30% to 50% or more. The gap comes from the billing rules layered on top of the unit price. This article breaks down three-tier token billing (input, cached, and output tokens) and explains the main factors behind the difference: batch discounts, subscription plans versus pay-as-you-go, caching and TTL, and model version lifecycles. It also covers hidden regional and off-peak costs, offers a formula-based method for estimating monthly costs, and provides workload-based guidance for choosing a billing model.
1. The Starting Point: Same Unit Price, Different Bills
When evaluating LLM API costs, developers most often fall into one trap: treating the published price per million tokens as the only thing worth comparing. When several providers list the same input and output price for the same model, it feels natural to conclude that “it doesn’t matter which one you choose.” In reality, bills can differ by 30% to 50% or more.
The reason isn’t the unit price itself. It’s the full set of billing rules layered on top of it:
- whether batch jobs are discounted;
- whether subscription plans are available;
- how caching is billed;
- whether the model version is nearing the end of its lifecycle;
- whether the calling region carries a price premium;
- whether off-peak capacity can be used.
Understanding these rules matters more than memorizing any single price.
2. Three-Part Token Billing: Input, Cache Hits, and Output
Most mainstream LLM APIs use three-part token billing:
- Input tokens (prompt): the context sent to the model, usually billed at a relatively high rate;
- Cached tokens: when a request’s prefix repeats earlier requests, the cached portion is billed at a rate far below the standard input rate;
- Output tokens (completion): the model’s generated response, usually the most expensive, often several times the input rate.
The key takeaway is this: the real cost of a call = input tokens × input rate + cached tokens × cache-hit rate + output tokens × output rate.
If your workload contains many repeated system prompts or long document prefixes, enabling caching can save a meaningful amount on the cached portion. If your requests are highly varied and almost impossible to reuse, the savings from caching will be limited. That’s why you need to break down how your usage is actually composed before evaluating costs, rather than looking at a single unit price in isolation.
3. Four Rules That Actually Open Up the Gap
3.1 Batch Inference Discounts
For offline tasks that can tolerate latency, such as log batch processing, offline data labeling, batch summarization, and offline evaluation, many providers offer asynchronous batch endpoints with a clear discount over the real-time endpoints. These endpoints typically offer higher throughput and lower unit cost, making them the first lever for reducing your bill.
When designing your architecture, separate traffic into two categories as early as possible: what must be real-time and what can be deferred.
3.2 Subscription Plans vs. Pay-as-You-Go
Some providers offer subscription-style token packages: you purchase a set usage allowance upfront at a rate below the published price. These plans usually come with limits on allowance validity, the model coverage, and the time windows during which calls are allowed.
When usage is steady and predictable, a subscription often costs less than pure pay-as-you-go. When usage fluctuates heavily or peak demand is uncertain, pure pay-as-you-go is more flexible and avoids wasting allowance. Ultimately, the choice is a bet on how certain your usage is.
3.3 Caching and TTL
Caching isn’t “free once enabled.” There are three things to pay attention to:
- Activation: whether the cache takes effect automatically or requires you to explicitly declare which prefix is cacheable.
- Write cost: whether writing to the cache is billed separately.
- Time to live (TTL): how long the cache persists.
If the interval between reuses exceeds the TTL, the cache expires. The cost already paid to populate it can then no longer be spread across later calls. For workloads with high reuse rates and long reuse cycles, prioritize providers that support a longer TTL. Also place the parts of your prompts that stay unchanged as close to the front as possible.
3.4 Model Version Lifecycle
Models typically go through a lifecycle: launch → become the mainstream recommended option → restrict onboarding of new users → gradual retirement. Once an older version enters its retirement phase, new projects should go straight to the officially recommended version to avoid the technical debt of migrating later.
New models often come with free quotas for new users, which can be put to good use during early functional validation and load testing to reduce the cost of trial and error.
4. Region and Time of Day: Hidden Costs That Are Easy to Miss
- Regional premium: unit prices for regions outside your main deployment area are often higher than for nearby regions. If your workload has no strict latency requirements, choosing a nearby, lower-cost region can save a portion of your spend.
- Off-peak scheduling: some resources cost less during off-peak hours. Scheduling deferrable, non-real-time calls (such as overnight batch jobs or non-urgent report generation) to run during these periods can significantly reduce costs. This requires your scheduling layer to support task queuing and time-window control.
5. A Practical Way to Estimate Costs
I recommend that teams build a checklist like the one below to shift from “comparing unit prices” to “comparing total bills”:
Estimated monthly cost =(input tokens × input rate)+ (cached tokens × cache-hit rate)+ (output tokens × output rate)× discount factor (batch discount / subscription plan / off-peak scheduling)
In practice:
- Collect your actual usage from the last 30 days. Break it down into real-time vs. offline and cacheable vs. non-cacheable.
- Plug your numbers into the formula above for each of the three options: pure pay-as-you-go, batch discounts, and a subscription plan. Calculate the monthly bill for each.
- Compare the total cost of each provider and access method, not the unit price.
- For real-time calls, check whether the cache hit rate and TTL match your workload’s reuse cycle.
- Move deferrable tasks to off-peak hours and verify whether this brings costs down further.
6. Choosing a Billing Model by Workload
- Mostly standard real-time inference, with no need to pin a specific version: go with an access method that has transparent published pricing and pay-as-you-go billing with no hidden premiums.
- Mostly offline batch processing: prioritize providers that support batch discounts.
- Real-time calls with steady usage: evaluate a “subscription plan + pay-as-you-go overage” combination, which usually costs less than pure pay-as-you-go.
- Already running your workloads inside a particular cloud environment: connect to model services in the same environment when possible. This can save the extra cost of cross-cloud data transfer and migration.
7. Conclusion
Differences in LLM API costs may look like a contest over unit prices, but they’re really a contest over billing rules. What developers should do isn’t memorize one day’s price list. It’s understand how variables like three-part billing, batch discounts, subscription models, cache TTL, version lifecycles, and region and time of day interact.
With this approach in hand, you can quickly work out which provider is cheapest for the same usage, even across completely different platforms and products. That lets you keep your monthly bill within a reasonable range, instead of being misled by the numbers on a price sheet.
