Okapi Okapi

Anthropic claude-sonnet-4-20250514 model retirement

Stopped workingSubscribe to AnthropicShare

Calls to model claude-sonnet-4-20250514 fail since June 15, 2026. The model was deprecated on April 14, 2026, and is now retired. Any requests specifying this model ID no longer succeed.


The error you get

What Anthropic answers a call to claude-sonnet-4-20250514 once the model is gone, as recorded from real responses:

HTTP 404
{"type":"error","error":{"type":"not_found_error","message":"model: claude-sonnet-4-20250514"}}

What to use instead of claude-sonnet-4-20250514

Move to claude-sonnet-5-5, which is 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

Anthropic, Deprecations page

Facts

API
Anthropic api.anthropic.com
Model
claude-sonnet-4-20250514
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-20250514 shut down?

Calls to the model claude-sonnet-4-20250514 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-20250514 return once it is shut down?

Anthropic answers HTTP 404: "model: claude-sonnet-4-20250514". Send another model to fix it.

When was claude-sonnet-4-20250514 released?

claude-sonnet-4-20250514 was released on May 22, 2025, according to models.dev.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from Anthropic 10

  1. claude-opus-4Model retirement Stopped working
  2. claude-opus-4-0Model retirement Stopped working
  3. claude-opus-4-20250514Model retirement Stopped working
  4. claude-opus-4-latestModel retirement Stopped working
  5. claude-sonnet-4Model retirement Stopped working
  6. claude-sonnet-4-0Model retirement Stopped working
  7. claude-sonnet-4-latestModel retirement Stopped working
  8. claude-opus-4-1Model retirement Stopped working
  9. claude-opus-4-1-0Model retirement Stopped working
  10. claude-opus-4-1-20250805Model retirement Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Anthropic

Hear about each breaking change Anthropic announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Anthropic

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.