LLM Cache Billing and Five Reasoning Levels: A Cost-Quality Selection Guide

    This article explains how cache-hit rate and five reasoning levels affect LLM cost and quality. It provides a practical cost model, prompt-structuring guidance for agent workloads, routing criteria for reasoning tiers, example code for estimating cache savings, and monitoring metrics for keeping cost and quality aligned.

    As LLM applications move into the agent stage, the cost structure is shifting from linear growth based on total input and output volume to marginal cost determined by cache-hit rate. A recent class of model services keeps base input and output unit prices unchanged while significantly lowering the cache-read price and introducing five reasoning levels, from lowest to highest, with no “disable reasoning” option. For developers, the real issue is not a one-off price-cut announcement, but how to put cache-hit rate, reasoning tier, and task value into a single cost-quality model.

    1. Billing structure adjustment: cache reads become a cost lever

    First, clarify a common misunderstanding: unchanged base unit prices do not mean unchanged overall cost. The relative changes reported in public materials are as follows: regular input and output unit prices remain unchanged, while the cache-read price drops by about three quarters. Under a typical workload, total cost falls by about one quarter; agent workloads, which repeatedly read the same batch of context, can save up to about 45%. This shows that the core of the price cut is not that “all tokens are cheaper,” but that “previously processed input is cheaper when read again.”

    A simplified cost model can describe this:

    [
    C = n{in}[(1-h)p{in} + h p{cache}] + n{out}p_{out}
    ]

    Here, (h) is the cache-hit rate, (p{in}) is the regular input unit price, (p{cache}) is the cache-read unit price, (n{in}) is the number of input tokens, (n{out}) is the number of output tokens, and (p{out}) is the output unit price. The cache-read price cut applies only to the (h n{in}) term; missed input and output are still billed at the original prices. Therefore, the higher the hit rate and the larger the input share, the more obvious the savings. Conversely, if the task has long outputs or the cache frequently becomes invalid, the overall reduction will be diluted.

    From an engineering perspective, focus on “cost per task” rather than “price per token.” For example, an agent task may go through multiple rounds of tool calls, each carrying system instructions, tool definitions, codebase summaries, and historical traces. If these prefixes are stable, the cache-hit rate will be high, and marginal cost will mainly fall on new tool results and model output. If each round rearranges prompts, inserts random IDs, or dynamically rewrites tool schemas, the cache will continually miss, and the price-cut benefit will not be realized.

    2. Why agent workloads are especially sensitive to caching

    A typical characteristic of agent workloads is that “the same batch of context is read repeatedly.” System prompts, tool descriptions, codebase indexes, long documents, and task constraints often remain unchanged across multiple rounds of calls, while what changes is the user’s new instruction, tool returns, and a small amount of intermediate results. The cache-hit rate is therefore naturally high. To turn this natural advantage into a real cost advantage, prompt structure should follow the principle of “stable prefix, variable suffix”:

    1. Place system instructions, role constraints, tool definitions, and output formats at the front, and keep them byte-for-byte stable;
    2. Version large context blocks such as codebase indexes, document summaries, and historical decision records to avoid meaningless reordering;
    3. Place user questions, tool returns, and temporary variables at the back to reduce disturbance to the prefix;
    4. Avoid inserting timestamps, random numbers, session IDs, or other high-frequency changing content into system prompts;
    5. For long documents, use layered caching with a “summary layer + original-text layer”: hit the summary first, then read the original text as needed.

    Caching does not take effect automatically. Even one extra space in the prefix or a single change in order may cause a cache miss. Therefore, cache friendliness should be part of prompt engineering and included in code review, rather than being patched after launch.

    3. How to choose among five reasoning levels: higher is not always better

    The five reasoning levels are essentially a Pareto slider among cost, latency, and quality. The lowest tier is not “reasoning off”; it retains a minimal reasoning budget. The highest tier is suitable for complex tasks with high value and high failure cost. When choosing, first establish task tiers, then use evaluation data to decide routing, rather than defaulting to the highest setting.

    Tier Suitable tasks Main benefit Main risk
    Lowest Classification, extraction, format conversion, simple summarization Low cost, low latency Missed judgments under complex ambiguity
    Lower Routine Q&A, short code edits, structured cleaning Balanced cost and quality Multi-step tasks may fail midway
    Medium Multi-round tool calls, medium-complexity analysis, code review Good stability Cost starts to rise
    Higher Long-chain planning, complex statistical inference, cross-file edits Higher success rate on complex tasks Increased latency and output cost
    Highest High-value offline tasks, scientific computing, critical decision support High quality ceiling High cost; unsuitable for all online traffic

    The recommended selection process is: first construct a task set covering typical and boundary scenarios; measure quality, P95 latency, and cost per task for each tier; define quality thresholds such as test pass rate, manual review pass rate, and tool-call success rate; then use a “lowest viable tier + escalate on failure” routing strategy. High-value offline tasks can directly use higher tiers, while large batches of low-risk tasks should prioritize lower tiers and use rule-based validation as a fallback. Higher tiers usually bring more internal reasoning tokens and longer outputs; specific billing and latency behavior should still be based on actual service terms and stress testing.

    4. Estimating cache savings with code

    The following illustrative function compares input cost before and after a cache price change. The parameters are for demonstration only and do not represent pricing for any specific service.

    1. def input_cost(n_in, hit_rate, p_in, p_cache):
    2. return n_in * ((1 - hit_rate) * p_in + hit_rate * p_cache)
    3. def input_saving(n_in, hit_rate, p_in, old_cache, new_cache):
    4. old = input_cost(n_in, hit_rate, p_in, old_cache)
    5. new = input_cost(n_in, hit_rate, p_in, new_cache)
    6. return (old - new) / old
    7. p_in = 1.0
    8. old_cache = 0.10
    9. new_cache = 0.025
    10. for h in (0.5, 0.8, 0.95):
    11. print(h, round(input_saving(10000, h, p_in, old_cache, new_cache) * 100, 1))

    Under the illustrative parameters, the higher the hit rate, the closer the input cost savings are to the cache price reduction; when the hit rate is low, the savings are diluted by missed input. Actual total cost also includes output cost, so output token count, retry rate, and failure rerun cost should all be included in monitoring. At minimum, track: cache-hit rate, input/output tokens per task, cost per task, P95 latency, task success rate, retry rate, and escalation-tier ratio. Only when these metrics improve together does the price cut truly translate into business value.

    5. Break down benchmark scores

    Terminal agent benchmarks for scientific research typically ask a model to complete real research workflows in an isolated terminal, such as data analysis, statistical inference, simulation setup, and theorem proving, and score against hidden tests with no partial credit. The value of such benchmarks is that they are close to real tool-use environments, but the total score cannot directly answer “which tier should I choose.” A score of just over 50% may come from tool-call errors, statistical assumption bias, simulation non-convergence, or failed proof strategy. Before launch, failure modes should be broken down to assess separately whether the lower tiers can complete deterministic steps, whether the medium tier can stably perform multi-step calls, and whether higher tiers improve success rates only at critical nodes.

    6. Lifecycle and migration risks

    Service versions, knowledge cutoffs, and retirement windows should all be part of the architecture design. It is advisable to keep a model routing layer, prompt version management, and cache-key version management so that tier adjustments and version migrations do not affect business logic. When integrating multiple platforms, also verify whether cache billing, invalidation rules, and output limits are consistent, to avoid “the same prompt costing different amounts in different environments.” The cache-read price cut is an important benefit, but it is not a permanent constant; enterprises should regularly regression-test their cost model with real workloads and turn cache-friendly prompts, five-tier routing, and benchmark evaluation into a continuous optimization mechanism.