Vercel — AI · · 1 min read

Opus 4.8 on AI Gateway

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

1 min read

May 28, 2026

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.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI