Pay less per token
Prompt caching
When every run opens with the same tools and system prompt, the model provider can cache that prefix and bill repeat reads at a fraction of the input price. Put stable content first and changing content last, so the cached prefix survives from one run to the next.
Cache hits bill at $0.20 per million tokens on Claude Opus 5.5 and $0.10 on Sonnet 5.5 (0.05x their input price), and $0.01 on Haiku 5.5 (0.1x). Published list price
Where it fits
cache_control on the Claude API; automatic on OpenAI.
The harness caches for you.
The vendor caches for you.
Depends on the model node.
The setting in each harness
Read on each vendor's own page, linked next to the setting.
| Harness | Setting |
|---|---|
| Claude API and Agent SDK |
|
| OpenAI Responses and Agents SDK | On by default Long, repeated prefixes are cached automatically; keep the prefix stable developers.openai.com, read 30 Nov 2026 |
| Claude Code | On by default The prompt is cached for you; |