by Anthropic
Anthropic's May 2026 flagship for agentic coding and long-context analysis, now a legacy release that Anthropic says new projects should skip in favor of its newest Opus.
Anthropic keeps Claude Opus 4.8 available but recommends its newer successor for fresh builds. Opus 4.8 is the older and dearer of the two, with a January 2026 knowledge cutoff against June 2026. Stay on it only for evals or prompts already tuned to it, and plan a move before it retires in 2027.
| Job | Input | Output | Total |
|---|---|---|---|
| Summarise a 20-page PDF | $0.150 | $0.025 | $0.175 |
| Support reply | $0.010 | $0.0075 | $0.018 |
| One coding agent run | $1.00 | $0.500 | $1.50 |
Budgets: 20-page PDF = 30k in / 1k out · Support reply = 2k in / 300 out · Coding agent run = 200k in / 20k out. Computed from the vendor's per-token prices at render time; cached-input discounts are not applied.
Standard rate: $5 in, $25 out, per million tokens, and long prompts cost the same per token. Prompt caching: 5-minute cache writes $6.25, 1-hour writes $10, cache reads $0.50 per million. Fast mode (research preview, request access through an Anthropic account manager): $10 input and $50 output, up to 2.5x output speed, not available with the Batch API. Batch API: 50% off, so $2.50 and $12.50. Figures confirmed on 2026-10-24 against the vendor's published rate card.
Claude Opus 4.8 is Anthropic's May 2026 flagship model, now labelled a legacy release. It handles a million tokens of context and, per Anthropic's launch table, scores 88.6% on SWE-bench Verified. New projects should look at the newer Opus first; teams with pinned agentic coding evals can stay put.
Reads
Writes
1M Context Window
A million tokens per request at standard per-token pricing on all four major platforms, with a larger 300K output beta available through the Batch API.
Adaptive Thinking
Reasoning depth adjusts per request, with high as the default effort level and extra or max available for harder tasks.
Prompt Caching
Cached reads cost a small share of the base input rate, which suits agent loops that resend a long static system prompt.
Fast Mode (research preview)
Up to 2.5x higher output tokens per second at premium pricing, enabled with a beta header after contacting an Anthropic account manager.
Dynamic Workflows
A Claude Code feature (Enterprise, Team and Max plans, research preview) that plans a task, runs hundreds of parallel subagents and verifies their output before reporting back.
Pricier than 85% of the 111 GA models with a published price, in the top third on SWE-bench Verified (rank 5 of 39), and one of 42 that document a zero-data-retention option.
| Measure | This model | Rank | Median |
|---|---|---|---|
| Blended price (3:1)$ per 1M tokens | $10.00/M | #92 / 111 | peer median $1.71/M |
| SWE-bench Verified% solved | 88.6% | #5 / 39 | peer median 76.5% |
| GPQA Diamond% correct | 93.6% | #9 / 62 | peer median 87.6% |
Ranks are against GA models on Hokai that publish the same figure; ties share a rank.
A benchmark is an exam, not the job. Scores transfer unevenly between tasks, so weigh the one closest to your workload and read every figure with its source.
| Model | Lab | Context | In / out per 1M | Reads and writes |
|---|---|---|---|---|
| Anthropic | 1M | $5 / $25 | text, image, pdf → text | |
| Anthropic | 1M | $4 / $20 | text, image, pdf → text | |
| Anthropic | 1M | $5 / $25 | text, image, pdf → text | |
| OpenAI | 1.1M | $5 / $30 | text, image → text |
Training data
Trained on a curated mix of public web text, licensed datasets, and synthetic reasoning traces. Constitutional AI alignment plus RLHF. No training on user API inputs by default.
| Name | Endpoint | Auth |
|---|---|---|
| Anthropic API | https://api.anthropic.com/v1/messages | API Key |
| AWS Bedrock | https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-anthropic-claude-opus-4-8.html | AWS IAM |
| Google Vertex AI | https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/claude | GCP IAM |
| Microsoft Foundry | https://foundry.microsoft.com/ | Azure Identity |
XML tags for structured input
<context>...</context><task>...</task>
Anthropic models follow XML consistently; XML nesting is more reliable than nested JSON in long prompts.
Adaptive thinking for calibrated reasoning
Include thinking={type: 'adaptive'} in API requestLets the model choose reasoning depth per query; saves tokens on trivial queries, adds depth where needed.
Fast mode returns a 400 error without the beta header
Workaround: Send the fast-mode-2026-02-01 beta header and ask your Anthropic account manager to enable research-preview access first.
Instructions that change mid-task can break the prompt cache if sent as user turns
Workaround: Send them as system entries inside the messages array, which the Messages API now accepts without invalidating the cache.
claude-opus-4-8-20260528 · 28 May 2026
Initial Opus 4.8 release with fast mode in research preview and Dynamic Workflows in Claude Code. Since superseded by Claude Opus 5.5 as Anthropic's recommended Opus model.
claude-opus-4-7-20260315 · 15 Mar 2026
Predecessor flagship. Standard pricing carried over unchanged to Opus 4.8.
At normal speed Claude Opus 4.8 bills $5 for each million input tokens and $25 for each million output tokens, and cache reads cost $0.50. Fast mode, still a research preview, charges $10 and $50. Batch jobs that can wait up to a day get 50% off.
Claude Opus 4.8 has no free API tier: every call is billed per token through the Claude API, Amazon Bedrock, Google Cloud or Microsoft Foundry. Teams that want to cut spend can lean on prompt caching and the Batch API, or step down to a cheaper Claude 5.5 model.
Anthropic labels Opus 4.8 legacy and recommends Opus 5.5 for new work. The newer model charges less per token and knows about events up to June 2026, against January for Opus 4.8. Keep Opus 4.8 only when your evals or prompts are already tuned to it, and plan the move before its 2027 retirement.
Opus 4.8 scores 74.6% on Terminal-Bench 2.1 in Anthropic's launch table. Anthropic notes that GPT-5.5 reaches 83.4% on the same test using its own Codex CLI tooling, so the two numbers come from different setups. Run both models on your own agent loop before choosing.
Use claude-opus-4-8 on the Claude API, anthropic.claude-opus-4-8 on Amazon Bedrock, and claude-opus-4-8 on Google Cloud, Microsoft Foundry and Claude Platform on AWS. Anthropic ships official SDKs, and each platform lists the full million-token window for this model.
Claude Opus 4.8 is the model Anthropic released on May 28, 2026 as its flagship, and it is now a legacy release. Anthropic's documentation keeps it available, with a retirement date no earlier than May 28, 2027, yet tells new projects to look at Claude Opus 5.5 first. Opus 4.8 followed Claude Opus 4.7 at an unchanged standard price and focused on agentic coding, honesty and long-running work. Weights are proprietary and the parameter count is not disclosed.
The launch table, as mirrored by the BenchLM aggregator, gives 88.6% on SWE-bench Verified, 69.2% on SWE-bench Pro, 74.6% on Terminal-Bench 2.1, 93.6% on GPQA Diamond, 96.7% on USAMO 2026 and 83.4% on OSWorld-Verified. Humanity's Last Exam reads 49.8% without tools and 57.9% with them. These are vendor-reported launch figures. Anthropic's own footnote says GPT-5.5 reaches 83.4% on Terminal-Bench 2.1 when run with its Codex CLI tooling, while Opus 4.8 was scored on the public Terminus-2 setup, so the headline gap depends on the test rig as much as the model.
A full million tokens fit in one request at ordinary per-token rates, whether you call it through Anthropic directly, Bedrock, Google Cloud or Microsoft Foundry. Anthropic's Foundry documentation lists the full 1M window for Opus 4.8 there too. Maximum output is 128K tokens, with a 300K beta on the Batch API. Input is text and images and output is text, so audio and video workflows need a separate model. The reliable knowledge cutoff is January 2026, five months behind the June 2026 cutoff of the Claude 5.5 models. Thinking is adaptive, with high as the default effort and extra or max available for harder jobs.
The honesty claim is the most distinctive one. Anthropic reports that Opus 4.8 is around four times less likely than its predecessor to let flaws in code it wrote pass unremarked, and it published a system card with the alignment assessment. Early testers quoted in the launch post, including the teams behind Devin, Databricks Genie, Hebbia and CoCounsel Legal, describe cleaner tool use and better flagging of weak inputs, though those are partner testimonials and not independent tests.
Who should not choose it: anyone starting a new build. Claude Opus 5.5 lists lower per-token prices and a newer cutoff, and Claude Fable 5.1 sits above it for the hardest reasoning. If latency or cost per call matters more than peak quality, Claude Sonnet 5.5 and Claude Haiku 5.5 are the cheaper steps down. Teams weighing other labs should test GPT-5.5 and Gemini 3.1 Pro on their own setup. The case for staying on Opus 4.8 is narrow but real: prompts and evals already tuned to it, a pinned version, and a retirement date still more than seven months out.
Specifications on this page (context window, token prices, benchmark scores, licence) are read from Anthropic's own model card and documentation. The verdict is Hokai's reading of them, not the provider's claim.