caching_breakeven
Calculate the break-even point for prompt caching given the static token count and number of reuses. Determines when caching is cost-effective.
Instructions
Compute prompt-caching savings and break-even for a static prompt reused N times. Break-even is ~1.28 reuses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_tokens | Yes | Size of the static (cacheable) prompt in tokens | |
| reuses | Yes | How many times the prompt is reused | |
| model | No | sonnet-4.5 |