CometAPI retires Claude Opus 4 and Sonnet 4 with migration guidance
On September 28, 2026, CometAPI posted formal retirement notices for two Anthropic model IDs: claude-opus-4-20250514 and claude-sonnet-4-20250514. Both were retired on June 15, 2026. The recommended replacements are claude-opus-5-5 and claude-sonnet-5 respectively. The September 28 post serves as a migration guide for developers who may still be referencing the legacy model IDs in production code.
If you have production code calling either of those Claude 4 model IDs, the immediate concern is what happens when you make a request. Once a model ID is retired on a platform, calls to it either fail outright or get silently redirected to a successor. Silent redirection is the more dangerous outcome: your code appears to work, but the model answering your prompts has changed, which means outputs may differ in ways your application doesn’t expect and your tests don’t cover.
Any production code still calling those IDs either returns errors or gets silently redirected to a successor, which is the more dangerous outcome. Silent redirection means your code appears to work, but the model answering your prompts has changed — outputs may differ in ways your application doesn’t expect and your tests don’t cover.
CometAPI’s guidance points to claude-opus-5-5 as the replacement for Opus 4 workloads and claude-sonnet-5 for Sonnet 4. These are the current generation successors, but they are not drop-in behavioral equivalents. Newer models may respond differently to the same prompts — more or less verbosely, with different formatting defaults, or with different handling of edge cases in inputs. The standard practice is to evaluate the replacement model IDs against an existing prompt suite before switching in production, rather than assuming backward compatibility.
One structural point worth noting: hardcoding model IDs in application code is what creates this category of migration problem. A configuration-driven approach — where the model ID is a value set once rather than scattered across the codebase — means a future retirement requires a single change. If a codebase has many hardcoded model ID references, that pattern is worth addressing while the change is already in flight.
The June 15 retirement date means these model IDs have been gone from CometAPI for over three months by the time this notice was posted. Applications running without errors in that window are likely already on the successor models via automatic redirection, but confirming which model ID is actually being called is still worthwhile.
The June 15 retirement date means these model IDs have been gone from CometAPI for over three months by the time this notice was posted. If your application has been running without errors in that window, it is likely already on the successor models via automatic redirection, but confirming which model ID is actually being called is still worthwhile.
Sources
- CometAPI Changelog, September 28, 2026: Change Log - One API Access 500+ AI Models - CometAPI