Claude Opus 5
Claude Opus 5 is the latest model in Anthropic's Opus family, with gains over Claude Opus 4.8 in agentic coding, professional knowledge work, and long-horizon reasoning. Claude Opus 5 is available on AI Gateway via Anthropic, Bedrock, Google Vertex AI, Claude Platform on AWS with reasoning on by default and configurable effort. Your use is subject to Anthropic's Terms & Privacy Policies.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-opus-5', prompt: 'Why is the sky blue?'})About Claude Opus 5
Claude Opus 5 became available on AI Gateway on July 24, 2026 as the latest model in Anthropic's Opus family. Claude Opus 5 improves on Claude Opus 4.8 in agentic coding, professional knowledge work, and long-horizon reasoning. The coding gains show up on multi-file features, larger refactors, and end-to-end feature work, where Claude Opus 5 completes full tasks rather than leaving stubs or placeholders behind.
Reasoning is on by default. In AI SDK 7, set the depth with the top-level reasoning option, from minimal up to xhigh, or none to turn reasoning off. Claude Opus 5 is effective at low and medium effort, which produce quality output while spending fewer tokens than higher settings, so mixed workloads don't need to run at the top of the range.
Vision is stronger on charts, documents, diagrams, and UI replication. Claude Opus 5 uses tools to analyze, crop, and verify visual work, which helps on tasks that pair screenshots or design files with code. Claude Opus 5 also coordinates teams of subagents well, which suits multi-agent pipelines that need one model to plan and delegate.
Elevated cybersecurity safeguards ship with Claude Opus 5, matching Claude Fable 5. Benign security work can occasionally trigger a safety classifier and get blocked. Add a backstop by listing backup models such as Claude Opus 4.8 and Claude Sonnet 5 in a models array under providerOptions.gateway. AI Gateway tries them in order when the primary model fails, and the option works across every AI Gateway API format. Fast mode is available separately: pass speed: 'fast' under providerOptions.anthropic.
Through AI Gateway, Claude Opus 5 is available with the standard unified API, observability, retries, and failover across Anthropic, Bedrock, Google Vertex AI, Claude Platform on AWS. Set the model to anthropic/claude-opus-5 in the AI SDK, Chat Completions API, Responses API, Messages API, or other API formats, from TypeScript or Python. AI Gateway mirrors provider pricing with no markup and adds no platform fee on inference, including for Bring Your Own Key requests.