What Is Claude Opus 4.7?
Last updated August 2026.
Claude Opus 4.7 is an Anthropic frontier model released April 16, 2026. The model ID is claude-opus-4-7. It has a 1M-token context window, 128K max output on the Messages API, and costs $5 per million input tokens and $25 per million output tokens, the same rate Opus 4.6 carried.
The rate held. The bills did not. Opus 4.7 introduced a new tokenizer, and the same text produces roughly 30% more tokens on it than on any earlier Claude model. Teams that migrated from 4.6 and compared invoices saw costs rise on an unchanged price sheet. That tokenizer now carries forward into Opus 4.8, Claude Opus 5, and Claude Fable 5.
“More tokens for the same text on Opus 4.7 than on models before it, at an unchanged $5 / $25 per million.”
Anthropic's framing for the release was rigor over raw score: Opus 4.7 "handles complex, long-running tasks with rigor and consistency, pays precise attention to instructions, and devises ways to verify its own outputs before reporting back." It also shipped substantially better vision and the xhigh effort level.
Anthropic lists Opus 4.7 in the legacy models section of its docs. Opus 4.8 and Claude Opus 5 both cost the same $5 input and $25 output per million tokens, with the same 1M context and 128K max output. There is no price argument for staying on 4.7.
What it introduced
The xhigh effort level between high and max, vision at 2,576px on the long edge, task budgets in public beta, and the tokenizer that every later Claude model inherits.
What it removed
Extended thinking with budget_tokens and the temperature, top_p, and top_k sampling parameters. All four return a 400. Adaptive thinking plus the effort parameter replaced them.
Pricing and the Tokenizer Change
Opus 4.7 costs $5 per million input tokens and $25 per million output tokens. Every Opus-tier model from 4.5 forward carries that same rate.
| Model | Input | Output | Context | Status |
|---|---|---|---|---|
| Claude Opus 4.7 | $5 | $25 | 1M | Legacy |
| Claude Opus 4.8 | $5 | $25 | 1M | Legacy |
| Claude Opus 5 | $5 | $25 | 1M | Current |
| Claude Fable 5 | $10 | $50 | 1M | Current |
| Claude Sonnet 5 | $2 | $10 | 1M | Current |
| Claude Haiku 4.5 | $1 | $5 | 200K | Current |
The interesting cost story is not the rate, it is the tokenizer. Anthropic's docs note that Opus 4.7 introduced a new tokenizer and that, compared with models released before it, the same text produces roughly 30% more tokens. The exact increase depends on the content. Code and non-English text move differently from English prose.
The consequences are mechanical. A 1M-token context window holds less text than the same window on Opus 4.6. A max_tokens value tuned on 4.6 can truncate equivalent output on 4.7. Compaction triggers keyed to measured token counts fire earlier. Client-side estimators calibrated against an older model under-report.
Re-run count_tokens against claude-opus-4-7 on a representative sample of your own prompts rather than scaling old counts by 1.3. The increase varies by content type, and a wrong multiplier applied to budget and rate-limit logic is worse than no multiplier.
Context Window and Output Limit
Opus 4.7 has a 1M-token context window, which Anthropic annotates as roughly 555,000 words. Max output is 128K tokens on the synchronous Messages API.
On the Message Batches API, Opus 4.7 supports up to 300K output tokens using the output-300k-2026-03-24 beta header, alongside Opus 5, Opus 4.8, Opus 4.6, Sonnet 5, and Sonnet 4.6.
Note the interaction with the tokenizer. The window is 1M tokens on both 4.6 and 4.7, but 4.7 fits meaningfully less source text into it. If you sized a retrieval budget against 4.6 and moved the model without moving the budget, you are closer to the ceiling than your configuration suggests. See context rot for what that does to agent quality.
Claude Opus 4.7 Benchmarks
Anthropic names SWE-bench Verified, SWE-bench Pro, SWE-bench Multilingual, Terminal-Bench 2.0, GPQA Diamond, OSWorld, and ARC-AGI-2 in the Opus 4.7 launch material, but publishes those figures inside chart images rather than as text. The scores stated in the body text are these:
| Evaluation | Opus 4.7 | Comparison |
|---|---|---|
| Anthropic internal 93-task coding benchmark | +13% resolution | vs Opus 4.6 |
| CursorBench | 70% | Opus 4.6: 58% |
| BigLaw Bench (Harvey), high effort | 90.9% | Not stated |
| Rakuten-SWE-Bench (production tasks) | 3x more resolved | vs Opus 4.6 |
| Finance Agent | State of the art | No number published |
| GDPval-AA | State of the art | No number published |
The 93-task result carries the detail worth keeping: Opus 4.7 solved four tasks that neither Opus 4.6 nor Sonnet 4.6 could solve. A 13% aggregate lift on a saturating benchmark is a smaller signal than a category of previously unsolvable tasks becoming solvable.
Third-party posts quote precise SWE-bench Verified and SWE-bench Pro percentages for Opus 4.7. Those figures are not stated in Anthropic's announcement text, and Anthropic notes it applied memorization screening to its SWE-bench runs. We are not reproducing numbers we cannot quote from a first-party source.
Vision
Opus 4.7 was the release where Claude's image resolution jumped. It accepts images up to 2,576 pixels on the long edge, about 3.75 megapixels, which Anthropic describes as "more than three times as many as prior Claude models." Model coordinates map one-to-one to image pixels, so scale-factor math written for earlier models should be removed. The cost side: a full-resolution image can consume up to roughly three times the image tokens it did before.
Opus 4.7 vs Opus 4.8 vs Opus 5
All three cost $5 input and $25 output per million tokens, with a 1M context window and 128K max output. The differences are capability, knowledge cutoff, and how much work a migration takes.
| Opus 4.7 | Opus 4.8 | Opus 5 | |
|---|---|---|---|
| Model ID | claude-opus-4-7 | claude-opus-4-8 | claude-opus-5 |
| Price in / out per M | $5 / $25 | $5 / $25 | $5 / $25 |
| Context window | 1M | 1M | 1M |
| Max output | 128K | 128K | 128K |
| Reliable knowledge cutoff | Jan 2026 | Jan 2026 | May 2026 |
| Adaptive thinking | Yes | Yes | Yes |
| Thinking on by default | No | No | Yes |
| Status in docs | Legacy | Legacy | Current |
Opus 4.7 to Opus 4.8 introduces no new breaking API changes. The same requests that work on 4.7 work on 4.8, so the migration is a model-ID swap plus prompt re-tuning. Opus 4.8 narrates more between tool calls, is more conservative about reaching for search and subagents, and asks more often on minor decisions.
Opus 4.8 to Claude Opus 5 adds two real breaking changes. Thinking is on by default, so a request that omits the thinking parameter now thinks and spends against the same max_tokens ceiling as the response text. And thinking: {type: "disabled"} is only accepted at effort high or lower; pairing it with xhigh or max returns a 400.
API Access and Breaking Changes
Pass claude-opus-4-7 as the model to the Messages API. Opus 4.7 is available on the Claude API, on Amazon Bedrock as anthropic.claude-opus-4-7, on Google Cloud as claude-opus-4-7, and on Microsoft Foundry.
Four changes catch code written against Opus 4.6 or earlier. The first two hard-fail; the second two fail quietly.
| What changed | Failure mode | Fix |
|---|---|---|
| Extended thinking removed | 400 error | Replace budget_tokens with adaptive thinking plus output_config.effort |
| Sampling parameters removed | 400 error | Delete temperature, top_p, and top_k; steer with prompting |
| Thinking content omitted by default | Renders empty, no error | Set thinking.display to summarized if you surface reasoning |
| New tokenizer | Truncation and cost drift | Re-run count_tokens; raise max_tokens and compaction triggers |
The two quiet failures are the ones that reach production. Thinking blocks still appear in the response stream on 4.7, but the thinking field is empty unless you opt in with display: "summarized". A UI that streams reasoning shows a long pause instead of an error.
Effort and the xhigh level
Opus 4.7 added xhigh, an effort level between high and max. Effort is set through output_config.effort and accepts low, medium, high, xhigh, and max. Anthropic recommends xhigh for coding and agentic work and a minimum of high for intelligence-sensitive workloads. At xhigh or max, give max_tokens real headroom: the model needs room to think and act across tool calls.
Opus 4.7 also shipped task budgets in public beta, which give the model a token ceiling for a whole agentic loop so it paces itself and finishes gracefully rather than being cut off. That is a different mechanism from max_tokens, which is an enforced per-response cap the model never sees.
For per-request pricing on the Anthropic API including batch discounts and prompt caching, see our Anthropic API pricing guide.
Pros and Cons
- 1M-token context with 128K max output, 300K on the Batches API beta
- 13% resolution lift over Opus 4.6 on Anthropic's 93-task coding benchmark, solving four tasks 4.6 and Sonnet 4.6 could not
- 70% on CursorBench against Opus 4.6's 58%, and 90.9% on BigLaw Bench at high effort
- Vision at 2,576px on the long edge, more than 3x the pixels of prior Claude models, with 1:1 coordinate mapping
- The xhigh effort level gives finer reasoning-versus-latency control than high or max alone
- New tokenizer means roughly 30% more tokens for the same text, so cost rose at an unchanged rate
- Listed as a legacy model; Opus 4.8 and Opus 5 cost the same $5/$25
- January 2026 knowledge cutoff, four months behind Claude Opus 5
- Extended thinking with budget_tokens and the sampling parameters both return 400, so older code needs migrating
- Thinking content is omitted by default, which silently empties reasoning UIs that worked on 4.6
- Closed weights: no self-hosting, no fine-tuning on your own data
Open-Weight Alternatives on Morph
Morph does not serve Claude models. It serves open-weight models on custom kernels through an OpenAI-compatible API. For coding workloads, several cost a fraction of Opus 4.7's $5 and $25, and because the weights are public, a model you prototype on the API is one you can self-host later.
| Model | Input | Output | Context |
|---|---|---|---|
| Claude Opus 4.7 (for reference) | $5.00 | $25.00 | 1M |
| GLM-5.2 753B | $1.10 | $4.10 | 1M |
| Kimi K3 2.8T | $2.80 | $14.00 | 1M |
| Qwen 3.5 397B | $0.50 | $3.50 | 256K |
| MiniMax M3 428B | $0.30 | $1.20 | 256K |
| DeepSeek V4 Flash | $0.139 | $0.278 | 1M |
GLM-5.2 is the closest substitute for agentic coding: 753B MoE under an MIT license with a 1M-token context, at 22% of Opus 4.7's input rate and 16% of its output rate. DeepSeek V4 Flash sits two orders of magnitude below on output for high-volume pipelines.
See GLM-5.2, Morph open source models, and pricing.
Frequently Asked Questions
What is Claude Opus 4.7?
An Anthropic frontier model released April 16, 2026. Model ID claude-opus-4-7, 1M-token context, 128K max output, $5/M input and $25/M output. It introduced the xhigh effort level, 2,576px vision, task budgets in public beta, and a new tokenizer. Anthropic now lists it under legacy models.
How much does Opus 4.7 cost?
$5 per million input tokens and $25 per million output tokens, identical to Opus 4.6, Opus 4.8, and Claude Opus 5. The rate held across all four, but the 4.7 tokenizer means the same text costs roughly 30% more tokens than on 4.6.
What is Opus 4.7's context window?
1M tokens, roughly 555,000 words. Max output is 128K on the Messages API and up to 300K on the Message Batches API with the output-300k-2026-03-24 beta header.
What did Anthropic publish for Opus 4.7 benchmarks?
In text: a 13% resolution lift over Opus 4.6 on its 93-task internal coding benchmark (including four tasks neither Opus 4.6 nor Sonnet 4.6 solved), 70% on CursorBench against 4.6's 58%, 90.9% on BigLaw Bench at high effort, and 3x more production tasks resolved on Rakuten-SWE-Bench. SWE-bench and Terminal-Bench scores appear only in chart images, not in body text.
Should I move off Opus 4.7?
Opus 4.8 and Claude Opus 5 cost the same $5/$25 with the same 1M context and 128K max output, so there is no price reason to stay. 4.7 to 4.8 has no new breaking changes, only prompt re-tuning. 4.8 to Opus 5 adds two: thinking on by default, and disabled thinking capped at high effort.
Why did my costs rise after moving to Opus 4.7?
The tokenizer. Opus 4.7 introduced a new one, and the same text produces roughly 30% more tokens than on earlier Claude models at an unchanged per-token rate. Re-run count_tokens against claude-opus-4-7 on your own prompts rather than applying a flat multiplier; the increase varies by content type.
Why are my Opus 4.7 thinking blocks empty?
Thinking content is omitted by default on 4.7, a silent change from Opus 4.6 where summarized thinking was returned. Set thinking: {type: "adaptive", display: "summarized"} to restore it. The block field name is unchanged.
Can I self-host Claude Opus 4.7?
No. Claude models are closed-weight and API-only. If self-hosting or fine-tuning is a requirement, an open-weight model such as GLM-5.2 (MIT license, 1M context) is the substitute.
Related Articles
The fastest endpoints are private deployments
Morph's top speeds come from dedicated deployments, not shared public endpoints: speculators trained on your traffic, caching tuned to your workload, and volume discounts over public per-token rates. Over 100 billion tokens per day run this way.
Cut what your Opus agent has to read
WarpGrep is agentic code search that runs as an MCP server. It fills the context window with the files that matter instead of bulk retrieval, which matters more once the same text costs 30% more tokens. Free for 100k requests, then $1 per 1M.
Sources
- Anthropic: Introducing Claude Opus 4.7 (release date, CursorBench, BigLaw Bench, vision, xhigh, task budgets)
- Anthropic docs: Models overview (model IDs, pricing, context, max output, legacy status, tokenizer note)
- Anthropic docs: Model migration guide (Opus 4.7 breaking changes, thinking display default)
- Anthropic docs: Effort parameter (low through max, including xhigh)
- Anthropic docs: Token counting (re-baselining across the tokenizer change)
- Anthropic: Claude Opus 4.7 System Card