Skip to content
Dashboard

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.

Tool UseReasoningVision (Image)File InputExplicit CachingWeb SearchHas Fast Mode
import { streamText } from 'ai'
const result = streamText({
model: 'anthropic/claude-opus-5',
prompt: 'Why is the sky blue?'
})
Read docs

Frequently Asked Questions

  • What is Claude Opus 5 built for?

    Claude Opus 5 is built for long-horizon agentic coding. Claude Opus 5 handles multi-file features, larger refactors, and end-to-end feature work, and it completes full tasks rather than leaving stubs or placeholders. Anthropic also reports gains over Claude Opus 4.8 in professional knowledge work and long-horizon reasoning.

  • How do I set the reasoning effort for Claude Opus 5?

    Reasoning is on by default. In AI SDK 7, set the top-level reasoning option to a level from minimal up to xhigh, or to none to turn reasoning off.

  • Which effort level should I start with on Claude Opus 5?

    Start at low or medium. Claude Opus 5 is effective at both, and they produce quality output while spending fewer tokens than higher settings. Raise the effort level for the requests where output quality falls short.

  • What improved in vision on Claude Opus 5?

    Charts, documents, diagrams, and UI replication. Claude Opus 5 also uses tools to analyze, crop, and verify visual work, which suits tasks that pair screenshots or design files with code changes.

  • How do I enable fast mode for Claude Opus 5?

    Pass speed: 'fast' in the anthropic provider options. In the AI SDK, set providerOptions.anthropic.speed to 'fast' on the request.

  • What happens when a safety classifier blocks a request to Claude Opus 5?

    The request fails, and AI Gateway falls back to the next model you configured. Claude Opus 5 ships with elevated cybersecurity safeguards, so benign security work can occasionally trigger a classifier. List backup models such as Claude Opus 4.8 and Claude Sonnet 5 in a models array under providerOptions.gateway. The option works across every AI Gateway API format.

  • Which providers back Claude Opus 5 on AI Gateway?

    AI Gateway routes Claude Opus 5 through Anthropic, Bedrock, Google Vertex AI, Claude Platform on AWS, with retries and automatic failover. Call /v1/models/anthropic/claude-opus-5/endpoints on ai-gateway.vercel.sh to list every provider serving Claude Opus 5, along with per-provider pricing, supported parameters, uptime, throughput, and latency.

  • Does AI Gateway support Zero Data Retention for Claude Opus 5?

    Yes, Zero Data Retention is available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.

  • What is the pricing for Claude Opus 5?

    AI Gateway mirrors provider pricing with no markup and adds no platform fee on inference. Rates are listed on this page and shift when providers update their pricing.

  • How do I call Claude Opus 5 through AI Gateway?

    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 handles authentication, retries, and failover across anthropic, bedrock, vertex, claudeaws.