Claude Sonnet 4
Claude Sonnet 4 supports a context window of 1M tokens on Vercel AI Gateway, enabling full codebase analysis of 75,000+ lines or large document sets, while scoring 72.7% on SWE-bench Verified with hybrid extended thinking and enhanced steerability.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-sonnet-4', prompt: 'Why is the sky blue?'})