Claude 4 deprecated, Claude 4 retiring, Claude 4 end of life, Claude Opus deprecated, Claude Sonnet deprecated, Claude 4 migration, Claude 4 replacement, Claude 4 deadline">
← Back to blog

Claude 4 Deprecated: 13-Day Countdown — What You Need to Know

Claude 4 Opus and Claude Sonnet 4 are deprecated and retire June 15, 2026. You have 13 days to migrate. Here's exactly what changes, what it costs, and how to switch.

--
Days Left
June 15
Deadline
67%
Cost Savings

June 15 deadline: After this date, API calls to claude-4-opus and claude-sonnet-4 will return errors. Your API key still works — you just need to update the model name string.

What's Happening

Anthropic has officially deprecated Claude 4 Opus and Claude Sonnet 4. These models will be retired on June 15, 2026. After that date:

The Timeline

What Changes (and What Doesn't)

ItemStatusAction Required
API key No change None
SDK / libraries No change None
API endpoint No change None
Model name string Changes Update claude-4-opusclaude-opus-4-8
Pricing 67% cheaper You save money automatically

Calculate your exact savings: Use our free calculator to see what you'll pay after migration based on your actual token usage. Open the Claude Deprecation Calculator →

🚨 June 15 deadline: See all 34 alternatives, calculate your savings, and get migration code on our Claude 4 Deprecation Hub.

The Replacements

RetiringReplacementPriceContextSavings
Claude 4 Opus Claude Opus 4.8 $5 / $25 200K → 1M 67% cheaper
Claude Sonnet 4 Claude Sonnet 4.6 $3 / $15 200K → 1M Same price, better

How to Migrate

Migration is a one-line change. Find where you set the model name and update it:

Before (Claude 4 Opus)

model = "claude-4-opus"

After (Claude Opus 4.8)

model = "claude-opus-4-8"

That's it. Your API key, SDK, endpoint, and authentication all stay the same. Most teams complete this in under an hour.

Cost Comparison: Claude 4 vs Replacements

Here's what you'd pay for a typical workload (10M input tokens, 2M output tokens per month):

ModelInput CostOutput CostMonthly Total
Claude 4 Opus (old) $150 $150 $300
Claude Opus 4.8 (new) $50 $50 $100
Claude Sonnet 4.6 $30 $30 $60
GPT-5 $12.50 $20 $32.50
DeepSeek V4 Pro $4.35 $1.74 $6.09

Deadline: June 15 — 13 days left

Compare all 34 alternatives to Claude 4. See exact costs, get migration code, and find the cheapest replacement.

Open Migration Tool → Step-by-Step Guide Deprecation Calculator Migration Cheat Sheet Cheapest LLM APIs

Frequently Asked Questions

Is Claude 4 deprecated?

Yes. Claude 4 Opus and Claude Sonnet 4 are deprecated and will be retired on June 15, 2026. After that date, API calls to these model IDs will return errors.

When does Claude 4 stop working?

Claude 4 Opus and Claude Sonnet 4 will stop working on June 15, 2026. You have 13 days from June 2 to complete your migration.

What should I replace Claude 4 with?

The easiest replacement is Claude Opus 4.8 (67% cheaper) or Claude Sonnet 4.6 (same price, better context). For cross-provider alternatives, GPT-5 and DeepSeek V4 Pro are strong options.

How much does it cost to migrate?

Migration is free — it's just a model name string change. You'll actually save money: Claude Opus 4.8 is 67% cheaper than Claude 4 Opus.

Do I need a new API key?

No. Your existing Anthropic API key works with the new models. Just update the model name string in your code.

Related Resources