Claude Sonnet 4 now supports 1M token context in Vercel AI Gateway
1M tokens. Claude Sonnet 4 now processes entire codebases in a single API call—and Vercel just made it frictionless.

Why it matters
Vercel's AI Gateway democratizes access to Claude's expanded context window, removing provider friction and enabling developers to build with enterprise-scale document/code processing without managing multiple API keys or provider accounts.
The key facts
7 to knowClaude Sonnet 4 context window expanded to 1M tokens
Supports ~75,000+ lines of code in single input
Available via Vercel AI Gateway with unified API
Single API key required (no multi-provider account management)
Built-in observability, BYOK support, intelligent provider routing
AI Gateway leverages Anthropic and Bedrock backends
Integrated with AI SDK v5
Go to the source
Vercel Blogvercel.com
Publisher excerpt: You can now leverage with Vercel's with no other provider accounts required. This release from Anthropic enables significantly larger inputs such as full codebases (~75,000+ lines) or large document sets. Claude Sonnet 4's updated 1 million-token context windowAI Gateway AI Gateway lets you call…
