Skip to content

Menu

Prompt Cache Breakpoint Planner

Lay out tools, system and messages with cache_control breakpoints, check the minimum cacheable length and the 4-breakpoint limit, and estimate cache cost.

Runs entirely in your browserAIFree, no sign-up
Loading tool

01What is Prompt Cache Breakpoint Planner?

Anthropic prompt caching stores the start of a request so later requests can reuse it at a lower price. Getting it right is fiddly. The breakpoint has to sit in the right spot, the prefix has to be long enough, and the write premium has to pay for itself. This planner lets you lay that out before you change any code. The cache covers the full prefix in a fixed order: tools, then system, then messages, up to and including the block marked with cache_control. You add segments, give each one a token count or paste text, and mark breakpoints. If you list segments out of order, the planner sorts them into that order and tells you. Each breakpoint can use the default 5-minute lifetime or the optional 1-hour lifetime. The tool checks the documented limits. A request can have at most 4 explicit breakpoints. Each model has a minimum cacheable length, from 512 tokens on newer models up to 4,096 on Claude Opus 4.5, Opus 4.6 and Haiku 4.5. A shorter prefix is processed without caching and the API returns no error, so the planner warns you. Every segment before the last valid breakpoint is marked cached, with the lifetime of the first valid breakpoint that covers it. For cost, you enter the model's base input price per million tokens. The planner applies the multipliers from the docs: 1.25x for 5-minute cache writes and 2x for 1-hour writes. Cache reads cost 0.1x by default, 0.05x for Opus 5.5 and Sonnet 5.5, and 0.025x for the Fable and Mythos 5.1 and 5.2 models. It shows the cost with no caching, on the first request that writes the cache, and on each cache hit. It also shows how many hits it takes to break even. Take the "Agent with tools" preset on Claude Sonnet 4.5 at $3 per million. Tools are 1,000 tokens, the system prompt is 3,000 with a 1h breakpoint, history is 2,000 with a 5m breakpoint, and the new turn is 100. The planner caches 6,000 of 6,100 tokens. No caching costs $0.0183 a request. The first request costs $0.0318, each hit costs $0.0021, and caching pays off after 1 hit. Limits: token counts are estimates at four characters per token unless you type real counts. Output tokens are not priced. It does not model automatic caching, the 20-block lookback window, or cache expiry between requests.

Developers building on the Claude API who want to cut input token costs for repeated prompts. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Prompt Cache Breakpoint Planner

  1. Pick the model and enter its base input price per million tokens from Anthropic's pricing page.
  2. Add segments for tools, system and messages, with a token count or pasted text.
  3. Set a 5m or 1h breakpoint on the segments you want cached.
  4. Read the warnings for breakpoints below the minimum or over the limit.
  5. Compare the no-cache, first request and cache hit costs.

03Worked examples

Input: Claude Sonnet 4.5, base $3/MTok. Tools 1000 tokens, system 3000 tokens with 1h breakpoint, history 2000 tokens with 5m breakpoint, new turn 100 tokens.
Result: 6000 cached, 100 uncached of 6100 tokens. No cache $0.0183, first request $0.0318, cache hit $0.002100, break even after 1 hit.
Tools and system are written at the 1h rate because the 1h breakpoint is the first one covering them.
Input: Claude Opus 4.5, $5/MTok. Short system prompt 500 tokens with a 5m breakpoint, user question 50 tokens.
Result: Breakpoint on "Short system prompt": Prefix is about 500 tokens, under the 4096-token minimum for Claude Opus 4.5. This breakpoint will not cache (no error is returned). 0 cached, 550 uncached. Every request costs $0.002750.
Input: Claude Opus 5.5, $5/MTok. Instructions 800 tokens, long document 40000 tokens with a 5m breakpoint, question 60 tokens.
Result: 40800 cached, 60 uncached of 40860 tokens. No cache $0.2043, first request $0.2553, cache hit $0.0105, break even after 1 hit.
Opus 5.5 reads at 0.05x, so each hit saves $0.1938.
Input: Claude Sonnet 4.5, five segments of 1000 tokens, each with a 5m breakpoint.
Result: 5 breakpoints set. The docs allow up to 4 cache_control breakpoints per request. Breakpoint on "Tool definitions": Prefix is about 1000 tokens, under the 1024-token minimum for Claude Sonnet 4.5.
No cost is shown while there is an error. Warning text trimmed.
Input: Claude Sonnet 4.5, $3/MTok, entered as system 1500 tokens (5m breakpoint), then tools 800, then a 200-token turn.
Result: Segments were reordered. The API builds the cache prefix in the order tools, then system, then messages. 2300 cached, 200 uncached of 2500. No cache $0.007500, first request $0.009225, cache hit $0.001290, break even after 1 hit.

04Common use cases

  • Decide where to put cache_control in an agent's tools, system prompt and history
  • Check whether a short system prompt is long enough to be cached on a given model
  • Compare 5-minute and 1-hour cache lifetimes for a prompt you reuse
  • Estimate how many cache hits are needed before caching pays for itself
  • Price a long-document Q&A flow where one big file is reused across many questions
  • Catch a fifth breakpoint before the API rejects the request
  • Explain prompt caching costs to a teammate with real numbers

05Tips

  • Put content that never changes, like tool definitions and the system prompt, before a breakpoint.
  • Use real token counts from the API usage fields for better estimates.
  • A breakpoint below the model's minimum is skipped by the API without an error, so check the warnings.
  • Keep the changing user turn after the last breakpoint so the cached prefix stays the same.
  • The 1h lifetime doubles the write price, so pick it only when requests are spaced more than 5 minutes apart.

06Related concepts

prompt caching, cache_control, ephemeral cache, cache_read_input_tokens, cache_creation_input_tokens, TTL.

Frequently Asked Questions

What is Prompt Cache Breakpoint Planner?

Prompt Cache Breakpoint Planner is a free, browser-based developer tool on AIDToolStack. Lay out tools, system and messages with cache_control breakpoints, check the minimum cacheable length and the 4-breakpoint limit, and estimate cache cost. It requires no installation or sign-up and works entirely in your browser.

Is Prompt Cache Breakpoint Planner free to use?

Yes. No sign-up, no fees and no usage cap.

Does Prompt Cache Breakpoint Planner store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe