---
title: "Prompt caching"
url: https://eldan.ai/glossary/prompt-caching
canonical: https://eldan.ai/glossary/prompt-caching
locale: en
language: en
published: 2026-11-23
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Prompt caching.\" Eldan.ai, 23 November 2026. https://eldan.ai/glossary/prompt-caching."
---

# Prompt caching

> Prompt caching is a provider feature that reuses the work done on the unchanging beginning of a prompt, so repeated prefixes are billed at a lower rate and answered faster. It only helps when stable content such as instructions and examples comes first and varies last. Minimum lengths and lifetimes differ between providers.

Anything that changes inside the prefix, a timestamp, a user name or a reordered example, breaks the match and silently turns the discount off. Structure prompts as stable first, dynamic last.

**Common mistake.** Putting the current date at the top of the system prompt.

**In practice.** Move volatile fields to the end, read the cache usage fields in the response to confirm hits, and read the provider’s documentation for minimum prefix length and cache lifetime.

## Related terms

- [Token](https://eldan.ai/glossary/token)
- [Context window](https://eldan.ai/glossary/context-window)
- [Model routing](https://eldan.ai/glossary/model-routing)
