The error you get
What Anthropic answers a call to claude-sonnet-4 once the model is gone, as recorded from real responses:
{"type":"error","error":{"type":"not_found_error","message":"model: claude-sonnet-4"}}
What to use instead of claude-sonnet-4
Move to claude-sonnet-5-5, recommended by Anthropic.
In Anthropic's words
API model name: claude-sonnet-4-20250514; Current state: Retired; Deprecated: April 14, 2026; Tentative retirement date: June 15, 2026
Facts
- API
- Anthropic
api.anthropic.com - Model
claude-sonnet-4- Released
- May 22, 2025 (models.dev)
- Kind
- Model retirement
- Announced
- April 14, 2026
- Takes effect
- June 15, 2026
- Calls after that day
- Fail
- Source
- Deprecations page
- Last updated
- Verified
- , against Anthropic's own pages
Questions
When does claude-sonnet-4 shut down?
Calls to the model claude-sonnet-4 on Anthropic stopped working on June 15, 2026.
What happens to calls after June 15, 2026?
They have failed since June 15, 2026.
What error does claude-sonnet-4 return once it is shut down?
Anthropic answers HTTP 404: "model: claude-sonnet-4". Send another model to fix it.
When was claude-sonnet-4 released?
claude-sonnet-4 was released on May 22, 2025, according to models.dev.
claude-sonnet-4 on other APIs 1
| Effective | Provider | Model | Status |
|---|---|---|---|
claude-sonnet-4 | deprecated, no date |
More from Anthropic 10
| Effective | Model | Status |
|---|---|---|
claude-opus-4 | stopped working | |
claude-opus-4-0 | stopped working | |
claude-opus-4-20250514 | stopped working | |
claude-opus-4-latest | stopped working | |
claude-sonnet-4-0 | stopped working | |
claude-sonnet-4-20250514 | stopped working | |
claude-sonnet-4-latest | stopped working | |
claude-opus-4-1 | stopped working | |
claude-opus-4-1-0 | stopped working | |
claude-opus-4-1-20250805 | stopped working |