Anthropic's new cost-cutting toolkit for the Claude API: smarter caching, effort tuning, and audit commands
Anthropic just published a deep-dive on cutting Claude API costs without losing quality — and buried in it are three concrete levers plus a set of Claude Code commands that do the audit work for you.
Anthropic just published a deep-dive on cutting Claude API costs without losing quality — and buried in it are three concrete levers plus a set of Claude Code commands that do the audit work for you.
What Changed
- Prompt caching got smarter. Anthropic now offers a cache diagnostics view (so you can see WHY a cache is missing), a
defer_loadingoption to keep rarely-used tools out of the cached prefix, the ability to inject mid-conversation system messages instead of editing the prompt (which breaks the cache), automatic dynamic breakpoint placement, cache pre-warming via zero-token requests, and a 1-hour TTL option for long-running agents (up from the default 5 minutes). Cache reads are billed at a fraction of full input price, so a healthy cache hit rate is real money. - "Effort" is now a tuning dial, not just a switch. The post makes the case for testing a stronger model at LOW effort before reaching for a weaker model working harder. Example cited: on FrontierCode Diamond, Fable 5 scored 11.5% at low effort for $5.35/task, versus 30.9% at max effort for $19.00/task — sometimes the cheap setting is the right call, sometimes it isn't, and you have to test both.
- Three new commands, run right inside Claude Code (via the
claude-apiskill):/claude-api prompt-auditscans your prompts for anti-patterns that waste tokens (things like redundant verification steps or "emphasis boosters" that make Claude re-check work it already did),/claude-api cost-optimizeprofiles your token spend end-to-end, and/claude-api hillclimbiteratively searches for the best cost/performance tradeoff for your use case.
The Numbers
- Running
/claude-api prompt-auditafter a model migration (Opus 4.8 → Opus 5) cut costs 14.6% AND improved accuracy 5.3%, on average, in the customer-support case Anthropic tested. - Applying the full set of cost levers dropped spend ~58% on LegalBench, ~73% on tau2-bench retail, ~55% on SWE-bench Verified, and ~52% on OfficeQA Pro (that last one went from $136.20 to $64.87 for the same eval).
Watch Out
- This is an API/developer-focused post — it's about building your own tools against the Claude API (or in n8n, MCP servers, custom agents), not a change to the Claude.ai chat app itself.
- Prompt caching needs a byte-exact matching prefix to hit — reordering tools, changing the model, or changing effort level all break the cache.
- Default cache TTL is still 5 minutes; the 1-hour option is opt-in and mainly useful for long-running agent workflows.
Key Takeaways
- If you're building anything that calls the Claude API repeatedly (n8n workflows, MCP servers, custom agents),
/claude-api prompt-auditin Claude Code is a free way to find wasted tokens. - Don't assume "cheaper model" beats "stronger model, lower effort" — test both, the data above shows it can go either way.
- Prompt caching now has real visibility (diagnostics) instead of being a black box — worth a look if your API bills have crept up.
Source
claude.com/blog/reducing-cost-and-improving-performance-with-claude-platform
Source: claude.com
We break down Claude Code news like this every day in the free community. Join the crew on Skool.