Claude Opus 4.8 vs Claude Opus 5: Should you upgrade?
Summary
Derived from sourced facts, not from builder opinions- Opus 5 costs the same as Opus 4.8: $5 input and $25 output per million tokens.
- With Claude Code as the agent, Opus 5 scored 53.94% on Terminal-Bench 4.0. Opus 4.8 scored 23.64%.
- One breaking change: on Opus 5, turning thinking off at xhigh or max effort returns a 400 error.
- Both are now legacy models. Anthropic suggests moving to Opus 5.5, which costs less than either.
Choose Claude Opus 4.8 if
Choose Claude Opus 5 if
Follow both to get an email when either one changes its price, limits or behavior.
Best by task
Agentic coding (Terminal-Bench 4.0 official board, both in Claude Code)
Claude Opus 5
Agentic coding (Terminal-Bench 4.0, Vals AI, Mini-SWE-agent harness)
Claude Opus 5
SWE-bench Verified (Vals AI, Mini-SWE-agent harness, archived)
Claude Opus 5
Overall capability (Epoch Capabilities Index)
Tied
Cost per solved task on Terminal-Bench 4.0 (Vals AI, API prices)
Claude Opus 5
Cost
One request in an agent loop that rereads a repository, so most input is cached. A full task makes many such requests. Illustrative, not measured.
$0.170 per request
$0.170 per request
Estimate per request: (input × input rate + cached input × cached rate + output × output rate) ÷ 1,000,000, at list prices on the cited pricing pages. It is not a measured task cost: models use different numbers of tokens, including reasoning tokens, for the same task.
Side by side
Scores appear side by side only when both were published for the same test. Settings differ between sources, so small gaps can reverse under another harness.
Updates
Both Claude Opus 4.8 and Claude Opus 5
Claude Opus 4.8
Switching checklist
- Change the model ID from claude-opus-4-8 to claude-opus-5 (on Bedrock, anthropic.claude-opus-5).
- Search your code for thinking set to disabled together with effort xhigh or max. That returns a 400 error on Opus 5.
- Check prompts that depend on recent events: Opus 5 knows events through May 2026, Opus 4.8 through January 2026.
- Keep your budget: both cost $5 input and $25 output per million tokens, with the same cache and batch discounts.
- Rerun your evaluation set and compare cost per finished task, not cost per token.
- Consider going straight to Opus 5.5. From Opus 4.8 its migration guide adds that thinking cannot be turned off, Priority Tier is not supported and max_tokens should be at least 64k at xhigh or max effort.
FAQ
Is Claude Opus 5 more expensive than Opus 4.8?
No. Both cost $5 input and $25 output per million tokens.
Is Opus 5 better at coding than Opus 4.8?
On Terminal-Bench 4.0 in Claude Code, Opus 5 scored 53.94% and Opus 4.8 scored 23.64%.
When will Claude Opus 4.8 be retired?
No retirement is announced. Anthropic lists Opus 4.8 as legacy, retiring no sooner than May 28, 2027, with at least 60 days' notice.
Should I skip Opus 5 and move to Opus 5.5?
Anthropic's Opus 4.8 page suggests migrating to Opus 5.5, which costs $4 and $20 per million tokens.
Which has the newer knowledge cutoff?
Opus 5: May 2026, against January 2026 for Opus 4.8.
Do Opus 4.8 and Opus 5 have the same context window?
Yes. Both take 1M tokens with 128K of output, or 300K on the Batch API with a beta header.
Which costs less per test?
Opus 4.8, at $17.14 per test against $18.60 for Opus 5 in Vals AI's Terminal-Bench 4.0 run, where Opus 5 scored more than twice as high.