{"slug": "what-s-new-in-claude-opus-5", "title": "What's new in Claude Opus 5", "summary": "Anthropic released Claude Opus 5, a step-change improvement over Claude Opus 4.8 with gains in deep reasoning, agentic tasks, and test-time compute scaling, featuring thinking on by default, a 1M token context window, 128k max output tokens, and support for mid-conversation tool changes and a new \"default\" fallback mode. The model reduces the minimum cacheable prompt length to 512 tokens and introduces a fast mode (research preview) priced at $10 per million input tokens and $50 per million output tokens on the Claude API.", "body_md": "We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy [here](https://www.anthropic.com/legal/cookies).\n\nClaude Opus 5 is a step-change improvement over Claude Opus 4.8, with the largest gains in deep reasoning, agentic and long-horizon tasks, and test-time compute scaling. This page summarizes everything new in Claude Opus 5, including thinking on by default, mid-conversation tool changes, and a breaking change to when thinking can be disabled.\n\n| Model | API model ID | Description |\n|---|---|---|\n| Claude Opus 5 | `claude-opus-5` | For complex agentic coding and enterprise work |\n\nClaude Opus 5 has a [1M token context window](/docs/en/build-with-claude/context-windows) (1M tokens is both the default and the maximum; there is no smaller context variant), 128k max output tokens, and [thinking](/docs/en/build-with-claude/thinking) on by default.\n\nFor complete pricing and specs, see the [models overview](/docs/en/about-claude/models/overview).\n\n`max`\n\nClaude Opus 5 supports the full [effort](/docs/en/build-with-claude/effort) ladder, `low`\n\n, `medium`\n\n, `high`\n\n, `xhigh`\n\n, and `max`\n\n, with `max`\n\nas the explicit top tier for the deepest possible reasoning. No beta header is required. When running at `xhigh`\n\nor `max`\n\neffort, set a large `max_tokens`\n\nso the model has room to think and act across subagents and tool calls.\n\n```\nclient = anthropic.Anthropic()\n\nwith client.messages.stream(\n    model=\"claude-opus-5\",\n    max_tokens=64000,\n    output_config={\"effort\": \"max\"},\n    messages=[\n        {\n            \"role\": \"user\",\n            \"content\": \"Explain why the sum of two even numbers is always even.\",\n        }\n    ],\n) as stream:\n    response = stream.get_final_message()\n\nprint(response)\n```\n\nThinking is [on by default](#thinking-on-by-default) on Claude Opus 5, so no `thinking`\n\nfield is needed.\n\nYou can add or remove tools between turns of a conversation while preserving the prompt cache, instead of resending a fixed tool list for the life of a session. Mid-conversation tool changes are in beta: include the `mid-conversation-tool-changes-2026-07-01`\n\nbeta header in your requests. See [Mid-conversation system messages](/docs/en/build-with-claude/mid-conversation-system-messages) for usage.\n\nThe `fallbacks`\n\nparameter supports a new `\"default\"`\n\nmode, which applies Anthropic's recommended fallback models by refusal category instead of a model list you maintain yourself. Server-side fallback is in beta, and the `\"default\"`\n\nmode requires the `server-side-fallback-2026-07-01`\n\nbeta header. See [Refusals and fallback](/docs/en/build-with-claude/refusals-and-fallback).\n\nThe minimum cacheable prompt length on Claude Opus 5 is 512 tokens, down from 1,024 tokens on Claude Opus 4.8. Prompts that were too short to cache on Claude Opus 4.8 can now create cache entries with no code changes. See [Prompt caching](/docs/en/build-with-claude/prompt-caching#cache-limitations) for per-model minimums.\n\n[Fast mode](/docs/en/build-with-claude/fast-mode) (research preview) is available for Claude Opus 5 on the Claude API only; it is not currently available on Amazon Bedrock, Google Cloud, or Microsoft Foundry. Fast mode for Claude Opus 5 is priced at $10 per million input tokens and $50 per million output tokens. See [Fast mode](/docs/en/build-with-claude/fast-mode) for access, supported models, and pricing.\n\nOn Claude Opus 4.8, requests run without thinking unless you set `thinking: {\"type\": \"adaptive\"}`\n\n. On Claude Opus 5, the same requests run with [thinking](/docs/en/build-with-claude/thinking) on: the model decides when and how much to think on each turn, and the [effort parameter](/docs/en/build-with-claude/effort) is the control for thinking depth. The wire value is unchanged; `thinking: {\"type\": \"adaptive\"}`\n\nremains valid and equivalent to the default.\n\nBecause `max_tokens`\n\nis a hard limit on total output (thinking plus response text), revisit it for workloads that ran without thinking on Claude Opus 4.8.\n\nThe API keeps the option to disable thinking, subject to the effort restriction below.\n\n`high`\n\nor belowOn Claude Opus 5, `thinking: {\"type\": \"disabled\"}`\n\nis accepted only when the effort level is `high`\n\nor below. Setting `thinking: {\"type\": \"disabled\"}`\n\nwith effort `xhigh`\n\nor `max`\n\nreturns a 400 error. This is generally available behavior on Claude Opus 5 onward, enforced on each request, and it is a breaking change from Claude Opus 4.8, where disabling thinking was independent of the effort level. If you disable thinking at high effort levels today, either keep thinking disabled and set effort to `high`\n\nor below, or keep the effort level and remove the `thinking`\n\nfield.\n\nWith thinking disabled, Claude Opus 5 can occasionally write a tool call into its text output instead of emitting a `tool_use`\n\nblock, or include internal XML tags in its visible response. Where possible, keep thinking enabled and control token cost with lower effort levels; for integrations that must keep thinking disabled, see [Running with thinking disabled](/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5#running-with-thinking-disabled) for prompting mitigations.\n\nBeyond the API changes above, Claude Opus 5 behaves differently from Claude Opus 4.8 in ways you may notice without changing any code. Default user-facing responses and written deliverables run longer. In agentic sessions, the model narrates its progress to the user more often. In multi-agent frameworks, it delegates to subagents more readily. It also verifies its own work without being told to, so remove verification instructions carried over from earlier models (\"include a final verification step,\" \"use a subagent to verify\"); they cause over-verification on Claude Opus 5. For prompting patterns that tune each of these behaviors, see [Prompting Claude Opus 5](/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5).\n\nCompared with Claude Opus 4.8, Claude Opus 5 is a step-change improvement rather than an incremental one, and it delivers frontier intelligence at half the cost of Claude Fable 5. The largest gains are in:\n\n`max`\n\nlevel) into better results.`low`\n\nand `medium`\n\nFor the prompting patterns that get the most out of these capabilities, see [Prompting Claude Opus 5](/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5#capability-improvements).\n\nClaude Opus 5 is priced at $5 per million input tokens and $25 per million output tokens, unchanged from Claude Opus 4.8.\n\nSee [Pricing](/docs/en/about-claude/pricing) for complete pricing, including batch processing, prompt caching, and fast mode rates.\n\nClaude Opus 5 is available on:\n\n`claude-opus-5`\n\n.`anthropic.claude-opus-5`\n\n. Claude Opus 5 is also reachable through the `InvokeModel`\n\nAPI on `bedrock-runtime`\n\n, served by the same infrastructure; the `claude-opus-5`\n\n.Claude Opus 4.8 remains available on all of these platforms.\n\nTo migrate from Claude Opus 4.8, update your model ID:\n\n```\nmodel = \"claude-opus-4-8\"  # Before\nmodel = \"claude-opus-5\"  # After\n```\n\nThen review the two [behavior changes](#behavior-changes): thinking is on by default, and disabling thinking with effort `xhigh`\n\nor `max`\n\nreturns a 400 error. See the [migration guide](/docs/en/about-claude/models/migration-guide#migrating-from-claude-opus-4-8-to-claude-opus-5) for step-by-step instructions.\n\nComplete specs and pricing for all current Claude models.\n\nBehavioral differences and prompting patterns specific to Claude Opus 5.\n\nControl how many tokens Claude uses when responding, from low to max.\n\nHow thinking works when it's on by default, and when it can be disabled.\n\nGive Claude an advisory token budget to pace its work against.\n\nGuide for migrating to the latest Claude models from previous Claude versions.\n\nGet higher output tokens per second from Claude Opus models at premium pricing.\n\nWas this page helpful?", "url": "https://wpnews.pro/news/what-s-new-in-claude-opus-5", "canonical_source": "https://platform.claude.com/docs/en/about-claude/models/whats-new-opus-5", "published_at": "2026-07-24 17:20:31+00:00", "updated_at": "2026-07-24 17:22:47.260718+00:00", "lang": "en", "topics": ["large-language-models", "ai-products", "ai-tools", "ai-infrastructure"], "entities": ["Anthropic", "Claude Opus 5", "Claude Opus 4.8", "Amazon Bedrock", "Google Cloud", "Microsoft Foundry"], "alternates": {"html": "https://wpnews.pro/news/what-s-new-in-claude-opus-5", "markdown": "https://wpnews.pro/news/what-s-new-in-claude-opus-5.md", "text": "https://wpnews.pro/news/what-s-new-in-claude-opus-5.txt", "jsonld": "https://wpnews.pro/news/what-s-new-in-claude-opus-5.jsonld"}}