Skip to content
UtilPouch

Prompt caching savings calculator

Set to a long retrieval chat on Claude Sonnet 5.5, where every turn resends large documents. Compare the monthly bill with and without caching, then try other models.

Your conversation

Processed on this device
Start from
tokens
1–50
tokens
tokens
/ month

New input is what each turn adds: the user’s message or a tool result.

Without caching

$0.00

With prompt caching

$0.00

Input tokens per session
Output tokens per session
Longest request with reply

Turn by turn, one session

TurnInput that turnTotal so farWith caching

Prices checked December 6, 2026. Sources: OpenAI, Anthropic, Google, DeepSeek. Confirm current rates before you budget.

What gets cached

Caching stores the beginning of a prompt so that later requests starting with the same text are cheaper and faster. Anything that changes, like the newest message, is billed normally.

Order matters: put the system prompt, tool definitions and long documents first, and the changing conversation after them, so the shared prefix is as long as possible.

Reads, writes and expiry

Most providers charge a cached read at 10% or less of the input price. Some charge extra to write to the cache; the simulator includes each model’s write price.

Caches expire after a few minutes without use. Steady traffic keeps them warm; a chat where users reply after long pauses gets fewer hits than this model assumes.

Cached input price as a share of normal input
ModelInputCached readShare
Claude Sonnet 5.5$2.00$0.105%
GPT-5$1.25$0.12510%
Gemini 3.1 Pro$2.00$0.2010%
DeepSeek Pro (off-peak)$0.66$0.0223%
GPT-4o$2.50$1.2550%

Questions

How long does a prompt cache last?

Usually around five minutes after the last use, refreshed on each hit. Anthropic also offers a longer one-hour cache at a higher write price.

Is there a minimum prompt length for caching?

Yes. Providers only cache prefixes above a minimum, typically around 1,000 tokens. Short prompts are billed normally.

Why is my real cache hit rate lower than expected?

Any change near the start of the prompt, such as a timestamp or a user name in the system prompt, breaks the shared prefix. Keep the start of the prompt identical across requests.

Does caching work for single requests?

Only if many requests share the same prefix, like a fixed system prompt. For one-off prompts there is nothing to reuse.