Models / Anthropic

Claude Opus 4.7 API

Anthropic's strongest public model, built to work unsupervised

Anthropic's best generally available model jumps to 64.3% on SWE-bench Pro, reads images at three times the resolution and checks its own work, but a new tokenizer and literal streak make it no drop-in swap.

  • Kind: chat
  • Made by: Anthropic
  • Price: 285 credits / M input tokens, 1430 / M output (from $2.85; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
  • Released: 2026-04-16
  • 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, thinking included
  • Inputs: Text and images up to 2,576 px on the long edge
  • Output: Text only
  • Thinking: Adaptive; effort low to max (new xhigh), 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-7, or try it in the Playground.

Where it shines

  • 64.3% on SWE-bench Pro, up from 53.4% for Opus 4.6 and ahead of GPT-5.4 and Gemini 3.1 Pro
  • Images up to 2,576 px on the long edge, more than three times the pixels of earlier Claude models
  • Hallucination rate on Artificial Analysis's Omniscience test cut from 61% to 36%
  • Top GDPval-AA score at launch, 1,753 Elo, and best result on Finance Agent
  • New xhigh effort level for finer control over long agentic runs

Watch out for

  • New tokenizer counts 1.0 to 1.35 times as many tokens for the same text
  • temperature, top_p and manual thinking limits are no longer accepted by Anthropic's API
  • Reads prompts literally; prompts tuned for Opus 4.6 need re-testing
  • Regressions on BrowseComp and long-context multi-needle retrieval

Claude Opus 4.7 is Anthropic's new flagship for everyone who cannot get into Claude Mythos Preview, which is almost everyone. It arrives ten weeks after Claude Opus 4.6 and is built around one promise: you can hand it long, hard work and supervise it less. Anthropic says it follows instructions more precisely, plans more carefully and checks its own output before it reports back.

The numbers support the pitch where it matters most to developers. On SWE-bench Pro, the harder version of the standard coding benchmark, Opus 4.7 scores 64.3%, up from 53.4% for Opus 4.6 and ahead of both GPT-5.4 and Gemini 3.1 Pro. It reads images at more than three times the resolution of earlier Claude models, and independent testers at Artificial Analysis measured its hallucination rate falling from 61% to 36%.

It is also the most disruptive Opus update in a while. A new tokenizer, the removal of temperature and manual thinking limits, and a much more literal reading of prompts mean Opus 4.7 is not a drop-in swap for Opus 4.6, and its first week brought loud complaints alongside the praise.

Anthropic's best public model, in Mythos's shadow

Anthropic, the San Francisco AI company behind Claude, launched Opus 4.7 nine days after announcing Project Glasswing, a program that gives Claude Mythos Preview, a stronger model, only to a small group of partners for defensive security work. Anthropic is unusually frank about the ranking: Opus 4.7 is its most capable generally available model, but it is "less broadly capable" than Mythos Preview, which beats it on almost every benchmark Anthropic published.

Cybersecurity explains the split. Anthropic says it worked during training to reduce Opus 4.7's cyber capabilities on purpose, and it ships the model with real-time safeguards that detect and block requests pointing to prohibited or high-risk security uses. Legitimate researchers, penetration testers and red teams can apply to a Cyber Verification Program for wider access. Anthropic presents the launch partly as a test of these safeguards before any broader Mythos release.

Opus 4.7 is a closed model. Anthropic publishes no weights, parameter count, architecture or training compute. It is available in the Claude apps and Claude Code, through the Claude API as claude-opus-4-7, and on Amazon Bedrock, Google Cloud Vertex AI and Microsoft Foundry. The system card says it is deployed under Anthropic's ASL-3 safety standard, like Opus 4.6.

What changed from Claude Opus 4.6

A big step in hard coding. The headline gains are on real software engineering tasks rather than puzzles:

BenchmarkOpus 4.7Opus 4.6GPT-5.4Gemini 3.1 ProMythos Preview
SWE-bench Pro64.3%53.4%57.7%54.2%77.8%
SWE-bench Verified87.6%80.8%–80.6%93.9%
Terminal-Bench 2.069.4%65.4%75.1%68.5%82.0%
MCP-Atlas (tool use)77.3%75.8%68.1%73.9%–
OSWorld-Verified78.0%72.7%75.0%–79.6%
Humanity's Last Exam, no tools46.9%40.0%–44.4%56.8%
CharXiv reasoning, no tools82.1%69.1%––86.1%

Launch partners report similar jumps. One measured 13% more tasks resolved than Opus 4.6 on its 93-task coding benchmark; Rakuten says Opus 4.7 resolves three times as many production tasks on its internal Rakuten-SWE-Bench; another partner saw code review recall improve by more than 10%.

Much sharper vision. Opus 4.7 accepts images up to 2,576 pixels on the long edge, about 3.75 megapixels and more than three times as many pixels as earlier Claude models. That matters for screenshots, dense charts, technical diagrams and chemical structures. One partner's visual-acuity test went from 54.5% with Opus 4.6 to 98.5%.

Knowledge work. Opus 4.7 posts the best score Anthropic recorded on the Finance Agent evaluation, 64.4% against 60.1% for Opus 4.6, and a partner reports 21% fewer errors when the model works from source documents. Artificial Analysis puts it first on GDPval-AA, its test of realistic professional tasks, at 1,753 Elo, 134 points above Opus 4.6 and 79 points above GPT-5.4.

More honest. On Artificial Analysis's Omniscience test the hallucination rate drops from 61% to 36%, mostly because Opus 4.7 declines to answer more often when it does not know. Its overall Intelligence Index score of 57 ties GPT-5.4 and Gemini 3.1 Pro for first place.

It checks its own work. The behaviour Anthropic stresses most is self-verification: Opus 4.7 tends to test and sanity-check results before declaring a task done, rather than handing back unchecked output.

Effort levels, adaptive thinking and the breaking changes

Opus 4.7 thinks adaptively: it decides how much to reason, steered by an effort setting. A new xhigh level sits between high and max, giving finer control over the trade between depth and latency, and Claude Code now defaults to it. The API default is high. Anthropic notes that the model thinks more at higher effort, especially on later turns of agentic runs, so it spends more output tokens in exchange for reliability. A new beta feature lets developers tell the model roughly how many tokens a whole agentic loop should use.

Three changes break existing code on Anthropic's API. Manually set extended-thinking limits are gone, and adaptive thinking is the only way to turn thinking on. Non-default temperature, top_p and top_k values return an error, so output style is steered by prompting alone. And the reasoning text is omitted from responses by default.

The fourth change is quieter: a new tokenizer. Anthropic says the same input now maps to roughly 1.0 to 1.35 times as many tokens, depending on content. The same document therefore fills more of the context window and leaves less room before the output limit.

Claude Opus 4.7 specs

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

Where Opus 4.7 shines

Long, multi-step engineering. Opus 4.7 is strongest when it is given a whole task and left to run: multi-file changes, refactors, debugging sessions that need several hypotheses. Testers report fewer regressions and better code quality, and one partner described it building a complete text-to-speech engine in Rust from scratch, checking its own work along the way.

Code review. Higher recall means it surfaces more of the subtle bugs that reviewers miss, and its more direct tone suits review comments.

Screenshots, charts and documents. The resolution increase is the biggest practical change for anyone feeding it UI screenshots, scanned forms, spreadsheets rendered as images or dense scientific figures. The CharXiv chart-reasoning score rises 13 points without tools.

Computer use and tool-heavy agents. It leads its public rivals on MCP-Atlas and OSWorld-Verified, and Anthropic says it makes fewer unnecessary tool calls and spawns fewer subagents by default, which keeps agent runs tidier.

Finance, legal and analytical writing. The Finance Agent and GDPval-AA results, plus partner reports on legal and financial analysis, point to a model that handles source documents carefully and admits uncertainty more readily.

Weak spots and limits

Not a drop-in upgrade. Prompts written for Opus 4.6 can produce surprises, because Opus 4.7 takes instructions literally instead of generalising from them. Anthropic itself advises re-tuning prompts and measuring on real traffic before switching.

More tokens for the same text. Between the tokenizer change and deeper thinking at high effort, the same job can use noticeably more tokens than it did on Opus 4.6, and many developers complained about it in the first days after launch.

Lost controls. Teams that relied on temperature: 0 for repeatable output, or on fixed thinking limits, lose both. Some users found adaptive thinking under-thinks questions they considered hard.

A rocky first week. A Reddit thread calling Opus 4.7 "not an upgrade but a serious regression" drew thousands of upvotes. Complaints centred on the model pushing back on simple edits with invented justifications, and on prose that leans on headers and bullet points where Opus 4.6 wrote flowing text. Others reported the opposite experience on complex tasks, so the reception split sharply by workload.

Two benchmark regressions. BrowseComp, an agentic web research test, falls from 83.7% to 79.3%, behind GPT-5.4 Pro and Gemini 3.1 Pro. The system card also shows long-context multi-needle retrieval (MRCR v2) at 256K tokens dropping to 59.2%, from 91.9% for Opus 4.6 with extended thinking, though Anthropic staff have questioned how well that benchmark reflects real use.

Other limits. Terminal-Bench 2.0 still trails GPT-5.4. The system card notes it occasionally claims a task is complete when it is only partly done. Security work beyond the safeguards needs Cyber Verification Program approval, and its knowledge stops in January 2026.

How to prompt Claude Opus 4.7

Say exactly what you want, because Opus 4.7 will do exactly that. If you want it to generalise ("apply this to every similar file"), say so. Delete old instructions that told earlier models to double-check their work; it does that already. Give max_tokens plenty of room, since thinking counts against it.

For agents, set the scope and the finish line:

Migrate the checkout module from the old payments client to the new one. Update every call site and the tests, run the test suite, and stop when it passes. Do not change public function signatures.

For reviews, ask for everything so its literal reading does not filter too much:

Review this pull request and list every bug, risky change and missing test you find, each with a severity and a one-line fix suggestion.

For images, send the full-resolution file rather than a downscaled one, and ask about specifics:

Read every value in this chart's legend and table, then tell me which quarter had the largest month-on-month drop and by how much.

Opus 4.7 versus Sonnet 4.6, GPT 5.2 and Gemini 3 Pro

Claude Sonnet 4.6 is the main in-house alternative, and Artificial Analysis puts Opus 4.7 79 Elo points ahead of it on GDPval-AA. Pick Sonnet for everyday coding and chat at volume; pick Opus 4.7 for the hard, long jobs where a failed run would set you back the most.

GPT 5.2 and Gemini 3 Pro are strong general-purpose models from other makers, suited to high-volume reasoning and general chat; Opus 4.7's case rests on agentic coding, computer use and careful document work.

For classification, extraction and routing, Claude Haiku 4.5 is the better fit: it is much faster, and those jobs rarely need Opus-level depth.

Getting started

Try Opus 4.7 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-7". 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 agentic work, and leave temperature and top_p unset. The docs cover streaming, tools and error handling.

Verdict

Claude Opus 4.7 is a clear capability upgrade: an 11-point gain on SWE-bench Pro, three times the image resolution, a much lower hallucination rate and the top GDPval-AA score at launch. It is also a demanding one, with a hungrier tokenizer, fewer knobs, a literal streak and regressions in web research and long-context retrieval. Re-tune your prompts and measure your token use, and for long coding, agent and document work it is the strongest Claude most developers can actually use.

Best for

  • Multi-file coding agents
  • Code review
  • Computer-use and tool-heavy agents
  • Screenshots, charts and dense documents
  • Financial and legal analysis

Frequently asked questions

Is Claude Opus 4.7 open source?

No. Claude Opus 4.7 is a proprietary Anthropic model with closed weights and no published parameter count. You reach it through Anthropic's API, its cloud partners, the Claude apps, or API platforms such as Unicorn API.

What image resolution does Claude Opus 4.7 support?

Opus 4.7 accepts images up to 2,576 pixels on the long edge, about 3.75 megapixels and more than three times as many pixels as earlier Claude models. That helps with screenshots, dense charts, technical diagrams and scanned documents.

What is the Claude Opus 4.7 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 thinking tokens count toward that limit.

What changed from Claude Opus 4.6 to Opus 4.7?

Opus 4.7 gains about 11 points on SWE-bench Pro, reads images at more than three times the resolution, hallucinates less and adds an xhigh effort level. It also uses a new tokenizer that counts more tokens for the same text and drops temperature and manual thinking limits.

Is Claude Opus 4.7 better than Claude Mythos Preview?

No. Anthropic says Opus 4.7 is less broadly capable than Mythos Preview, which scores higher on nearly every published benchmark. Mythos Preview is restricted to selected security partners, so Opus 4.7 is Anthropic's most capable generally available model.

Why does Claude Opus 4.7 reject temperature?

Anthropic removed non-default temperature, top_p and top_k values for Opus 4.7, so requests that set them return an error on its API. Steer tone and variety through the prompt instead and leave those parameters unset.