Independent & unofficial. Not affiliated with Anthropic. Facts verified 21 August 2026. Always confirm pricing at claude.com/pricing.
Archive

The Claude 4 generation, in retrospect

Claude 4 launched in May 2025 and was retired in June 2026. An archive of what shipped, the benchmark numbers at launch, and the current models that replaced it.

This generation is retired

Claude Opus 4 (claude-opus-4-20250514) and Claude Sonnet 4 (claude-sonnet-4-20250514) were both retired from the Claude API on 15 June 2026. Requests to either model ID now return an error. The current replacements are claude-opus-5 — documented on the Claude Opus 5 page — and claude-sonnet-5, documented on the Claude Sonnet 5 page.

Why this page still exists: Claude 4 is cited in thousands of blog posts, tutorials, procurement documents and Stack Overflow answers written between May 2025 and mid-2026. Version history is genuinely useful — you need to know what a claude-opus-4-20250514 string in an old repository meant, and what to replace it with.

Claude 4 was the model generation Anthropic released on 22 May 2025, consisting of two models: Claude Opus 4 and Claude Sonnet 4. It was the generation that made agentic coding Claude's defining product category, and it ran as Anthropic's frontier line for roughly four months before Sonnet 4.5 superseded part of it in September 2025. Both original Claude 4 models are now retired.

#Claude 4 at a glance

Released
22 May 2025
Models in the generation
Claude Opus 4, Claude Sonnet 4
Retired API IDs
claude-opus-4-20250514, claude-sonnet-4-20250514
Deprecated
14 April 2026
Retired
15 June 2026 Retired
Context window
200,000 tokens (both models)
Launch API price
Opus 4 $15 / $75 · Sonnet 4 $3 / $15 per million tokens
Replace with
claude-opus-5 or claude-sonnet-5

#What was Claude 4, and what shipped with it?

Claude 4 was a two-model release. Opus 4 was positioned as the frontier coding and reasoning model; Sonnet 4 was the balanced, high-volume model that replaced Claude 3.5 Sonnet in most production systems. Both shipped on the same day with the same 200,000-token context window and the same dated model-ID convention, claude-{name}-4-20250514.

Three things arrived alongside the models in May 2025, and all three outlived them:

  • Hybrid reasoning became standard. The extended-thinking mode introduced with Claude 3.7 Sonnet three months earlier was carried into both Claude 4 models, with interleaved thinking available behind a beta header. That line of work eventually became the adaptive thinking and effort ladder used across the current lineup — the mechanics are explained on the thinking and reasoning page.
  • Claude Code went generally available. The terminal agent that had launched as a research preview with 3.7 Sonnet became a shipping product. It is now the centre of gravity for Anthropic's developer story, covered on Claude for developers.
  • Tool use during reasoning. Claude 4 models could call tools between thinking steps rather than only after them, which is the pattern every agent framework depends on today. See MCP and Claude agents for how that evolved into the current tool ecosystem.

Anthropic also activated its ASL-3 deployment and security standard for Opus 4 — the first time the company applied that tier of safeguard to a released model.

#Claude 4 launch benchmarks (May 2025 figures)

These are the numbers Anthropic published in its own launch material on 22 May 2025. They are historical. SWE-bench Verified is no longer reported by frontier vendors — Anthropic, OpenAI and Google have all moved on to newer agentic evaluations, so these figures are useful only as a baseline series showing how fast the category moved, not as a way to compare Claude 4 with anything current.

ModelBenchmarkScoreDate published
Claude Sonnet 4SWE-bench Verified72.7%22 May 2025
Claude Opus 4SWE-bench Verified72.5%22 May 2025
Claude Opus 4Terminal-bench43.2%22 May 2025
Claude 3.7 Sonnet (for context)SWE-bench Verified70.3% (custom scaffolding)24 Feb 2025
Claude Opus 4.1SWE-bench Verified74.5%5 Aug 2025
Claude Sonnet 4.5SWE-bench Verified77.2%29 Sep 2025
Claude Haiku 4.5SWE-bench Verified73.3%15 Oct 2025

The most revealing row is the last one. By October 2025, Anthropic's cheapest model scored higher than its May 2025 flagship. That five-month gap between frontier and budget is the single clearest illustration of why running a retired model to save money stopped making sense.

Note also that Sonnet 4 edged out Opus 4 on SWE-bench Verified at launch, despite Opus costing five times as much. Opus 4's advantage showed up on longer, messier, multi-step work rather than on a single scored benchmark — a distinction that still applies when choosing between tiers today, and one worked through on the model comparison page.

#Where Claude 4 sits in the Claude timeline

Claude 4 was the fourth major generation and the first to be treated as a family that would receive point releases rather than a single monolithic launch.

ReleaseDateStatus in August 2026
Claude 3.7 Sonnet24 Feb 2025Retired 19 Feb 2026
Claude Opus 4 + Sonnet 422 May 2025Retired 15 Jun 2026
Claude Opus 4.15 Aug 2025Retired 5 Aug 2026
Claude Sonnet 4.529 Sep 2025Available — retirement no sooner than 29 Sep 2026
Claude Haiku 4.515 Oct 2025Available
Claude Opus 4.524 Nov 2025Available
Claude Opus 4.65 Feb 2026Available
Claude Sonnet 4.617 Feb 2026Available
Claude Opus 4.716 Apr 2026Available
Claude Opus 4.828 May 2026Available
Claude Fable 59 Jun 2026Available
Claude Sonnet 530 Jun 2026Available
Claude Opus 524 Jul 2026Available — current flagship

The "4" branding stretched a long way. Opus 4.8, shipped in May 2026, still carried a 4-series name despite having almost nothing technically in common with the May 2025 original: a 1M-token context instead of 200k, adaptive thinking instead of a manual thinking budget, and a different tokenizer. Treat the version number as a marketing lineage, not a statement about architecture.

#What to migrate a Claude 4 model string to

If you have a codebase, notebook or workflow still carrying a Claude 4 model ID, it is broken today, not merely dated. Here is the mapping.

Old model stringRecommended replacementNotes
claude-opus-4-20250514claude-opus-51M context, $5/$25 — cheaper than Opus 4 was, and far more capable. Anthropic's own deprecation notice named claude-opus-4-8 as the like-for-like replacement.
claude-sonnet-4-20250514claude-sonnet-51M context, $2/$10 — cheaper than Sonnet 4's $3/$15. Anthropic's notice named claude-sonnet-4-6.
anthropic.claude-opus-4-20250514-v1:0 (Bedrock)anthropic.claude-opus-5Note the dropped -v1 suffix on models after Opus 4.6.
claude-opus-4@20250514 (Vertex AI)claude-opus-5Google Cloud IDs for 4.6-and-later models no longer carry an @date.
A model-string swap is not the whole migration

Three things changed between Claude 4 and the current models and will break code that only edits the model ID. temperature, top_p and top_k return a 400 error on Opus 4.7 and later, and on Sonnet 5. Assistant message prefill was removed on 4.6 and later. And the manual thinking.budget_tokens field has been replaced by adaptive thinking plus an effort parameter. The full checklist is on the Claude API page.

#Is there any reason to still want Claude 4?

Not really — but the honest reasons people ask are worth answering. Reproducibility is the main one: if you published research or a regression suite pinned to claude-opus-4-20250514, those results cannot be reproduced, because Anthropic does not keep retired weights callable. That is a genuine limitation of the whole industry's release model, and it argues for archiving your own outputs rather than trusting a model ID to stay alive.

Cost is not a reason. Opus 4 cost $15 per million input tokens and $75 per million output; Opus 5 costs $5 and $25. Sonnet 5 is $2/$10 against Sonnet 4's $3/$15, though the newer tokenizer emits roughly 30% more tokens for the same text, so the real saving is smaller than the sticker price implies. Current rates for every tier are on the pricing page.

Capability is not a reason either. The individual model records are preserved on the Claude Opus 4 archive and the Claude Sonnet 4 archive, and the wider lineage is set out on the Opus and Sonnet family pages. For a current-generation decision, start at the model index.

#Frequently asked questions

Is Claude 4 still available?

No. Claude Opus 4 and Claude Sonnet 4 were both retired from the Claude API on 15 June 2026, after being deprecated on 14 April 2026. Requests using their model IDs return an error. Use claude-opus-5 or claude-sonnet-5 instead.

What replaced Claude Opus 4?

Anthropic's deprecation notice pointed Opus 4 traffic at claude-opus-4-8, which is still callable. For new work the better target is claude-opus-5, released 24 July 2026, which has a 1M-token context and costs $5 per million input tokens against Opus 4's $15.

What did Claude 4 score on SWE-bench Verified?

At launch in May 2025, Claude Sonnet 4 scored 72.7% and Claude Opus 4 scored 72.5% on SWE-bench Verified. Those are historical figures. Frontier vendors no longer report SWE-bench Verified, so they cannot be meaningfully compared with any 2026 model.

How big was Claude 4's context window?

200,000 tokens on both Opus 4 and Sonnet 4. The 1M-token context window arrived later, first in beta on Opus 4.6 in February 2026, and is now the standard default on Opus 5, Sonnet 5 and Fable 5 with no beta header and no long-context price premium.

Why is a model called Opus 4.8 newer than Claude 4?

Anthropic kept the 4-series naming through nine point releases spanning May 2025 to May 2026. Opus 4.8 shares a version number with the original Claude 4 but almost nothing else: different context window, different thinking mechanism, different tokenizer and different price.

Verify it yourself

Retirement dates and replacement model IDs checked against Anthropic's model deprecations page at platform.claude.com/docs, and launch benchmark figures against anthropic.com/news/claude-4, on 21 August 2026. This is an archive page for a retired generation; treat every figure on it as a May 2025 snapshot.