Anthropic's HTTP 404 not_found_error identifies an unavailable resource at the requested path. Inspect the endpoint and complete resource ID first. A model retirement is one possible explanation; it is not an established diagnosis for every 404.
Identify the resource before replacing a model
Distinguish an inference request from a Files, Batches, Models, or other resource operation. Check the API host, path, version, and resource ID against the endpoint documentation. A file or batch may be missing, deleted, or associated with another workspace; changing the model would not repair that reference.
For a model call, compare the configured ID with the provider's model card and benchr's identifier directory. Keep a dated snapshot separate from an alias. Also confirm the credential's workspace and permissions, while preserving the distinction between a 404 and a documented 403 permission error.
Exact retired IDs and current official mappings
claude-sonnet-4-20250514Retired June 15, 2026.
Official replacement: Claude Sonnet 5.5 (
claude-sonnet-5-5).claude-opus-4-20250514Retired June 15, 2026.
Official replacement: Claude Opus 4.8 (
claude-opus-4-8).claude-opus-4-1-20250805Retired August 5, 2026.
Official replacement: Claude Opus 4.8 (
claude-opus-4-8).
The source table is scoped to Anthropic-operated platforms: the direct Claude API, Claude Platform on AWS, and Microsoft Foundry. Amazon Bedrock and Google Cloud partner deployments can have different schedules. Confirm the deployment's own lifecycle notice rather than treating every service with “AWS” in its name as the same platform.
Official recommendations can change after a retirement. The lifecycle record preserves earlier recommendations as history; they are not all current defaults. A “not sooner than” date is a lower bound, not an announced shutdown. Do not mark a still-listed model retired because that lower bound has passed.
Discovery is evidence about a catalog
Use the documented Models endpoint with the same deployment and account scope when discovery is available. Handle authentication failures, pagination, missing response fields, and transport errors before concluding that an ID is absent. A successful listing does not prove that a separate inference operation, tool configuration, or service tier is accepted.
The current error documentation gives a generic example message, but it does not promise identical wording for every missing resource. Branch on the status and typed SDK exception where supported, retaining the message and request ID for diagnosis. Do not string-match one English sentence as the only recognized 404.
Validate the replacement's protocol
Check the exact successor's request fields, thinking controls, sampling restrictions, output format, tools, context limits, and prices. The 400 guide covers model-generation changes that a valid new ID can expose. Test representative cases before redirecting production traffic, and preserve failed as well as successful migration results.
No authenticated model lookup or inference was executed for this guide. The retirement table is a source-backed reference, not a live account-availability check. Keep the original failed ID and operation in the diagnostic record so a later successful replacement does not erase the cause.