LLM Price Cuts: How to Evaluate Cache Hit Rates and Workload Costs

    This article explains how to evaluate large language model price cuts by moving from simple unit-price comparisons to workload-based cost modeling. It covers how to split input and output billing, calculate cache-hit thresholds, assess package utilization, interpret long-context caching, and compare limited-time discounts with long-term price changes. The goal is to help teams estimate the cost of successful tasks rather than optimize only for the lowest token price.

    1. Move from Unit-Price Comparison to Workload Modeling

    When evaluating limited-time discounts and cache pricing changes for large language model APIs, developers often make the mistake of treating one input unit price as the overall cost of use.

    In practice, a single call may include three billable quantities:

    • Input that hits the cache;
    • Input that misses the cache;
    • Output generated by the model.

    If package quotas, quota consumption multipliers for different models, failed-request retries, and multi-turn tool calls are also involved, the final bill can differ significantly from the advertised unit price.

    Therefore, to evaluate whether a price cut is valuable, you need to answer three questions in order:

    1. Under the same request workload, what does each call actually cost?
    2. Under the same budget, how many effective tasks can be completed?
    3. After the discount ends, the context grows, or the cache expires, is the cost still controllable?

    This article uses a set of hypothetical billing parameters for an instructional calculation. All numbers are only for explaining the calculation method. They do not represent the current prices of any actual service and do not constitute a product comparison or purchasing recommendation.

    2. Establish a Consistent Basis: Break Down the Request First

    Assume a long-context intelligent assistant has the following usage characteristics:

    Item Assumed value
    Available budget CNY 40
    Input per call 51,000 tokens
    Output per call 5,100 tokens
    Total input and output per call 56,100 tokens
    Input cache hit rate 56%

    A token here is the basic unit that the model uses to process text. It cannot be directly equated with the number of Chinese characters or the number of characters. Different tokenization methods may measure the same text differently. Therefore, when comparing billing schemes, you should prioritize the actual usage records returned by each scheme.

    Let:

    • (I): number of input tokens per call;
    • (O): number of output tokens per call;
    • (h): input cache hit rate;
    • (P_h): price of cache-hit input;
    • (P_m): price of cache-miss input;
    • (P_o): output price.

    With prices uniformly expressed as “CNY per million tokens,” the base cost per call is:

    [
    C=\frac{IhP_h+I(1-h)P_m+OP_o}{10^6}
    ]

    This formula reveals an important fact: the cache hit rate directly affects only input cost and cannot directly reduce output cost.

    When output accounts for a relatively high share, even a large reduction in cache price may have a limited effect on the total bill.

    In addition, billing-related cache usually refers to input prefix or context reuse. It should not be confused with application-side “result caching” that directly returns a historical answer. The former may still involve model inference and output billing, while the latter may avoid a model call. Their benefit mechanisms are different.

    3. Understand Cache Discounts with a Reproducible Example

    1. Split Input Usage

    With a 56% cache hit rate:

    [
    I_h=51,000\times56\%=28,560
    ]

    [
    I_m=51,000\times44\%=22,440
    ]

    Therefore, one request contains:

    • Cache-hit input: 28,560 tokens;
    • Cache-miss input: 22,440 tokens;
    • Output: 5,100 tokens.

    Note that 56% is the hit proportion of input tokens, not “56% of requests hit the cache.” If request lengths differ, these two metrics can be very different.

    2. Plug in Hypothetical Billing Parameters

    Assume the billing standards are:

    • Cache-hit input: CNY 0.25 per million tokens;
    • Cache-miss input: CNY 3 per million tokens;
    • Output: CNY 6 per million tokens.

    Then:

    [
    C_h=\frac{28,560\times0.25}{10^6}=0.00714\text{ CNY}
    ]

    [
    C_m=\frac{22,440\times3}{10^6}=0.06732\text{ CNY}
    ]

    [
    C_o=\frac{5,100\times6}{10^6}=0.03060\text{ CNY}
    ]

    Total:

    [
    C=0.10506\text{ CNY}
    ]

    The theoretical number of calls covered by a CNY 40 budget is approximately:

    [
    N=\frac{40}{0.10506}\approx380.73
    ]

    If the budget is a strict upper limit and the request size is fixed, it can cover only 380 complete calls. A real system also needs to reserve room for output-length fluctuations, retries, and additional requests.

    It is not appropriate to directly call the “theoretical number of calls” the “number of tasks that can be completed,” because one intelligent-assistant task may require multiple model calls.

    3. Identify the Main Cost Drivers

    Under this set of parameters:

    • Cache-hit input accounts for about 6.8% of the cost;
    • Cache-miss input accounts for about 64.1%;
    • Output accounts for about 29.1%.

    Therefore, further reducing the cache-hit unit price is useful, but reducing the volume of cache-miss input often offers more room for optimization.

    This is also why you should not focus only on the most visible low-price item: the smallest billing component, even with a large price cut, may not significantly change total cost.

    4. What Cache Hit Rate Is Needed for a Cost Advantage?

    When discussing “at what cache ratio does it become more cost-effective,” you must clearly define the comparison baseline.

    Assume another unified-quota billing method, under the same input and output scale, has an equivalent per-call cost of CNY 0.0748. This is used only as a mathematical baseline and does not refer to any specific service.

    The cost of the pay-as-you-go method above can be simplified as:

    [
    C(h)=\frac{51,000[0.25h+3(1-h)]+5,100\times6}{10^6}
    ]

    That is:

    [
    C(h)=0.1836-0.14025h
    ]

    Set the two costs equal:

    [
    0.1836-0.14025h=0.0748
    ]

    This gives:

    [
    h\approx77.6\%
    ]

    Therefore, under these fixed assumptions, when the input cache hit rate reaches about 77.6%, the per-call costs of the two billing methods are equivalent.

    Input cache hit rate Theoretical cost per call
    0% CNY 0.18360
    56% CNY 0.10506
    80% CNY 0.07140
    100% CNY 0.04335

    This threshold is not a universal conclusion. If the input length, output length, equivalent unified-quota price, or cache unit price changes, the calculation must be redone.

    More generally, let the per-call cost of the comparison baseline be (C_b). Then the threshold hit rate is:

    [
    h^*=
    \frac{IP_m+OP_o-10^6C_b}
    {I(P_m-P_h)}
    ]

    This formula assumes that (I>0) and (P_m>P_h).

    • If (h^*>1), even a 100% hit rate cannot bring the cost below the baseline;
    • If (h^*<0), the cost is already advantageous without relying on cache;
    • If (0\leq h^*\leq1), you can use it to set a verifiable optimization target.

    5. A Low Package Price Does Not Mean a Low Actual Cost

    The cost of a unified-quota package looks easy to calculate, but quota consumption multipliers and utilization must be considered.

    Let:

    • Package price be (B);
    • Available quota be (Q);
    • Each token consume (k) quota units.

    If the input and output multipliers are the same, the theoretical per-call cost is:

    [
    C_{\text{plan}}=\frac{B}{Q}(I+O)k
    ]

    If the input and output multipliers differ, they should be measured separately. You can no longer simply multiply total tokens by one multiplier.

    More importantly, the theoretical unit price assumes that the entire quota is effectively used. If only part of the quota is consumed within the validity period, the actual unit cost will increase.

    Let effective utilization be (u). Then:

    [
    \text{Actual unit cost}=\frac{\text{Theoretical unit cost}}{u}
    ]

    For example, if a package has a low theoretical unit price but only half of the quota is ultimately used, the unit cost based on actual consumption is twice the theoretical value.

    Therefore:

    • For continuous, stable high-load tasks, packages are more likely to realize their theoretical price;
    • For intermittent calls or tasks with hard-to-predict demand, pay-as-you-go billing may make it easier to control idle spending;
    • For packages with concurrency, rate, or validity-period constraints, you should also check whether these limits match the actual workflow.

    These are contractual and billing conditions that must be confirmed before cost accounting. You cannot infer them solely from the total quota.

    6. Long Context Does Not Automatically Mean a High Cache Hit Rate

    Supporting a longer context only means that a request can contain more content. It does not mean that this content can be automatically reused across requests over the long term.

    Common input caching relies on a reusable prefix, but the specific cache granularity, retention time, isolation scope, and billing rules should be based on the actual service documentation. The application side cannot assume that “semantically similar” content will necessarily hit the cache.

    In intelligent-assistant scenarios, the following organization patterns usually help form a stable prefix:

    1. Place fixed system rules at the front;
    2. Arrange stable task instructions, tool descriptions, and common background together;
    3. Place frequently changing user input, real-time status, and execution results later;
    4. Avoid adding per-call changing times, random identifiers, or irrelevant dynamic fields to the fixed prefix.

    However, you should not mechanically retain all historical content just to improve the hit rate. Invalid context increases transmission, processing, and cost, and may also interfere with model judgment.

    A more reasonable optimization goal is:

    Reduce the information that must be processed while maintaining task quality, and improve the reuse efficiency of necessary information.

    For longer histories, you can evaluate hierarchical summaries, on-demand retrieval, and staged state archiving. However, summaries may lose details, and retrieval may miss key materials. You should validate these approaches on a real task set rather than assuming they will save money after being enabled by default.

    7. Limited-Time Discounts and Long-Term Price Changes Require Different Evaluation Methods

    A limited-time discount addresses costs within a specific time window, while a long-term price adjustment may affect application architecture and budget models. The two should not be conflated.

    Limited-Time Discounts: Focus on Affordability After the Price Returns to Normal

    It is advisable to calculate separately:

    • The budget during the discount period;
    • The budget after the discount ends;
    • The budget when the cache hit rate is low.

    If a business can operate only under a short-term discount, it needs to clarify the subsequent budget source, call limits, or degradation strategy. Avoid treating a temporary price as the long-term cost basis.

    Long-Term Adjustments: Focus on the Real Bill Structure

    After the cache unit price decreases, observe the following over a complete business cycle:

    • The proportion of cache-hit tokens;
    • Total cache-miss input;
    • Total output;
    • Number of calls per task;
    • Retry rate and success rate;
    • Actual spending.

    For the input cache hit rate, it is advisable to calculate it on a token-weighted basis:

    [
    h_{\text{weighted}}
    =
    \frac{\sum I_h}{\sum(I_h+I_m)}
    ]

    Do not simply average the hit rate of each request, because short requests may have a disproportionate effect on the result.

    8. Optimize for the Cost of Successful Tasks, Not the Lowest Token Price

    For an intelligent assistant that includes planning, retrieval, tool calls, and result checks, one user task often corresponds to multiple model requests.

    Therefore, a metric closer to business value is:

    [
    \text{Cost of successful task}=
    \frac{\text{Total relevant cost during the measurement period}}
    {\text{Number of successfully completed tasks during the measurement period}}
    ]

    If a low-unit-price option requires more retries, more interactions, or more manual corrections, its cost per successful task may not be lower. Conversely, you also cannot assume without testing that a higher-priced model will necessarily reduce the number of calls.

    For practical evaluation, you can use a fixed set of tasks, apply consistent success criteria, and compare:

    • Cost per successful task;
    • End-to-end latency;
    • Average number of calls;
    • Output accuracy and completeness;
    • Number of manual interventions.

    On this basis, consider tiered routing: assign steps with clear rules and lower risk to lower-cost processing paths, assign complex reasoning or high-risk judgments to stronger processing paths, and use explicit check conditions to decide whether to escalate.

    Conclusion

    The real value of LLM price cuts is not the discount number itself, but whether it changes the cost structure under a real workload.

    A reliable evaluation sequence is: first establish a consistent billing basis, then split input and output, calculate the cache threshold, check package utilization, and finally return to task success rates and the complete business bill.

    Only by putting price, hit rate, call chain, and task quality into the same model can you determine whether a discount is merely a short-term bill reduction or a cost change worth long-term engineering optimization.