Prompt caching

Prompt caching

AI

Prompt caching lets a model provider reuse the processed start of a prompt that repeats across requests, so those requests are faster and cheaper.

What is Prompt caching?

An AI agent sends a lot of the same text to the model on every turn: its instructions, tool descriptions and often the same reference material. Prompt caching lets the provider keep the processed version of that repeated beginning for a short time. When the next request starts with exactly the same text, the model can skip re-reading it. What it improves: - Cost: cached input tokens are usually billed at a lower rate than new ones. - Speed: the model can start answering sooner, which matters on a phone call. How to get the most from it: - Put the parts that never change (instructions, tool lists) at the start, and the parts that change (the latest message) at the end. - Keep the repeated part identical. Even a small change, such as a timestamp near the top, breaks the match. - Know that caches expire after a period without use, so the first request after a pause pays full price. What it does not do: cache the model's answers. Each reply is still generated fresh. Prompt caching only saves the work of reading the same opening again.

Example

A voice agent's 3,000-token instructions are identical on every turn of every call. With prompt caching, only the first request in a while pays full price for them; the rest reuse the cached version.

Why Prompt caching Matters

For agents with long instructions, prompt caching can cut a large share of model cost and shave time off each reply.

Explore More Terms

Browse our complete glossary of e-commerce and subscription terms.

Space, at your fingertips

What would you do with 22% more revenue?