LLM Prompt Caching: How to Calculate Savings After a Price Cut

    An 80% cut in cached input pricing does not translate to an 80% cut in your LLM bill. This guide explains how to estimate savings from billed usage, identify workloads that benefit from prompt caching, and structure and test requests without compromising response quality, security, or compliance.

    1. What a Cached Input Price Cut Actually Changes

    In the pricing change considered here, a cloud provider scheduled the cache-hit input rate for one model in designated regions to drop to 20% of its previous rate, effective at midnight on November 23, 2026. All other rates remain unchanged.

    The key distinction is that cached input becomes 80% cheaper, not the entire model call. Actual savings depend on how much input qualifies for the cached rate and how much of the original bill that input represents.

    • Only input billed as a cache hit gets the lower rate. New user questions, freshly retrieved material, and other uncached content do not automatically qualify.
    • Output pricing stays the same. If a workload spends most of its budget generating long reports or other substantial outputs, the impact on the total bill may be modest.
    • The change applies only within the stated scope. Do not assume the same rate applies to other regions, models, or ways of accessing the service. Check the official pricing terms and verify the rate against actual billing records.

    Start by breaking down the bill rather than treating the advertised rate cut as a savings estimate.

    2. What Prompt Caching Reuses—and What It Doesn’t

    When an LLM receives a request, it processes the input sequence. Services that support prompt caching can reuse the computational state from an earlier request for repeated input that meets their matching rules. They are not retrieving and returning an old answer: the model can still reason about the current question and generate a new response.

    An enterprise question-answering request, for example, might include:

    • Fixed role instructions and response rules
    • Stable definitions of business terms
    • Reference material for the current request
    • The user’s latest question

    If the first two sections are long and stay the same across requests, they may form a reusable prefix. The reference material and question change more often, so they may not see the same benefit.

    Cache behavior is provider-specific. Some services manage caching automatically, while others require callers to structure requests according to documented rules. Check the minimum cacheable length, matching rules, cache lifetime, and isolation scope rather than assuming that a general explanation of prompt caching describes a particular service.

    3. How to Calculate the Savings

    For a single call or a reporting period, split the bill into three components:

    Total cost = uncached input cost + cached input cost + output cost

    Let:

    • I be total billed input units.
    • H be input units billed at the cache-hit rate.
    • O be billed output units.
    • Pu be the uncached input rate.
    • Pc be the original cached input rate.
    • Po be the output rate.

    Express all rates on the same per-unit basis. The original cost is:

    C_old = (I − H) × Pu + H × Pc + O × Po

    If the cached input rate falls to 20% of its original value and nothing else changes:

    C_new = (I − H) × Pu + H × (0.2 × Pc) + O × Po

    The savings are:

    Savings = 0.8 × H × Pc

    Fractional reduction in total cost = Savings ÷ C_old

    With request volume, input and output lengths, and cache usage held constant, the total bill falls by 80% of whatever share cached input represented on the original bill.

    Suppose, for illustration, that a workload costs 100 units per month: 30 for cached input and 70 for everything else. After the rate cut, the cached portion costs 6 units and the total falls to 76. That is a 24% reduction, not 80%.

    These figures are illustrative, not a service quote. An actual estimate should account for the effective date, eligible regions, discounts, and any other billing items.

    4. Which Workloads Benefit Most?

    Question answering with long, stable instructions

    Enterprise Q&A systems often send the same response guidelines, glossary, access constraints, and output format with every request. When these sections are substantial and rarely change, a stable prefix is more likely to be worth reusing.

    If every question needs a different set of documents or the system instructions change frequently, a smaller share of input may hit the cache. In that case, examining how requests are assembled is more useful than focusing on the rate alone.

    Batch processing with a shared template

    Text classification, information extraction, and content moderation often apply the same rules to many different inputs. Separating the shared rules from the material being processed helps prevent accidental changes to the fixed portion of the template.

    Identical templates do not guarantee cache hits. Request spacing, cache lifetime, and the service’s matching rules still matter.

    Multi-turn conversations and long-context applications

    Successive turns often carry forward earlier messages, creating repeated input. But as a conversation grows, the extra context can increase costs and hurt response quality.

    Caching is not a reason to keep all conversation history. Irrelevant messages, outdated information, and conflicting instructions can make answers worse. Trimming or summarizing history and selecting only relevant reference material remain important ways to control long-context costs.

    5. Structure Requests So Stable Content Stays Stable

    The goal is not to send more input. It is to keep necessary repeated content from changing unintentionally as requests are assembled. A common logical order is:

    Stable task rules → stable reference instructions → current task material → user question

    This is an organizational pattern, not a required API format. Follow the service’s rules for message roles, request structure, and security.

    Keep shared templates consistent

    Whitespace, field order, punctuation, dates, and version labels can affect matching, depending on the service. Manage shared templates centrally so different components do not assemble slightly different versions of the same prompt.

    Version templates when they change, but avoid placing per-request identifiers or timestamps in the shared prefix. If dynamic values are necessary, position them in accordance with the service’s rules so they do not unnecessarily disrupt the stable portion.

    Separate dynamic material from trusted instructions

    Retrieved documents and user input change frequently and can contain misleading instructions. Keep this material distinct from trusted system rules. Do not promote untrusted content to a higher-priority instruction simply to improve cache reuse. Correctness and security take precedence over savings.

    Remove unnecessary input before optimizing for hits

    Cached input can still incur charges, and the first request may be billed at the uncached rate. Adding irrelevant background just to create a longer reusable prefix can make the workload more expensive. Remove unneeded content first, standardize the structure of what remains, and then measure the benefit.

    6. Measure Savings with Usage Data and Controlled Tests

    Counting requests with cache hits is not enough. One request may reuse only a small fraction of its input, while another may reuse a long prefix. Where the service exposes the relevant data, track:

    • Total billed input units
    • Input units billed at the cache-hit rate
    • Uncached input units
    • Billed output units
    • Average cost per successful task
    • Response latency, failure rate, and task quality metrics

    Calculate the input cache-hit share as:

    Input cache-hit share = cached input units ÷ total input units

    This is different from the percentage of requests with at least one cache hit. If the service does not report cache usage, do not infer a hit from a faster response alone. Network conditions, service load, and output length can all affect latency.

    Test the original and revised request structures on representative workloads. Keep task content, output requirements, and other major conditions as consistent as possible, then compare cost, quality, and performance. Track the savings from the price cut separately from the savings from request changes so you can tell which measure made a difference.

    7. Account for Security, Region, and Cache Lifetime

    Caching deserves particular scrutiny when requests contain personal information, internal documents, or sensitive business data.

    • Verify cache isolation and lifetime. A shared template does not mean cache entries can safely be shared across users or tenants. Do not assume how entries expire, persist, or are deleted if the service does not document that behavior.
    • Minimize and redact data before sending it. Do not repeatedly submit credentials, full identity details, or unrelated sensitive material to increase cache usage.
    • Evaluate regions on more than price. A lower rate in one region may come with trade-offs in network latency, data compliance, migration effort, and disaster recovery design. Moving a deployment makes sense only if the overall benefits outweigh migration and operating costs.
    • Measure latency rather than assuming a fixed speedup. A cache hit can reduce repeated input processing, but end-to-end response time still depends on queueing, network latency, and output generation.

    8. Put the Optimization into Practice

    A lower cached input rate gives workloads with substantial repeated context a chance to cut costs. To turn that pricing change into measurable savings:

    1. Confirm the effective date, eligible regions, and scope of the new rate.
    2. Use actual usage data to separate uncached input, cached input, and output costs.
    3. Identify necessary shared input that stays stable across requests.
    4. Standardize templates and keep dynamic or untrusted material separate from trusted rules.
    5. Verify changes in cost, quality, and latency with representative samples.
    6. Monitor cache usage and billing as the application evolves.

    The goal is not the highest possible cache-hit rate. It is a lower total cost per successful task while meeting quality, security, and compliance requirements.