Anthropic Prompt caching not working

Describe the problem/error/question

Prompt caching for Anthropic nodes (Claude models) appears to not be working.

Despite using the same inputs, every request is billed as a new generation — no cache hits are being recorded in the Anthropic Console.

I reviewed this related commit:
:link: gooseprogrammers/n8n@d1e8a12
It seems to adjust Anthropic caching logic, but even after updating to the latest version, caching still doesn’t seem to activate or return the expected cache status.

What is the error message (if any)?

No explicit error message — the node executes successfully, but each run counts as a fresh request (no cache_read state, no speed improvement, and token usage remains identical).

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: [email protected]
  • Database (default: SQLite): default/ n8n cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: NA

Sorry, this is the correct commit message: feat(ai-builder): Optimize Anthropic prompt caching with 4-breakpoint… · n8n-io/n8n@3afb4db · GitHub. Eitherway, it seems to have been released in 1.117.0 changelog.