Okapi Okapi

DeepInfra anthropic/claude-4-sonnet model retirement

Stopped workingSubscribe to DeepInfraShare

DeepInfra retired the model anthropic/claude-4-sonnet on May 20, 2026. Calls specifying this model fail since that date. The change affects all API requests routed to anthropic/claude-4-sonnet without automatic redirection.


What to use instead of anthropic/claude-4-sonnet

Move to anthropic/claude-sonnet-4-6, which is recommended by DeepInfra.


Facts

API
DeepInfra api.deepinfra.com
Model
anthropic/claude-4-sonnet
Kind
Model retirement
Takes effect
May 20, 2026
Calls after that day
Fail
Source
Model list
Last updated
Verified
, against DeepInfra's own pages

Questions

When does anthropic/claude-4-sonnet shut down?

Calls to the model anthropic/claude-4-sonnet on DeepInfra stopped working on May 20, 2026.

What happens to calls after May 20, 2026?

They have failed since May 20, 2026.

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 DeepInfra 10

  1. allenai/olmo-3.1-32b-instructModel retirement Stopped working
  2. allenai/olmocr-2Model retirement Stopped working
  3. allenai/olmocr-2-7b-1025Model retirement Stopped working
  4. zyphra/zonos-v0.1-hybridModel retirement Stopped working
  5. zyphra/zonos-v0.1-transformerModel retirement Stopped working
  6. anthropic/claude-3-7-sonnet-latestModel retirement Stopped working
  7. anthropic/claude-4-opusModel retirement Stopped working
  8. google/veo-3.0Model retirement Stopped working
  9. google/veo-3.0-fastModel retirement Stopped working
  10. deepseek-ai/deepseek-r1-0528-turboModel 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 DeepInfra

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

1What to follow

Provider
  • DeepInfra

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.