Skip to content

Claude Opus 4.8

Claude Opus 4.8 targets long-horizon agentic execution, complex multi-step coding including mid-task refactors, and knowledge-work writing with clearer, less hedgy prose. It is available on AI Gateway via anthropic, bedrock, vertexAnthropic with adaptive thinking and configurable effort.

Tool UseReasoningVision (Image)File InputExplicit CachingWeb Search
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'anthropic/claude-opus-4.8',
prompt: 'Why is the sky blue?'
})

About Claude Opus 4.8

Claude Opus 4.8 became available on AI Gateway on May 28, 2026. Anthropic positions it for long-horizon agentic execution: complex, multi-step coding workflows where the model maintains coherence across many turns, including refactors that previously required human correction mid-task.

For knowledge-work writing, Claude Opus 4.8 produces clearer, less hedgy prose. Anthropic highlights drafting, data analysis, and building presentations as workflows that benefit from this style. Pair it with structured tool calls or memory files in your agent pipeline to keep extended sessions on track.

The sample integration uses adaptive thinking and configurable effort. Set thinking to { type: 'adaptive' } and effort to 'high' (or another level) under providerOptions.anthropic to control how deeply Claude Opus 4.8 reasons on each request.

Through AI Gateway, Claude Opus 4.8 is available with the standard unified API, observability, retries, and failover across anthropic, bedrock, vertexAnthropic. Set the model to anthropic/claude-opus-4.8 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.