Prompt caching savings calculator

What caching the repeated part of your prompt changes on each model, from its size and your number of calls.

Result

On Claude Opus 5.5, caching takes these 100 calls from $28.20 to $5.69: you save $22.51 (80%).

The same calls on every model, biggest saving first
ModelWithout cacheWith cacheSavedSaved %
MiMo-V2.6-ProXiaomi$2.87$0.31$2.5689%
DeepSeek V4 ProDeepSeek$4.46$0.67$3.7985%
DeepSeek V4.1 FlashDeepSeek$2.07$0.32$1.7584%
Claude Fable 5.1Anthropic$70.50$12.73$57.7782%
GPT-6.1 SolOpenAI$14.10$2.81$11.2980%
Gemini 4 ArgonGoogle$14.10$2.81$11.2980%
Muse WonderMeta$28.20$5.63$22.5780%
Claude Opus 5.5Anthropic$28.20$5.69$22.5180%
Claude Sonnet 5.5Anthropic$14.10$2.84$11.2680%
Mistral Large 4Mistral$9.20$1.95$7.2579%
MiniMax M3.1 FlashMiniMax$1.03$0.23$0.8077%
Qwen3.8 MaxAlibaba (Qwen)$13.50$3.10$10.3977%
Muse Spark OpenMeta$8.51$1.98$6.5377%
GPT-6 AstraOpenAI$70.50$17.04$53.4676%
GPT-6 SolOpenAI$14.10$3.41$10.6976%
GPT-6 LunaOpenAI$0.70$0.17$0.5376%
GPT-5.6 SolOpenAI$28.20$6.82$21.3876%
Gemini 3.8 FlashGoogle$5.29$1.28$4.0176%
Gemini 3.6 FlashGoogle$5.29$1.28$4.0176%
Kimi K3Moonshot AI$21.15$5.11$16.0476%
Claude Fable 5Anthropic$70.50$17.19$53.3176%
Claude Opus 5Anthropic$35.25$8.60$26.6676%
Claude Opus 4.8Anthropic$35.25$8.60$26.6676%
Claude Opus 4.7Anthropic$35.25$8.60$26.6676%
Claude Opus 4.6Anthropic$35.25$8.60$26.6676%
Claude Sonnet 5Anthropic$14.10$3.44$10.6676%
Claude Sonnet 4.6Anthropic$21.15$5.16$15.9976%
Claude Haiku 4.5Anthropic$7.05$1.72$5.3376%
Claude Haiku 5.5Anthropic$0.70$0.17$0.5376%
Grok 4.3xAI$8.25$2.01$6.2476%
GPT-5.5OpenAI$36$9.27$26.7374%
Gemini 3.1 Pro PreviewGoogle$14.40$3.71$10.6974%
GLM-5.3Z.ai$9.48$2.71$6.7771%
Kimi K2.6Moonshot AI$6.58$1.89$4.6971%
Gemini 3.5 Flash-LiteGoogle$2.27$0.66$1.6071%
GLM-5.3 FlashZ.ai$1.02$0.31$0.7170%
MiniMax M3MiniMax$2.07$0.64$1.4369%
Grok 4.7xAI$13.50$4.59$8.9166%
Grok 4.6xAI$13.50$4.59$8.9166%
Qwen3.8 27BAlibaba (Qwen)$3.06$1.04$2.0266%
gpt-oss-120bOpenAI$1.03$0.59$0.4543%
Mistral Medium 3.5Mistral$10.57n/an/an/a

How we work it out

Without caching every call pays the input price for the whole prompt. With caching the first call writes the prefix (Anthropic charges 1.25× the input price for a 5-minute cache[1]), and every later call reads it at the cache price. New tokens and output cost the same either way.

Questions

How does prompt caching save money?

The part of the prompt that repeats on every call (instructions, tool definitions, files) is stored after the first call and read back at a much lower price on the next ones.

Is the first call more expensive?

On Claude, writing the 5-minute cache costs 1.25 times the input price. OpenAI and Google bill the first call at the normal price; Google also charges hourly storage for explicit caches, which this calculator leaves out.

When does caching not help?

When the repeated part is small, or calls are so far apart that the cache expires between them.

More tools

Sources

  1. platform.claude.com: docs/en/about-claude/pricing, read

Numbers from the makers' own pages, checked by hand, last read . List prices in US dollars before tax. Spotted a mistake? office@shuriken.sh.

Made by Shuriken, the harness for coding agents. Its hot swapping moves your chats to another of your accounts or API keys when one nears its limit. Use only accounts you own and are entitled to use.

Try Shuriken on your own computer

Add your Claude, Codex and Gemini accounts once. Shuriken switches between them so your agents keep working.

Downloads open soon Pricing
Download on the App StoreGet it on Google PlayComing soon