Prompt Caching
What is Prompt Caching?
Prompt caching is a technique in which an AI provider stores the processed form of repeated prompt content, such as standard instructions, so later requests can reuse it at lower cost and latency.
Updated November 2026 · 5 min read
Prompt caching reduces the cost of sending the same content to a language model again and again. Many applications start every request with the same material: a long system prompt, a set of examples, a product catalog, a policy document or the earlier part of a conversation. Without caching, the model must reprocess that content in full each time. With prompt caching, the provider keeps the processed version for a short period, and later requests that begin with exactly the same content can reuse it. Cached input is billed at a fraction of the normal input price and is processed faster.
Because input tokens make up most of the volume in many AI applications, prompt caching is one of the largest and simplest savings available. It requires no change to the model and little change to the application beyond structuring prompts so that fixed content comes first. For IT financial management, prompt caching is a standard lever for reducing the cost of AI services, and the share of input served from cache is a useful measure of how efficiently an application uses its model.
Definition of Prompt Caching
Prompt caching is a provider feature that stores the intermediate results of processing a prompt prefix, so that subsequent requests sharing that prefix do not need to recompute it. It relies on the model's KV cache, the internal representation built as the model reads each token.
Caching applies to the beginning of a prompt. A request benefits only if its opening content matches a cached prefix exactly, which is why fixed content should be placed before content that changes. Even a single different token near the start of a prompt means the rest of it cannot be read from cache.
How Providers Charge
Providers bill cache reads, meaning tokens served from the cache, at a large discount to normal input prices, often between half and a tenth of the standard rate depending on the provider.
Some providers charge a small premium to write content into the cache the first time, while others cache automatically at no extra charge.
Cached content expires after a short period without use, commonly a few minutes, although some providers offer longer cache lifetimes at a higher write cost.
What to Cache
Good candidates include long system prompts and instructions, examples used to guide the model, tool definitions and reference documents that many requests share.
In conversations, earlier turns can be cached so that each new message reuses the history rather than reprocessing it.
For agents, the fixed instructions and the stable early part of the task context can be cached across steps. This matters because agents resend their context with every step, so caching it can reduce the cost of long tasks considerably.
Importance of Prompt Caching in IT Financial Management
Prompt caching can cut input costs dramatically for applications with large, repeated prompts. Since input tokens often make up most of the tokens billed, the effect on total cost can be substantial.
It also reduces latency, because cached content does not need to be processed again. This improves user experience at the same time as reducing cost, which makes it easy to justify.
Despite this, many applications are built without caching in mind, sending variable content first or making small changes to instructions with every request, which prevents cache hits. Reviewing prompt structure is therefore one of the first steps in any AI cost review.
Measuring Cache Performance
The cache hit rate, meaning the share of input tokens served from cache, shows how well an application uses caching. Providers report cached and uncached tokens separately in their usage data.
Tracking the hit rate alongside cost per token shows how caching affects the effective price an organization pays.
Falling hit rates can signal changes in prompt design, such as dynamic content added to the start of the prompt, that are quietly increasing costs.
Limits of Prompt Caching
Caching helps only when the same prefix is reused within the cache lifetime. Applications with low traffic, or with prompts that differ from the very first token, gain little.
Cache write premiums can make caching slightly more expensive for content that is rarely reused, so it should be applied deliberately.
Prompt caching is different from semantic caching, which stores and reuses whole answers to similar questions. The two can be used together.
How to Use Prompt Caching
Using prompt caching well involves structuring prompts so fixed content comes first, enabling caching where providers require it and monitoring hit rates.
Most of the work is in prompt design rather than infrastructure, and the changes can usually be made quickly.
Structuring Prompts
Place stable content, such as instructions, examples, tool definitions and shared documents, at the start of the prompt, and put user-specific or changing content at the end.
Avoid adding timestamps, request identifiers or other varying details to the beginning of prompts, since any difference breaks the match.
Keep instructions stable across requests and versions where possible, and batch prompt changes into planned releases rather than making frequent small edits.
Monitoring and Tuning
Record cached and uncached input tokens for each application, and calculate the hit rate and the savings achieved.
Investigate low hit rates by comparing the opening content of requests, and adjust prompt structure or cache lifetime settings accordingly.
Include caching in AI cost optimization reviews alongside model choice and batch processing.
Examples of Prompt Caching in IT Financial Management
The examples below show prompt caching reducing costs.
Both use an illustrative input price of $3 per million tokens, with cached reads at $0.30. The first restructures a support assistant's prompts, and the second caches conversation history.
In each, the savings came from changing the order of content rather than the content itself.
Restructuring a Support Assistant
A support assistant sends a 9,000-token system prompt with product information and a 1,000-token customer message on each of 600,000 requests a month. Input costs about $18,000 a month, with almost no cache hits because each prompt begins with the customer's account details.
The team moves account details after the fixed instructions. Now 9,000 tokens of each request are read from cache at most times of day.
With a hit rate of about 85% on those tokens, monthly input cost falls to about $5,600, and responses start noticeably faster.
Caching Conversation History
Another company's research assistant holds long conversations averaging 20 turns, resending the growing history each time. Input costs reach $42,000 a month.
The team enables caching of the conversation so far at each turn, so that only the newest message is processed at full price.
Because most of each request is now earlier history read from cache, input costs fall to about $11,000 a month, including the charges for writing new turns into the cache, with no change to the assistant's answers.
Conclusion
Prompt caching stores the processed form of repeated prompt content so that later requests reuse it at a lower price and with less delay. It works on prompt prefixes, so applications benefit most when fixed content comes first and stays stable.
In IT financial management, prompt caching is one of the largest and simplest ways to reduce AI service costs. Placing stable content first, removing varying details from the start of prompts, caching conversation history, monitoring hit rates and including caching in regular cost reviews help organizations stop paying full price for content their models have already read.
Related terms
KV Cache
A KV cache is memory in which a language model stores the key and value data computed for tokens it has already processed, so it need not repeat that work for each new token.
Cost per Token
Cost per token is the price paid for each token a language model processes, usually quoted per million tokens with separate rates for input and output, and the basic unit price of AI services.
Semantic Caching
Semantic caching is a technique that stores AI model responses and reuses them for new requests with the same meaning, even if worded differently, avoiding repeat model calls for similar questions.
AI Cost Optimization
AI cost optimization is the ongoing practice of reducing what an organization spends to get a given level of value from AI, through better model choice, usage, pricing and infrastructure.