Breaking model
Claude Opus 4 and Sonnet 4 retired on the Claude API; requests to them now fail
What changes
Deprecated April 14, 2026 and retired June 15, 2026 on Anthropic-operated platforms (Claude API, Claude Platform on AWS, Microsoft Foundry). Requests to retired models fail. Amazon Bedrock and Google Cloud set their own schedules. Recommended replacements are claude-opus-4-8 and claude-sonnet-4-6.
Breaking: Calls fail after this date.
What to do
Move model ids to config; switch to claude-opus-4-8 / claude-sonnet-4-6; add a startup check that the configured model resolves.
Strings to search for
claude-opus-4-20250514claude-sonnet-4-20250514claude-4-opus-20250514claude-4-sonnet-20250514claude-opus-4-0claude-sonnet-4-0
Source
https://platform.claude.com/docs/en/about-claude/model-deprecations