Claude API: handling model retirements without downtime

By Kallistesoft · · 3 min read

Illustration: a calendar with a model retirement deadline
Illustration: a calendar with a model retirement deadline

Information checked on November 29, 2026 in Anthropic's documentation. If your app calls the Claude API with a hard-coded model ID, a deadline lands tomorrow: claude-sonnet-4-5-20250929 is scheduled to retire on November 30, 2026.

What has been announced

The model deprecations page defines four states: active, legacy, deprecated (still working but not recommended, with a retirement date) and retired. For publicly released models, Anthropic commits to at least 60 days' notice for customers with active deployments.

ModelRetirementRecommended replacement
claude-sonnet-4-5-20250929 (and claude-sonnet-4-5)November 30, 2026claude-sonnet-5-5
claude-opus-4-5-20251101 (and claude-opus-4-5)January 22, 2027claude-opus-5-5

The platform release notes add that fast mode (speed: "fast") for Claude Opus 4.8 is removed on November 30, 2026, returning an error afterwards, with Claude Opus 5.5 as the recommended migration. They also say temperature, top_p and top_k are no longer accepted from API version 2026-10-21 (a 400 error), so swapping the model can require changing the request too.

A model's lifecycle: active, legacy, deprecated, then retired (404 error)ActiveLegacyDeprecatedRetiredAfter retirement the API returns 404 not_found_error
A model's lifecycle: active, legacy, deprecated, then retired (404 error)

What happens at retirement

Per the same page, requests to a retired model fail: the Messages API returns a 404 not_found_error (see the error reference). For an assistant built into your product, that means a feature going silent overnight. The documentation also warns that deprecated models are likely to be less reliable than active ones.

A five-step migration plan

  1. Audit. In the Claude Console, open the Usage page and export the CSV: usage is broken down by API key and model. Also search your code for model IDs.
  2. Take the ID out of the code. A configuration variable is enough.
  3. Test the replacement on your real requests: tone, output format, cost, latency. The migration guide lists the changes to know about.
  4. Roll out gradually (10% of traffic, then 100%) with a one-line rollback.
  5. Monitor. Alert on 404 and 400 responses from the API.
# .env
CLAUDE_MODEL=claude-sonnet-5-5
# never in code: model="claude-sonnet-4-5-20250929"

What to compare before switching

Collect 20 to 50 real (anonymized) requests and replay them against both the old and the new model. Compare four things: answer accuracy, whether the expected format holds (JSON, length, tone), cost per request and response time. Have the person who knows the business review the differences: a newer model is not automatically better for your use case, and it may be wordier or respond differently to your instructions. If your prompts were tuned to the old model, budget half a day to revisit them.

Common pitfalls

Conclusion

Retirements come with any model provider. Migration is cheap when the ID is configurable and you have tests, and expensive when everything is hard-coded. Put retirement dates on your team calendar the day they are announced.

Sources

Related reading