Back
AnthropicClaude API
Cache diagnostics is out of beta on the Claude API and no longer requires the cache-diagnosis-2026-04-07…
AI summary
Written by AI from the official notes. Check them for exact details.Cache diagnostics is now fully available on the Claude API without the beta header requirement.
- Cache diagnostics is out of beta on the Claude API.
- No need for the
cache-diagnosis-2026-04-07beta header. - Include the
diagnosticsobject to opt in for diagnostics. - Responses now always include the
diagnosticsfield.
Why it matters: Developers using the Claude API should implement the new diagnostics feature for improved insights.
Full release notes
- Cache diagnostics is out of beta on the Claude API and no longer requires the
cache-diagnosis-2026-04-07beta header. Include thediagnosticsobject on a Messages request to opt in; requests that still send the header work as before. Responses fromPOST /v1/messagesnow always include thediagnosticsfield, which isnullwhen the request did not include thediagnosticsobject.