Claude Opus 4.7
Claude Opus 4.7 is still available in the API in August 2026. What it offers, how it differs from Opus 4.6 and Opus 5, and the one-line change to migrate.
Claude Opus 4.7 is still callable in the Claude API as of August 2026. The model ID is claude-opus-4-7, it costs $5 per million input tokens and $25 per million output, and Anthropic lists retirement as no sooner than 16 April 2027. It has been superseded twice over — first by Opus 4.8, then by Claude Opus 5, which is priced identically.
Opus 4.7 still works. Requests to claude-opus-4-7 succeed today and Anthropic's deprecation table gives a retirement date of no sooner than 16 April 2027. It has been superseded by Claude Opus 5 (released 24 July 2026), which sits at the same $5 / $25 price. The migration, in one line: change model="claude-opus-4-7" to model="claude-opus-5", then expect thinking to be on by default and check that nothing in your stack sets thinking.type to "disabled" while effort is xhigh or max — that combination returns a 400 on Opus 5.
#Claude Opus 4.7 at a glance
- Status
- Legacy — still callable
- Claude API ID
claude-opus-4-7- Bedrock / Google Cloud IDs
anthropic.claude-opus-4-7/claude-opus-4-7- Released
- 16 April 2026
- Retirement
- Not sooner than 16 April 2027
- Context window
- 1,000,000 tokens, standard pricing across the whole window
- Max output
- 128,000 tokens (300,000 on the Batch API with
output-300k-2026-03-24) - Knowledge cutoff
- January 2026 (training data also January 2026)
- Price
- $5 input / $25 output per million tokens
- Thinking
- Adaptive, but must be configured. Extended thinking removed —
thinking.type: "enabled"returns 400 - Minimum cacheable prompt
- 2,048 tokens
- Tokenizer
- The newer tokenizer introduced with 4.7 — roughly 30% more tokens for the same text than 4.6 and earlier
#What was Claude Opus 4.7?
Opus 4.7 arrived on 16 April 2026, between Opus 4.6 (5 February) and Opus 4.8 (28 May). Two changes shipped with it that outlived the model itself and now shape every current release.
The first was the new tokenizer. Anthropic's pricing documentation states that Claude 4.7 and later models use a newer tokenizer that "produces approximately 30% more tokens for the same text", with the exact increase depending on content and workload shape. Everything from 4.7 forward — Opus 4.8, Fable 5, Opus 5, Sonnet 5 — inherits it; anything at or before Sonnet 4.6 uses the previous one.
The second was the removal of sampling parameters. On Opus 4.7 and later, a non-default temperature, top_p or top_k returns a 400 error; the documented replacement is to omit them and steer through prompting. Opus 4.7 also introduced the task budgets beta (task-budgets-2026-03-13), and from 4.7 onward Opus-tier models stopped receiving the injected <budget:token_budget> and <system_warning> context-awareness tags that Sonnet and Haiku models still get.
#Opus 4.6 vs Opus 4.7 vs Opus 5
All three cost the same per token. The differences are in tokenizer, thinking behaviour, cache economics and which tools they can call.
| Claude Opus 4.6 | Claude Opus 4.7 | Claude Opus 5 | |
|---|---|---|---|
| API ID | claude-opus-4-6 | claude-opus-4-7 | claude-opus-5 |
| Released | 5 Feb 2026 | 16 Apr 2026 | 24 Jul 2026 |
| Retirement no sooner than | 5 Feb 2027 | 16 Apr 2027 | 24 Jul 2027 |
| Price in / out per MTok | $5 / $25 | $5 / $25 | $5 / $25 |
| Context / max output | 1M / 128k | 1M / 128k | 1M / 128k |
| Reliable knowledge cutoff | May 2025 | Jan 2026 | May 2026 |
| Tokenizer | Previous | New (~30% more tokens) | New (~30% more tokens) |
| Thinking default | Off until configured | Off until configured | On by default |
Extended thinking (budget_tokens) | Supported, deprecated | Removed (400) | Removed (400) |
temperature / top_p / top_k | Accepted | 400 on non-default | 400 on non-default |
| Minimum cacheable prompt | 4,096 tokens | 2,048 tokens | 512 tokens |
Tool-use system prompt overhead (auto/any) | 497 / 589 tokens | 675 / 804 tokens | 286 / 406 tokens |
| Computer use & browser use tools | No | No | Yes |
| Fast mode | No (runs at standard speed) | No (returns an error) | Yes, at $10 / $50 |
| Rate-limit bucket | Shared across Opus 4.5 / 4.6 / 4.7 / 4.8 | Its own separate bucket | |
The rows that matter most for cost are not the prices — they are the tool-use overhead and the cache minimum. Opus 4.7 carries the heaviest tool-use system prompt of any documented Opus model, against 286 and 406 tokens on Opus 5. For an agent making thousands of tool-bearing calls a day, that gap alone is real money. Reasoning in cost per task rather than cost per token is what the model comparison page is for.
#How do you migrate from Opus 4.7 to Opus 5?
Change the model string. Everything else is a short checklist.
msg = client.messages.create(
model="claude-opus-5", # was "claude-opus-4-7"
max_tokens=8192,
messages=[{"role": "user", "content": prompt}],
)
On Bedrock, anthropic.claude-opus-4-7 becomes anthropic.claude-opus-5; on Google Cloud, claude-opus-4-7 becomes claude-opus-5.
#What actually breaks
- Thinking is on by default on Opus 5. Prompts tuned against a non-thinking 4.7 will produce longer, more deliberate answers and more output tokens. Depth is set by
effort:low,medium,high(default),xhigh,max. See the thinking and effort page. - Turning thinking off is now conditional.
thinking: {"type": "disabled"}is accepted only wheneffortishighor below; withxhighormaxit returns a 400. - Sampling parameters stay gone. Anything already running on 4.7 has dropped
temperature,top_pandtop_k. Coming from 4.6 or earlier, this is the change that bites. - Prompt-cache minimums drop from 2,048 tokens to 512. Prompts too short to cache before become cacheable, so short-system-prompt workloads can get cheaper just by adding a
cache_controlbreakpoint. Multipliers are on the Claude API page. - Remove carried-over verification instructions. Anthropic's migration guidance says lines like "include a final verification step" or "use a subagent to verify" cause over-verification on Opus 5.
- Token counts do not change. 4.7 and Opus 5 share a tokenizer, so a 4.7 → 5 move needs no re-count. A 4.6 → 5 move does.
- Rate limits move. Opus 4.5 through 4.8 share one combined bucket; Opus 5 has its own, so a phased rollout across both gains headroom.
#What Opus 4.7 cannot do in August 2026
Several capabilities that shipped after April 2026 skipped it.
- No computer or browser use. The GA
computer_toolset_20260801andbrowser_toolset_20260801tools, released 19 August 2026, are documented for Fable 5, Mythos 5, Opus 5, Sonnet 5 and Opus 4.8 — not Opus 4.7. - No fast mode. Fast mode is a research preview on Opus 5 and Opus 4.8 at $10 / $50 for up to 2.5× output speed. On Opus 4.7 it returns an error.
- The worst cache and tool economics of the Opus line, despite the identical sticker price.
Anthropic's statements about relative capability are qualitative, not numeric: the Opus 4.8 announcement says 4.8 is "approximately four times less likely than Opus 4.7 to overlook flaws in code", with the benchmark table published as an image rather than text. Precise benchmark scores for Opus 4.7 are not documented in current sources, and this site does not repeat third-party figures that cannot be traced to a primary Anthropic page. Where Claude wins and loses against rival vendors is on the Claude vs ChatGPT comparison.
#When staying on Opus 4.7 is defensible
"Always upgrade" is bad engineering advice, and there is a year of runway. Three cases hold up.
#You have a validated prompt on a pinned snapshot
Dateless model IDs from the 4.6 generation onward are pinned snapshots, not evergreen pointers — Anthropic does not update weights under an existing ID. If a production prompt cleared a regulated sign-off or sits inside a contractual SLA, claude-opus-4-7 is a fixed target until April 2027, and moving means re-validating. One caveat Anthropic states explicitly: weights are fixed per ID, but serving infrastructure — router, safety classifiers, sampling logic — can change and produce minor observable differences. Pinned is not frozen.
#Your evaluation baseline is expensive to rebuild
If your regression suite was scored against Opus 4.7 outputs, and especially if human graders set the pass bar, switching generations invalidates the baseline. Thinking-on-by-default alone moves pass rates for reasons unrelated to quality. Keep 4.7 serving production, run Opus 5 in shadow against the same suite, and cut over on evidence — the two sit on separate rate-limit buckets, so shadow traffic costs you no headroom.
#Budget predictability during a spend freeze
Opus 4.7 and Opus 5 cost the same per token, so this argument is weaker here than on the Sonnet 4.6 page — but not empty. Thinking on by default means more output tokens per task unless you explicitly lower effort, and output costs five times input. Inside a fixed cap, staying put keeps the bill flat until you have measured the new output profile. Rates are on the pricing page.
What is not defensible: staying because migration looks hard. Claude Code ships a /claude-api migrate skill that applies model ID swaps and breaking parameter changes across a codebase — see Claude for developers. The full Opus history, including which IDs now return errors, is on the Opus version archive; the current lineup is indexed on the Claude models page.
#Frequently asked questions
Is Claude Opus 4.7 still available in August 2026?
Yes. The model ID claude-opus-4-7 is listed as Active in Anthropic's deprecation table, with retirement no sooner than 16 April 2027. It is available on the Claude API, AWS Bedrock and Google Cloud, at $5 per million input tokens and $25 per million output tokens.
Is Opus 5 cheaper than Opus 4.7?
They cost the same: $5 input and $25 output per million tokens. Opus 5 is cheaper in practice because its prompt-cache minimum is 512 tokens against 2,048, and its tool-use system prompt overhead is 286 tokens against 675. Both models share the same tokenizer, so token counts do not change.
Why does temperature return a 400 error on Opus 4.7?
Anthropic deprecated temperature, top_p and top_k on Claude Opus 4.7 and later models. Passing a non-default value returns a 400 error rather than being ignored. The documented replacement is to omit the parameters entirely and control output style through prompting instead.
Can Opus 4.7 use the computer use tool?
No. The computer use and browser use toolsets that went generally available on 19 August 2026 are documented for Fable 5, Mythos 5, Opus 5, Sonnet 5 and Opus 4.8. Opus 4.7 is not on that list, so agentic desktop and browser control require an upgrade.
What is the one-line migration from Opus 4.7 to Opus 5?
Replace model="claude-opus-4-7" with model="claude-opus-5". Then check two things: thinking is on by default on Opus 5, and disabling thinking while effort is xhigh or max returns a 400 error. Remove any carried-over "verify your work" instructions.
Model IDs, retirement dates, parameter deprecations and prices verified 21 August 2026 against platform.claude.com/docs and the model deprecations page. Anthropic changes retirement dates and pricing without notice — re-check before pinning a production deployment to a legacy model.