Back to library
AI
news

Upgrade Retired Claude 4 Models to Latest Versions

Update your model IDs to 4.6 or 4.8 to avoid API errors.

Immediately switch your API calls from retired Claude 4 models to the newer Sonnet 4.6 or Opus 4.8 versions to avoid service interruptions.

Claude

The Scenario

Your existing AI integration suddenly starts returning errors because you are still using the May 2025 version of Sonnet or Opus.

Before & after

The old way

Users encounter 'model not found' errors and must manually research the latest documentation to find current model IDs, costing 15–30 minutes of downtime.

With AI

Update your integration to point to 'claude-sonnet-4.6' or 'claude-opus-4.8' to restore service instantly. This update takes about 2 minutes to change the string in your config.

The Prompt

Update this code to use the latest recommended Claude Sonnet 4.6 and Opus 4.8 model IDs: [PASTE_CODE_HERE]

Claude Sonnet 4 and Opus 4 have been officially retired. All requests to these specific model IDs will now fail. To maintain service, move to the recommended 4.6 and 4.8 versions which offer better performance.

Source

Claude Platform - Claude API Docs
"We've retired the Claude Sonnet 4 model... and the Claude Opus 4 model. All requests to these models will now return an error."