Prompt caching lets a serving system retain reusable state associated with input it has already processed. Repeated instructions or document context can then require less processing when the cache's matching and compatibility conditions are met.
The benefit depends on input stability, cache availability and the provider's implementation. It is separate from returning a stored final answer, and new content still requires computation. Cache boundaries and data-handling rules also matter when prompts contain sensitive information.
ELI5
Prompt caching is a shortcut that lets an AI service reuse work it recently did on the same starting information. It can make repeated requests faster or cheaper when a large unchanged prompt is sent again.
For example, several coding requests may share the same long project instructions. A provider might cache that common beginning, but a new session or changed model may lose the shortcut, so the important instructions still need to be available in full.
Is prompt caching the same as saving an answer?
No. It reuses work on the input context, while a response cache may return a previously stored output.
Why can changing a prompt reduce cache benefits?
The revised content may no longer match the state that was retained, depending on the service's matching rules.










