# anthropic/claude-4-sonnet

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

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

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

- API: DeepInfra (api.deepinfra.com)
- Model: anthropic/claude-4-sonnet
- Kind: Model retirement
- Takes effect: May 20, 2026
- Calls after that day: fail
- Calls it hits: `model anthropic/claude-4-sonnet`
- Source: [Model list](https://api.deepinfra.com/models/list)
- Verified: November 6, 2026, against DeepInfra's own pages
- Page: https://www.okapi.bot/models/deepinfra/anthropic/claude-4-sonnet/

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
