
Claude Sonnet 5 now available on Vercel AI Gateway
Quick Answer
Claude Sonnet 5 from Anthropic is now available on Vercel AI Gateway, enhancing coding and agentic tasks with improved instruction adherence and document parsing.
Quick Take
Claude Sonnet 5 from Anthropic is now available on Vercel AI Gateway, enhancing coding and agentic tasks with improved instruction adherence and document parsing. Launch pricing is set at $2 per million input tokens and $10 per million output tokens until August 31, 2026, with a standard price of $3/M and $15/M thereafter.
Key Points
- Sonnet 5 outperforms Sonnet 4.6, achieving results previously requiring Opus models.
- Enhanced document parsing and long-context memory capabilities.
- New tokenizer maps inputs to more tokens, improving efficiency.
- AI Gateway offers a unified API for model usage tracking and performance optimization.
- No markup on provider pricing, including Bring Your Own Key (BYOK) requests.
📖 Reader Mode
~2 min readClaude Sonnet 5 from Anthropic is now available on AI Gateway. Sonnet 5 improves on Sonnet 4.6 across coding and agentic work, reaching outcomes on many tasks that previously needed an Opus model, at Sonnet pricing.
The model is more agentic and follows instructions more closely. Document parsing and long-context memory use are also stronger. Sonnet 5 also uses an updated tokenizer, like the recent Opus models, which can map the same input to more tokens.
Launch pricing of $2 per million input tokens and $10 per million output tokens runs through August 31, 2026. Standard list price will be $3/M input tokens, $15/M output tokens.
To use Sonnet 5, set model to anthropic/claude-sonnet-5 in the AI SDK:
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-sonnet-5',
prompt: 'Refactor this module and add tests for the edge cases.',
providerOptions: {
anthropic: {
thinking: { type: 'adaptive' },
effort: 'medium',
},
},
});
You can also try Sonnet 5 in the model playground.
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, budgets for API keys, 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.
AI Gateway: Track top AI models by usage
The AI Gateway model leaderboard tracks the most popular models over time, ranking them by the total volume of tokens processed across all Gateway traffic.
View the leaderboard
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

