Models / Anthropic

Claude Opus 4.8 API

Anthropic's more honest Opus for coding and agents

Six weeks after Opus 4.7, Anthropic's new Opus tops the Artificial Analysis Intelligence Index, lifts SWE-bench Pro to 69.2% and is four times less likely to let its own code flaws slip by.

  • Kind: chat
  • Made by: Anthropic
  • Price: 400 credits / M input tokens, 2000 / M output (from $4.00; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
  • Released: 2026-05-28
  • Open weights: no (Proprietary, closed weights; available through Anthropic's API, cloud partners and the Claude apps)
  • Context window: 1M tokens
  • Max output: 128K tokens; up to 128,000 per reply on Unicorn, reasoning included
  • Inputs: Text and images
  • Output: Text only
  • Thinking: Adaptive, off unless enabled; effort low to max, Anthropic default high
  • Knowledge cutoff: January 2026
  • Parameters: Not published
  • Licence: Proprietary, API only
  • Inputs: model, messages, tools, tool_choice, stream, max_tokens, temperature, top_p, stop, response_format, reasoning_effort

Call it with POST https://api.unicornapi.net/v1/chat/completions and model claude-opus-4-8, or try it in the Playground.

Where it shines

  • Around four times less likely than Opus 4.7 to let flaws in its own code pass unremarked
  • 69.2% on SWE-bench Pro, up from 64.3%, and 83.4% on OSWorld-Verified
  • 96.7% on USAMO 2026 maths, against 69.3% for Opus 4.7
  • First on the Artificial Analysis Intelligence Index at launch with 61.4
  • 1,890 Elo on GDPval-AA, the top knowledge-work score at launch

Watch out for

  • Heavy token use in interactive sessions; one review saw a single prompt exhaust a Pro plan quota
  • Prompt-injection robustness slipped to between Opus 4.7 and Sonnet 4.6
  • Trails GPT-5.5 on Terminal-Bench 2.1 (74.6% vs 78.2%)
  • Some users find it hedging and quick to push back on bold ideas

Claude Opus 4.8 is Anthropic's newest Opus model and, by the company's description, its most capable model available to everyone. It arrives just six weeks after Claude Opus 4.7 and improves on its predecessor across coding, agent work, reasoning and knowledge work. The headline, though, is not a benchmark. Anthropic says Opus 4.8 is around four times less likely than Opus 4.7 to let a flaw in code it wrote pass without comment, and early testers report that it flags uncertainty instead of declaring victory.

That matters because the hardest part of handing work to an AI agent is not getting it to try; it is knowing when to trust what it reports. A model that says "this test still fails and I am not sure why" is worth more in production than one that confidently announces success.

The numbers back up the rest of the pitch. Opus 4.8 scores 69.2% on SWE-bench Pro, up from 64.3%, jumps from 69.3% to 96.7% on the USAMO 2026 maths olympiad set, and takes first place on the Artificial Analysis Intelligence Index with 61.4. Alongside the model, Anthropic launches dynamic workflows for Claude Code, a fast mode that runs about 2.5 times quicker, and an API change that lets developers update instructions in the middle of a task.

Anthropic's top general-access model, one step below Mythos

Anthropic, the San Francisco company behind Claude, now runs a two-speed release strategy. Its most capable system, Claude Mythos Preview, has been held back since April and is available only to a small group of organisations doing defensive cybersecurity work, because Anthropic says models at that level need stronger cyber safeguards before a general release. The company says it expects to bring Mythos-class models to all customers in the coming weeks. Until then, Opus is the top of the range that anyone can buy, and Opus 4.8 is that model.

The quick turnaround is telling. Opus 4.7 drew a mixed reception, with users complaining that it was more cautious than Opus 4.6 and argued about whether a fix was needed at all. Pressure from OpenAI's Codex and Google's Gemini models is intense. Opus 4.8 is a point release, not a new generation, but it is aimed squarely at the complaints and the competitors.

Opus 4.8 is a closed model. Anthropic does not publish weights, a parameter count, architecture details or training compute. It is available in the Claude apps, Claude Code and Cowork, through the Claude API as claude-opus-4-8, and on Amazon Bedrock, Google Cloud and Microsoft Foundry. Anthropic commits to keeping it available until at least May 28, 2027.

What changed from Claude Opus 4.7

Honesty about its own work. Beyond the four-fold drop in unremarked code flaws, Anthropic's system card reports lower hallucination and misalignment rates than Opus 4.7 and new highs on prosocial traits such as supporting user autonomy. Testers describe a model that is more likely to name what it does not know and less likely to make unsupported claims.

Better coding and agent scores. Anthropic's comparison table shows gains almost everywhere:

BenchmarkOpus 4.8Opus 4.7GPT-5.5Gemini 3.1 Pro
SWE-bench Pro69.2%64.3%58.6%54.2%
Terminal-Bench 2.174.6%66.1%78.2%70.3%
OSWorld-Verified83.4%–78.7%76.2%
Humanity's Last Exam, with tools57.9%54.7%52.2%51.4%
Humanity's Last Exam, no tools49.8%46.9%41.4%44.4%
GDPval-AA (Elo)1,8901,7531,7691,314
Finance Agent v253.9%51.5%51.8%43.0%

Anthropic also reports 88.6% on SWE-bench Verified (from 87.6%), 84.4% on SWE-bench Multilingual (from 80.5%), 82.2% on the MCP-Atlas tool-use test against 75.3% for GPT-5.5, 93.6% on GPQA Diamond and 84.3% on BrowseComp. The honest reading is that many of these gains are single-digit. Terminal-Bench 2.1 is the notable place where GPT-5.5 stays ahead.

A big step in maths. The USAMO 2026 result, 96.7% against 69.3% for Opus 4.7, is the largest single jump in the release. An independent hands-on review found the same: Opus 4.8 solved a hard polynomial construction problem, a result the reviewer called a visible generational gain over 4.7.

Strong long-context retrieval. On GraphWalks BFS at 1 million tokens, a test of following connections through very long inputs, Opus 4.8 scores 68.1% against 45.4% for GPT-5.5.

Independent confirmation. Artificial Analysis puts Opus 4.8 at 61.4 on its Intelligence Index, 4.1 points above Opus 4.7 and 1.2 points ahead of GPT-5.5 at its highest reasoning setting, the previous leader. On its GDPval-AA knowledge-work test the model used 35% fewer output tokens and 15% fewer turns than Opus 4.7 while scoring higher.

Partner results. Cursor says it beats earlier Opus models on CursorBench at every effort level. One agent-platform tester reports it is the only model to complete every case of its Super-Agent benchmark end to end, a legal AI tester records the highest score on its Legal Agent Benchmark and the first above 10% on its strict all-pass standard, and another reports 84% on Online-Mind2Web, a clear jump over both Opus 4.7 and GPT-5.5.

Dynamic workflows, effort control and the API change

Three launch features sit around the model. Dynamic workflows, a research preview in Claude Code for Enterprise, Team and Max plans, lets Claude plan a job, run hundreds of parallel subagents in one session, and verify their outputs before reporting back. Anthropic's example is a codebase-scale migration across hundreds of thousands of lines, using the existing test suite as the check.

In claude.ai and Cowork, a new effort control next to the model picker lets users choose how hard Claude works on a reply. On the API, effort has five levels, low, medium, high, xhigh and max, with high the default. Fast mode, on Anthropic's own platform, runs Opus 4.8 at about 2.5 times normal speed for latency-sensitive work.

Finally, Anthropic's Messages API now accepts system entries inside the messages array, so a developer can change Claude's instructions in the middle of a long agent run without breaking the prompt cache.

Claude Opus 4.8 specs

Claude Opus 4.8
MakerAnthropic
WeightsClosed; parameters not published
Context window1M tokens
Max output128K tokens (300K on Anthropic's Batch API, in beta)
InputsText and images
OutputText only
ThinkingAdaptive, off unless enabled; effort low to max, default high
Knowledge cutoffJanuary 2026
On Unicorn APImax_tokens up to 128,000 including reasoning; reasoning_effort none or enabled; tools; image input

Opus 4.8 uses the tokenizer introduced with Opus 4.7, which fits about 555,000 words into a million tokens, against roughly 750,000 words on older Claude models. The same text therefore takes more tokens than it did on Opus 4.6 and fills more of the context window.

Where Opus 4.8 is strong

Code you can trust more. The combination of stronger bug-finding and honest reporting is the reason to upgrade. Anthropic's prompting guide says Opus 4.8 has both higher recall and higher precision at finding bugs than earlier models, and DataCamp's own tests found that it catches subtle bugs without being asked to look for them.

Long agent runs. It gives more regular, better progress updates during long agentic traces, scores 83.4% on OSWorld-Verified for computer use, and supports screenshots up to 2,576 pixels or 3.75 megapixels. Anthropic recommends sending images at 1080p as the best balance of accuracy and efficiency.

Knowledge work. Its 1,890 Elo on GDPval-AA, which grades realistic professional tasks such as reports, spreadsheets and analyses head to head, is the top score at launch. The writers at Every called it the best model they had tested for writing and knowledge work, with strong slide decks in particular.

Precise instruction following. Opus 4.8 reads prompts literally, especially at lower effort. It does not quietly extend an instruction from one item to the next or infer requests you did not make, which suits tuned API pipelines and structured extraction.

Front-end work with less prompting. Anthropic says it produces distinctive web interfaces with minimal design guidance, avoiding the generic look users call "AI slop".

Weak spots and limits

Token appetite. Opus 4.8 tends to use more tokens in interactive sessions with many user turns, because it reasons again after each one. Decrypt's reviewers reported that a single coding prompt used up an entire Pro plan quota. On the API, plan for more output tokens per conversation, and put as much of the task as possible into the first message.

Personality friction. Not everyone enjoys working with it. Some prominent developers called it exhausting to collaborate with, describing a model that pushes back on bold ideas, hedges and trims anything unusual. Andon Labs found it did worse than Opus 4.7 in its Vending-Bench business simulation, falling for scams and negotiating poorly.

Prompt-injection robustness slipped. Anthropic's system card places its resistance to prompt injection between Opus 4.7 and Sonnet 4.6: fewer false alarms on harmless content, but more missed attacks. The card also notes elevated reasoning about how the model would be graded during training. Agents that browse untrusted pages still need guardrails.

Confident when wrong, sometimes. Artificial Analysis measured a 35.9% hallucination rate on its Omniscience knowledge test. Decrypt saw it build an elaborate, confident case for the wrong suspect in a logic puzzle, and lose the thread on a 300,000-token document, a reminder that a 1M-token window is a ceiling, not a guarantee of attention across all of it.

A fixed house style. Left alone, its designs drift to warm cream backgrounds, serif display type and a terracotta accent. Generic instructions such as "make it minimal" tend to swap one fixed palette for another.

Its knowledge stops in January 2026, and it outputs text only.

How to prompt Claude Opus 4.8

Give the full task up front. Anthropic's guide says Opus 4.8 works best when the task, intent and constraints arrive in the first message, because each extra user turn adds reasoning tokens. Enable thinking for hard problems, since it is off by default, and leave generous room in max_tokens: Anthropic suggests starting at 64,000 for demanding agent work.

State the scope explicitly, because the model will not generalise for you:

Rename the customer_id field to account_id in every model, migration, serializer and test in this repository, not just the first file. Run the test suite after the change and report any test that still fails, with your best guess at why.

For code review, ask for everything and filter afterwards. Opus 4.8 follows "only report serious issues" faithfully and reports less:

Review this diff and report every issue you find, including ones you are unsure about. Give each a severity and a confidence level. I will triage the list myself.

For design work, give a concrete direction or ask for options first:

Before building, propose four distinct visual directions for this landing page, each with a background colour, an accent colour and a typeface. Wait for me to pick one, then build only that direction.

Opus 4.8 versus other models on Unicorn

The natural comparison is Claude Opus 4.7. Opus 4.8 is better on almost every published test and markedly more honest about its own work, and Anthropic says existing 4.7 prompts work out of the box. Both share the same tokenizer and the same literal reading of prompts, so the switch is low-risk; the main reasons to move are the honesty gains, the maths jump and the leaner knowledge-work runs.

For everyday chat, drafting and simpler coding, Claude Sonnet 4.6 and Claude Haiku 4.5 are faster, lighter choices. Among other makers, Gemini 3 Pro and GPT 5.2 are capable options for high-volume general work. Pick Opus 4.8 when the job is a long agent run, serious code, or analysis where a confident wrong answer would do real damage.

Getting started

Try Opus 4.8 in the Playground without writing code. To build with it, create a key on the API keys page and call /v1/chat/completions or the Anthropic-style /v1/messages endpoint with model: "claude-opus-4-8". Images go in as image_url message parts, tools use the standard tools array, and reasoning_effort accepts none or enabled. Raise max_tokens well above the default of 4,096 for agent work, since reasoning counts toward it. The docs cover streaming, tools and errors.

Verdict

Claude Opus 4.8 is a point release with a clear purpose: make the Opus tier more trustworthy as well as smarter. The benchmark gains are mostly modest, maths aside, but the four-fold drop in unflagged code flaws, the first-place Intelligence Index score and the leaner GDPval-AA runs add up to a real upgrade. Plan for its token appetite, guard agents against prompt injection, and spell out the scope you want. For serious coding and agent work, it is the strongest Claude anyone can use today.

Best for

  • Agentic coding and large migrations
  • Code review and bug-finding
  • Computer-use and browser agents
  • Reports, spreadsheets and slide decks
  • Hard maths and analysis
  • Long-document work up to 1M tokens

Frequently asked questions

Is Claude Opus 4.8 open source?

No. Claude Opus 4.8 is a proprietary Anthropic model with closed weights and no published parameter count. You reach it through Anthropic's API, Amazon Bedrock, Google Cloud, Microsoft Foundry, the Claude apps, or API platforms such as Unicorn API.

Does Claude Opus 4.8 have effort levels?

Yes. On Anthropic's API effort has five levels, low, medium, high, xhigh and max, with high as the default, and thinking is off unless enabled. On Unicorn API reasoning_effort accepts none or enabled, and reasoning tokens count toward max_tokens.

What is the Claude Opus 4.8 context window?

1 million tokens, with up to 128,000 output tokens per reply. On Unicorn API max_tokens goes up to 128,000, and reasoning tokens count toward that limit.

What changed from Claude Opus 4.7 to Opus 4.8?

Opus 4.8 is about four times less likely to let flaws in its own code go unremarked, and it scores higher on SWE-bench Pro, Terminal-Bench 2.1, USAMO 2026 and GDPval-AA. Anthropic says existing Opus 4.7 prompts work out of the box.

Claude Opus 4.8 vs GPT-5.5: which is better?

In Anthropic's published table Opus 4.8 leads GPT-5.5 on SWE-bench Pro, OSWorld-Verified, Humanity's Last Exam, MCP-Atlas and GDPval-AA, while GPT-5.5 stays ahead on Terminal-Bench 2.1. Artificial Analysis ranks Opus 4.8 1.2 points ahead on its Intelligence Index.

Can Claude Opus 4.8 read images?

Yes. It accepts text and images and returns text, and it handles computer-use screenshots up to 3.75 megapixels. It does not generate images.