If you're reading this because your app broke — you're not alone. Thousands of developers woke up to 410 errors on June 15. The good news: you can fix this in 15 minutes. This guide covers what happened, why it happened, and the fastest path to getting your app back online.

410
HTTP status code you're seeing — "Gone" — means the resource was permanently removed

What Happened to Claude 4?

On June 15, 2026, Anthropic officially retired Claude 4 Opus and Claude 4 Sonnet. These models were deprecated weeks in advance, with a clear timeline communicated to developers. Here's the timeline:

The models aren't coming back. Anthropic has fully transitioned to the 4.x generation (Opus 4.8, Sonnet 4.6) and has no plans to restore access to Claude 4.

Why Is My App Breaking?

If your application was using claude-4-opus or claude-4-sonnet as the model ID, every API call now fails. There's no degraded mode, no fallback, and no partial functionality. It's a hard stop.

Common symptoms:

What the error looks like

If you're using the Anthropic SDK, here's the exact error you'll see:

// Python (anthropic SDK)
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
    model="claude-4-opus",  # ← This is the problem
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}]
)
# Raises: anthropic.NotFoundError: Error code: 410 -
# {'type': 'error', 'error': {'type': 'not_found_error',
# 'message': 'claude-4-opus has been retired. Please upgrade to
# claude-opus-4-8. See https://docs.anthropic.com/docs/deprecations'}}

// Node.js (@anthropic-ai/sdk)
const response = await client.messages.create({
    model: "claude-4-sonnet",  // ← Deprecated
    max_tokens: 1024,
    messages: [{ role: "user", content: "Hello" }]
});
// Error: 410 model_not_found
// "claude-4-sonnet is no longer available. Use claude-sonnet-4-6."

// curl
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -d '{"model":"claude-4-opus","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
# HTTP/1.1 410 Gone
# {"type":"error","error":{"type":"not_found_error","message":"claude-4-opus has been retired"}}

The key detail: HTTP 410 Gone (not 404, not 500). The "Gone" status code specifically means the resource was permanently removed and will never return. This is different from a temporary outage.

The 15-Minute Fix

Migrating from Claude 4 is the simplest model migration you'll ever do. The API format, SDK, authentication, and parameters are identical. You change one string:

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 deprecated model IDs. Don't forget config files, environment variables, and documentation.

2

Update Model IDs

Replace the deprecated model name with the official successor:

// Before (returns 410 Gone)
model: "claude-4-opus"

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

// Or for Sonnet:
model: "claude-sonnet-4-6"

No other code changes needed. Same API, same key, same parameters. Your existing API key works as-is.

3

Test and Deploy

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

💡 APIpulse

Calculate your new costs instantly

See exactly what you'll pay with Claude Opus 4.8 vs alternatives. Free calculator — upgrade for alerts.

Try Calculator →

Claude 4 vs What's Available Now

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

Claude 4 Opus (DEAD)
$15 / $75
Permanently offline · HTTP 410
Claude Opus 4.8 (successor)
$5 / $25
67% cheaper · Same API format
Claude 4 Sonnet (DEAD)
$6 / $30
Permanently offline · HTTP 410
Claude Sonnet 4.6 (successor)
$3 / $15
50% cheaper · Same API format

Best Claude 4 Alternatives (Ranked by Value)

You have more options than ever after the Claude 4 shutdown. Here are the top alternatives ranked by cost-effectiveness:

🥇 DeepSeek V4 Flash
$0.14 / $0.28
99% cheaper · Fastest option
🥈 DeepSeek V4 Pro
$0.44 / $0.87
97% cheaper · Near-Opus quality
🥉 Gemini 3.1 Pro
$1.25 / $5
92% cheaper · 1M context window
4. GPT-5.5 Pro
$2.50 / $10
83% cheaper · OpenAI ecosystem

Want to see all 67 alternatives with live pricing? Check our Claude 4 Migration Hub — it has 18 head-to-head comparisons, migration calculators, and code snippets for every alternative. Or use our Migration Advisor to find your cheapest option in 60 seconds.

See our ranked comparison of the best Claude 4 replacements →

Key Questions After the Shutdown

Will Anthropic bring back Claude 4?

No. The shutdown is permanent. Anthropic has fully transitioned to the 4.x generation. The model IDs claude-4-opus and claude-4-sonnet will never return. Focus on migrating to Opus 4.8, Sonnet 4.6, or an alternative provider.

Does my API key still work?

Yes, if you're staying with Anthropic. Your existing API key works with Claude Opus 4.8 and Sonnet 4.6 — you just change the model name string. If you're switching to a different provider (DeepSeek, OpenAI, Google), you'll need a new API key from that provider.

What if I already migrated but still see errors?

Double-check that you updated the model ID string everywhere — including config files, environment variables, and any hardcoded strings. Run the grep command above to find any remaining references. Also verify your API key has sufficient credits/quota.

Is there a drop-in replacement with zero code changes?

If you were using claude-4-sonnet, the closest drop-in is claude-sonnet-4-6 — same context window, same output quality, 50% cheaper. For claude-4-opus, use claude-opus-4-8. These are the official Anthropic successors with identical API formats.

Calculate Your New Costs

See exactly what you'll pay after migration. Compare Claude Opus 4.8, Sonnet 4.6, DeepSeek, GPT-5.5, and Gemini — all with real-time pricing.

Open Cost Calculator →

Don't just migrate — optimize

Most developers pick the first replacement they find. You get personalized model routing recommendations — use cheap models for 80% of tasks, premium models only when needed. Save up to 40% on your new provider.

Free Tools → Free Tools →

No signup required · 100% free

💸 Looking for DeepSeek V4 Flash Alternatives?
5 models ranked by cost — some offer better quality at similar prices.
See 5 DeepSeek V4 Flash Alternatives →
💸 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 →
💸 Looking for Gemini 3.1 Pro Alternatives?
5 models ranked by cost — some are 95% cheaper.
See 5 Gemini 3.1 Pro 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 →

💡 Looking for Cheaper Claude Alternatives?

5 Cheaper Claude Alternatives → Save 40-98%