Back to Models

Claude Opus 4.8

anthropicanthropic/claude-opus-4.8

Latest Anthropic flagship Opus model β€” frontier reasoning and tool use, available via partner network.

Claude Opus 4.8 is Anthropic's most capable generally available Opus model, released May 28, 2026. Anthropic describes it as 'a modest but tangible improvement' over Opus 4.7, but the benchmark numbers are less modest than the framing: 88.6% on SWE-bench Verified (up from 87.6%), 69.2% on SWE-bench Pro (up from 64.3%), and 74.6% on Terminal-Bench 2.1 (up from 66.1%). Pricing is unchanged at the same input/output rates as Opus 4.7.

Three changes matter most for TheRouter operators. First, the effort default is now high on all surfaces including the Claude API and Claude Code β€” if you were relying on an implicit xhigh default from Opus 4.7, you will need to set it explicitly. Second, fast mode (speed: 'fast') launches for Opus 4.8 at 3x lower cost than the Opus 4.7 fast mode preview, making 2.5x throughput lifts much easier to justify. Third, the minimum cacheable prompt length drops to 1,024 tokens β€” shorter agentic system prompts that previously couldn't warm a cache now can.

Best for
  • β€’ Long-horizon agentic coding: Databricks reports Opus 4.8 in Genie handles deeper multistep questions faster than any prior Opus, at 61% lower token cost vs Opus 4.7
  • β€’ High-stakes document workflows: legal benchmarks show Opus 4.8 is the first model to break 10% on the Legal Agent all-pass standard, with better citation precision vs Opus 4.7
  • β€’ Computer use and browser agents: Browserbase reports 84% on Online-Mind2Web, a meaningful jump over both Opus 4.7 and GPT-5.5
  • β€’ Shorter agentic system prompts that need prompt caching β€” the 1,024-token minimum (down from 2,048) makes caching effective for system prompts that were previously too short
Reach for something else if
  • β€’ Cost-bound high-volume tasks β€” Opus 4.8 pricing is unchanged from Opus 4.7; for cheap and capable coding route to DeepSeek V3.2 or Qwen3-Coder-480B
  • β€’ Sub-second latency chat β€” even at high effort Opus 4.8 has non-trivial TTFT; route to Claude Haiku 4.5 or Claude Sonnet 4.6 for real-time chat
Context Length
200K
Max Output
32K
Input Priceper 1M tokens
$5.40/ 1M tokens
Output Priceper 1M tokens
$27.00/ 1M tokens

Modalities

textimage→text

Capabilities

Vision

Pricing Breakdown

TypeRate
Input$5.40 / 1M tokens
Output$27.00 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

Specifications

Release date2026-05-28www.anthropic.com β†—verified
Anthropic model idclaude-opus-4-8platform.claude.com β†—verified
Training cutoffNot publicly disclosedunknown
Effort defaulthigh (all surfaces, including Claude API and Claude Code)platform.claude.com β†—verified
Minimum cacheable prompt length1,024 tokens (down from 2,048 on Opus 4.7)platform.claude.com β†—verified
Fast modeAvailable (speed: 'fast'); up to 2.5x output tokens/sec; 3x cheaper than Opus 4.7 fast mode previewplatform.claude.com β†—verified
Mid-conversation system messagesSupported (role: 'system' accepted after user turns, no beta header required)platform.claude.com β†—verified
DeploymentAnthropic API (1M token context), Amazon Bedrock, Google Cloud Vertex AI, Microsoft Foundry (200k context)platform.claude.com β†—verified
LicenseAnthropic Usage Policy (proprietary, API-only)verified

Benchmarks

BenchmarkDistributionScoreSource
SWE-bench Verified
Up from 87.6% on Opus 4.7. Gemini 3.1 Pro scores 80.6%.
88.6%%www.vellum.ai β†—
SWE-bench Pro
Up from 64.3% on Opus 4.7; GPT-5.5 58.6%, Gemini 3.1 Pro 54.2%.
69.2%%www.vellum.ai β†—
Terminal-Bench 2.1
Up from 66.1% on Opus 4.7 on the Terminus-2 harness. GPT-5.5 scores 78.2% on same harness, 83.4% on OpenAI's own Codex CLI harness.
74.6%%www.vellum.ai β†—
Humanity's Last Exam (with tools)
Up from 54.7% on Opus 4.7. Without tools: 49.8% (Opus 4.7: 46.9%). GPT-5.5 52.2% with tools.
57.9%%www.vellum.ai β†—
OSWorld-Verified
Computer-use on live Ubuntu VM. Up from 82.8% on Opus 4.7 (score updated after a bug fix). GPT-5.5 78.7%, Gemini 3.1 Pro 76.2%.
83.4%%www.vellum.ai β†—
GPQA Diamond
Slightly below Opus 4.7 (94.2%) and Gemini 3.1 Pro (94.3%). Effectively statistical noise β€” this benchmark is saturated.
93.6%%www.vellum.ai β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "anthropic/claude-opus-4.8",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat completion

Standard chat call. TheRouter exposes Anthropic models through the OpenAI-compatible /v1/chat/completions surface.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-opus-4.8","messages":[{"role":"user","content":"Refactor this Python function for clarity."}]}'

More from anthropic

Similar models

Cross-provider sibling models
openai/gpt-5.5
OpenAI's competitive flagship; Anthropic reports Opus 4.8 leads on SWE-bench Pro (+10 points) and HLE with tools.
google/gemini-3.1-pro

Not in the current catalog; the description below is historical.

Google's competitive flagship; Gemini 3.1 Pro scores 80.6% on SWE-bench Verified vs Opus 4.8's 88.6%.

Browse the current model catalog
deepseek/deepseek-v3.2
Open-weight alternative β€” DeepSeek V3.2; much cheaper, strong for routine coding tasks.

News & changes

2026-05-28

Anthropic launches Claude Opus 4.8 with fast mode at 3x lower cost and 1,024-token cache minimum

TheRouter routes Opus 4.8 traffic from day one. Key operator changes: effort default is now high (not xhigh) on all surfaces β€” audit your agentic system prompts before switching. Fast mode (speed: 'fast') is available at 3x lower cost than the Opus 4.7 preview, making 2.5x throughput commercially viable. Prompt caching minimum drops to 1,024 tokens, meaning shorter system prompts now warm the cache automatically.

re-authored by TheRouteranthropic.com/news β†—
2026-05-28

Dynamic workflows launch in Claude Code: hundreds of parallel subagents for codebase-scale migrations

Dynamic workflows (research preview) ships alongside Opus 4.8 in Claude Code for Enterprise, Team, and Max plans. Claude can plan and then run hundreds of parallel subagents in a single session, verify outputs, and complete codebase-scale migrations across hundreds of thousands of lines from kickoff to merge β€” using the existing test suite as its bar.

re-authored by TheRouterclaude.com/blog β†—

Related news

Frequently asked

What changed from Opus 4.7 to Opus 4.8?

Four things matter most for API users. (1) Benchmarks improved: SWE-bench Verified 88.6% (was 87.6%), SWE-bench Pro 69.2% (was 64.3%), Terminal-Bench 2.1 74.6% (was 66.1%). (2) Effort default changed from xhigh to high on all surfaces β€” set xhigh explicitly if needed. (3) Fast mode (speed: 'fast') is 3x cheaper than the Opus 4.7 preview. (4) Prompt cache minimum dropped to 1,024 tokens. Pricing is unchanged.

Does Opus 4.8 support extended thinking with budget_tokens?

No. Like Opus 4.7, setting thinking: {type: 'enabled', budget_tokens: N} returns a 400 error. Use adaptive thinking with the reasoning.effort parameter (low/medium/high/xhigh/max). The default on Opus 4.8 is high.

What is mid-conversation system messages and why does it matter for agentic loops?

Opus 4.8 accepts role: 'system' messages immediately after a user turn in the messages array. In practice this means you can inject updated instructions mid-session without restating your full system prompt β€” the earlier turns stay in the prompt cache, reducing input token cost on long-running agent loops. No beta header is required.

Is Opus 4.8 better than GPT-5.5 for coding?

On the benchmarks Anthropic publishes: yes, Opus 4.8 leads on SWE-bench Verified (88.6% vs GPT-5.5 ~58%), SWE-bench Pro (69.2% vs 58.6%), HLE with tools (57.9% vs 52.2%), and OSWorld-Verified (83.4% vs 78.7%). On Terminal-Bench 2.1 (apples-to-apples Terminus-2 harness), GPT-5.5 leads 78.2% to 74.6%. The benchmark methodology matters here β€” GPT-5.5's 83.4% Terminal-Bench headline used OpenAI's own Codex CLI harness, not the public one.

What is the pricing for Claude Opus 4.8 on TheRouter?

Pricing is unchanged from Opus 4.7: approximately $6 per million input tokens and $30 per million output tokens (TheRouter rates, see the pricing page for exact figures). Fast mode (speed: 'fast') carries a premium on top of the standard rate.

Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release datewww.anthropic.com β†—2026-06-24verified
Anthropic model idplatform.claude.com β†—2026-06-24verified
Training cutoffβ€”β€”unknown
Effort defaultplatform.claude.com β†—2026-06-24verified
Minimum cacheable prompt lengthplatform.claude.com β†—2026-06-24verified
Fast modeplatform.claude.com β†—2026-06-24verified
Mid-conversation system messagesplatform.claude.com β†—2026-06-24verified
Deploymentplatform.claude.com β†—2026-06-24verified
Licenseβ€”β€”verified
SWE-bench Verifiedwww.vellum.ai β†—2026-06-24verified
SWE-bench Prowww.vellum.ai β†—2026-06-24verified
Terminal-Bench 2.1www.vellum.ai β†—2026-06-24verified
Humanity's Last Exam (with tools)www.vellum.ai β†—2026-06-24verified
OSWorld-Verifiedwww.vellum.ai β†—2026-06-24verified
GPQA Diamondwww.vellum.ai β†—2026-06-24verified
Anthropic launches Claude Opus 4.8 with fast mode at 3x lower cost and 1,024-token cache minimumanthropic.com/news β†—2026-06-24verified
Dynamic workflows launch in Claude Code: hundreds of parallel subagents for codebase-scale migrationsclaude.com/blog β†—2026-06-24verified
What changed from Opus 4.7 to Opus 4.8?www.anthropic.com β†—2026-06-24to verify
Does Opus 4.8 support extended thinking with budget_tokens?platform.claude.com β†—2026-06-24to verify
What is mid-conversation system messages and why does it matter for agentic loops?platform.claude.com β†—2026-06-24to verify
Is Opus 4.8 better than GPT-5.5 for coding?www.vellum.ai β†—2026-06-24to verify
What is the pricing for Claude Opus 4.8 on TheRouter?www.anthropic.com β†—2026-06-24to verify
Help & contact