It happened. As of June 15, 2026, Claude 4 Opus and Claude 4 Sonnet are permanently shut down. If your app is still calling these models, you're getting 410 Gone errors right now. This guide walks you through the fix — it takes 30 minutes or less.

410
Gone — claude-4-opus is no longer available

The 30-Minute Fix

You don't need to rewrite your app. You just need to change one thing: the model ID.

1

Find Every Claude 4 Reference

Run this in your project root:

grep -r "claude-4-opus\|claude-4-sonnet" --include="*.js" --include="*.ts" --include="*.py" --include="*.json" .

This finds every file that references the dead model IDs. Don't forget config files, environment variables, and documentation.

2

Update Model IDs

The API format is identical — you only change the model name:

// Before (dead — returning 410 Gone)
model: "claude-4-opus"

// After (official successor)
model: "claude-opus-4-8"

No other code changes needed. Same API, same SDK, same parameters.

3

Test and Deploy

Make a few test calls to verify the new model works with your prompts. Then deploy. That's it — your app is back online.

Claude 4 Is Dead — Cost Comparison

Here's what you were paying vs what you'll pay now (per 1M tokens):

Claude 4 Opus (DEAD)
$15 / $75
Input / Output — 410 GONE
Claude Opus 4.8 (successor)
$5 / $25
67% cheaper · Same API format
Claude 4 Sonnet (DEAD)
$3 / $15
Input / Output — 410 GONE
Claude Sonnet 4.6 (successor)
$3 / $15
Same price · 5x context window

Budget Alternatives (save even more)

DeepSeek V4 Pro
$0.44 / $0.87
97% cheaper than Claude 4 Opus
Llama 4 Maverick
$0.27 / $0.85
98% cheaper · Open source

See our ranked comparison of the best Claude 4 replacements →

⚡ Free

Calculate Your Exact Savings

Enter your monthly token usage and see exactly how much you'll save by migrating off Claude 4.

Try Calculator →

Common Error Messages (and What They Mean)

HTTP 410 — Gone

The model ID claude-4-opus or claude-4-sonnet no longer exists. Replace with claude-opus-4-8 or claude-sonnet-4-6.

"model not found" Error

Same root cause — the model has been removed from Anthropic's API. Update your model ID string.

OpenRouter / Bedrock Errors

If you access Claude 4 through a third party, check their dashboard. Most providers have already removed Claude 4 from their available models list.

LangChain and LlamaIndex Users

Update your model string in the chat instantiation:

# LangChain
chat = ChatAnthropic(model="claude-opus-4-8")  # was "claude-4-opus"

# LlamaIndex
llm = Anthropic(model="claude-opus-4-8")  # was "claude-4-opus"

Both libraries use the same underlying SDK — only the model ID changes.

Why Claude Opus 4.8?

Claude Opus 4.8 is the official successor to Claude 4 Opus. It offers:

Fix Your App Now

Use the APIpulse cost calculator to see exactly how much you'll save, then update your model ID. It takes 30 minutes — your app will be back online and cheaper.

Calculate Your Savings →

Frequently Asked Questions

Can I still use Claude 4 somehow?

No. All API endpoints for Claude 4 Opus and Claude 4 Sonnet return 410 Gone. There is no degraded mode, no grace period, no workaround. The models are permanently retired.

Will my prompts work the same on Claude Opus 4.8?

Yes. Claude Opus 4.8 uses the same API format and responds to the same prompts. You may see slightly different outputs (it's a newer model), but your existing prompts will work without modification.

What if I have fine-tuned Claude 4 models?

Fine-tuned models are also dead. You'll need to re-fine-tune on Claude Opus 4.8 or Claude Sonnet 4.6. Contact Anthropic support for guidance on transferring fine-tuned weights.

Is it worth switching to a cheaper provider like DeepSeek?

It depends on your quality requirements. DeepSeek V4 Pro is 97% cheaper and handles most tasks well, but Claude Opus 4.8 may be better for complex reasoning. Use the APIpulse comparison tool to test both against your use case.

Pro

Never Get Caught by a Deprecation Again

APIpulse monitors 88 models across 10 providers and alerts you 30 days before any deprecation.

Free Tools →

🎯 Rate Your API Setup in 30 Seconds

Get an A+ to F grade on your AI API costs. See how you compare and find cheaper alternatives instantly.

Get Your Cost Score →

📊 Generate Your Personalized API Cost Report

Select your model, enter your monthly spend, and get a custom savings report with cheaper alternatives — free, in 60 seconds.

Related Reading

5 Cheaper Claude Alternatives → Save 40-98%
💸 Looking for Sonnet 4.6 Alternatives?
5 models ranked by cost — some are 90% cheaper.
See 5 Sonnet 4.6 Alternatives →
💸 Looking for Opus 4.8 Alternatives?
5 models ranked by cost — some are 98% cheaper.
See 5 Opus 4.8 Alternatives →
💸 Looking for Llama 4 Maverick Alternatives?
5 models ranked by cost — some are 95% cheaper.
See 5 Llama 4 Maverick Alternatives →
🔧 Free Embeddable Pricing Widget
Add live AI API pricing to your docs, blog, or README with one script tag. 88 models, auto-updating.
Get the Free Widget → Free MCP Server →

Stop guessing — get exact API cost comparisons

No signup required to 67-model comparison, migration code snippets, PDF reports, price alerts, and cost monitoring. ✅ All tools free.

Free Tools →