How to Evaluate LLM API Costs with Limited-Time Discounts and Cache Price Cuts
This article presents a practical framework for evaluating large language model API costs when providers combine limited-time discounts with long-term cache pricing reductions. It explains how to normalize different pricing units, breaks down per-request cost into cached input, uncached input, and output components, and walks through a worked example comparing five plans under a fixed budget. It also shows how to find the break-even cache hit rate, why output share is a second key threshold, and how to plan capacity around discounts that may expire. Readers will learn to replace per-token price intuition with verifiable cost calculations.
1. Why Discounts and Cache Price Cuts Require a New Calculation
LLM inference pricing changes usually come in two forms: a limited-time discount on higher-tier models, and a long-term reduction in the price charged for cached input tokens. The first affects short-term cash flow; the second changes the long-term unit cost structure. Once the two are combined, existing cost intuitions often break down, so the measurement model has to be rebuilt.
Many teams only look at the “price per million tokens” and overlook two things: on the input side there are separate rates for cache hits and cache misses, and the output rate is typically several times the input rate. As a result, the cache hit rate becomes the decisive variable in long-input, short-output workloads, while the output rate is the main cost driver in short-input, long-output workloads.
2. Unify the Billing Basis First
Before comparing options, convert every price to the same unit. A common approach is to convert plan quotas, points, or Credits into an equivalent amount per million tokens, then express everything in a single currency.
Illustrative conversion logic:
def normalize(plan_price, plan_credits, credits_per_token):# Return the equivalent price per million tokenstokens = plan_credits / credits_per_tokenreturn plan_price / tokens * 1_000_000
Pay special attention to weight differences. Some plans bill standard models at 1 unit per token and higher-tier models at 2 units per token. Without accounting for the weight, comparing raw “quota totals” overstates the usable volume of higher-tier models by roughly half.
3. Per-Request Cost Breakdown
Let the input size be I, the cache hit rate be h, and the output size be O. The cost of a single request is:
Cost = I*h*P_hit + I*(1-h)*P_miss + O*P_out
Here P_hit, P_miss, and P_out are the per-million-token prices for cached input, uncached input, and output. The formula shows three things:
- Input cost is a weighted sum of hits and misses; every 10-point gain in hit rate saves mainly the price gap between the missed and hit portions.
- Output cost does not change with the hit rate, so long-output workloads are insensitive to cache optimization.
- When
P_hitis cut substantially, high-hit-rate workloads end up significantly cheaper than an estimate based on an average unit price would suggest.
4. Worked Example: Usable Volume on a 40-Yuan Budget
Assume a budget of 40 yuan, 51,000 input tokens and 5,100 output tokens per request, and a 56% cache hit rate — that is, 28,560 hit tokens and 22,440 missed tokens.
- Plan A (standard tier, 1 token = 1 quota unit, 40 yuan buys about 60 million units): about 0.0374 yuan per request, roughly 1,070 requests, about 60 million tokens in total.
- Plan B (0.2 for cache hits, 1 for misses, 2 for output, per million tokens): about 0.0384 yuan per request, roughly 1,043 requests, about 58.51 million tokens in total.
- Plan C (higher tier, 1 token = 2 quota units): about 0.0748 yuan per request, roughly 535 requests, about 30 million tokens in total.
- Plan D (higher-tier model at a limited-time discount: 0.25 for hits, 3 for misses, 6 for output, per million tokens): about 0.1051 yuan per request, roughly 381 requests, about 21.36 million tokens in total.
- Plan E (the same higher-tier model at list price: 1 for hits, 12 for misses, 24 for output, per million tokens): about 4 times the per-request cost of Plan D, with both request count and total volume dropping to roughly a quarter.
Three conclusions follow. The discount does move the higher-tier model from “not viable” back into “worth considering.” At a 56% hit rate, the standard-tier plan and the cache-price-cut plan cost about the same. If the hit rate rises to around 80%, the cache-price-cut plan starts to pull ahead. And for heavy usage that requires a larger quota plan, the standard tier of a high-quota plan is cheaper measured by per-token price.
5. Crossover Analysis: Hit Rate and Output Share Are the Two Dividing Lines
Differentiating the cost function with respect to the hit rate yields the critical hit rate h* at which two plans cost the same. In practice there is no need to solve it by hand — just scan the range:
def cost(h, I, O, p_hit, p_miss, p_out):return (I*h*p_hit + I*(1-h)*p_miss + O*p_out) / 1e6for h in [i/100 for i in range(0, 101, 5)]:print(h, cost(h, 51000, 5100, 0.2, 1, 2),cost(h, 51000, 5100, 0.25, 3, 6))
The second dividing line comes from output share. As output tokens take up a larger share of the total, the plan with the higher output rate loses its advantage quickly; at that point, prefer the plan with cheaper output pricing rather than continuing to optimize the cache.
6. The Long-Term View on Limited-Time Discounts
The key question for a limited-time discount is whether the plan is still acceptable once the discount ends. Run a stress calculation at list price: if the number of usable requests at list price falls below the business minimum, the discount period should not be used as the basis for steady-state capacity planning. Long-term cache price cuts work the opposite way — they change the steady-state cost, so it is worth adjusting cache strategy and context organization accordingly.
7. Practical Recommendations
- Build an internal pricing table that converts every option into an equivalent price per million tokens and flags weight differences.
- Sample real traffic to measure the hit rate and the input/output ratio, replacing guessed assumptions.
- Stabilize repeated prefixes in long contexts to reduce cache invalidation caused by prefix changes.
- Set budget alerts and usage monitoring, and plan capacity by number of requests rather than by spend.
- Recompute the crossover points every quarter, and adjust model selection and plan tier whenever the price structure changes.
With these methods in hand, any combination of “limited-time discount plus cache price cut” can be turned into a verifiable cost conclusion in a few minutes, instead of relying on per-unit-price intuition.
