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.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-opus-4.8', prompt: 'Why is the sky blue?'})Frequently Asked Questions
What is Claude Opus 4.8 built for?
Anthropic positions Claude Opus 4.8 for long-horizon agentic execution: complex, multi-step coding work and knowledge-work writing where the model needs to maintain coherence across many turns and produce clearer prose.
How do I configure adaptive thinking and effort for Claude Opus 4.8 in the AI SDK?
Set the model to
anthropic/claude-opus-4.8. UnderproviderOptions.anthropic, setthinkingto{ type: 'adaptive' }and pass aneffortlevel (for example,'high').Which providers back Claude Opus 4.8 on AI Gateway?
AI Gateway routes Claude Opus 4.8 through anthropic, bedrock, vertexAnthropic, with retries and automatic failover.
How is Claude Opus 4.8 useful for coding agents?
Anthropic highlights complex multi-step coding work, including refactors that previously required human correction mid-task. Claude Opus 4.8 is suited for agent pipelines that span many turns and tool calls.
What knowledge-work tasks does Claude Opus 4.8 target?
Drafting, data analysis, and building presentations. Anthropic describes the prose output as clearer and less hedgy, which makes drafts more useful as a starting point.
Does AI Gateway support Zero Data Retention for Claude Opus 4.8?
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 4.8?
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 4.8 through AI Gateway?
Set the model to
anthropic/claude-opus-4.8in 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, vertexAnthropic.