Claude Opus 4.8 is now available on Vercel AI Gateway.
Claude Opus 4.8 is built for long-horizon agentic execution and handles complex, multi-step coding tasks like refactors that previously required human correction mid-task. The model also produces clearer, less hedgy prose for knowledge work like drafting documents, analyzing data, and building presentations.
To use Opus 4.8, set model to anthropic/claude-opus-4.8 in the AI SDK.
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-opus-4.8',
prompt: 'Find and fix the root cause of these intermittent test failures.',
providerOptions: {
anthropic: {
thinking: { type: 'adaptive' },
effort: 'high',
},
},
});
AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, dynamic provider sorting by latency & cost, and more. AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.
Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.





















