Anthropic prompt caching, explained: cache_control markers, the two-tier write premium, and when it actually pays off
Anthropic's prompt caching offers up to 90% discount on cached input tokens via cache_control markers, with a 1.25x write premium for a 5-minute TTL or 2x for a 1-hour TTL. Break-even occurs at the second cache hit for t…