Claude Sonnet 4.6 is live on AI Gateway
Source: Vercel Blog
Overview
Claude Sonnet 4.6 from Anthropic is now available on AI Gateway with a 1 M token context window. The model approaches Opus‑level intelligence and brings strong improvements in agentic coding, code review, frontend UI quality, and computer‑use accuracy. It can proactively execute tasks, delegate to sub‑agents, and parallelize tool calls, with MCP support for scaled tool use. As a hybrid reasoning model, Sonnet 4.6 delivers both near‑instant responses and extended thinking within the same model.
Using Claude Sonnet 4.6
To use this model, set the model identifier to anthropic/claude-sonnet-4.6 in the AI SDK. The model supports the effort parameter and a thinking type of adaptive.
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
prompt: `Build a dashboard component from this spec with
responsive layout, dark mode support, and accessibility.`,
providerOptions: {
anthropic: {
effort: 'medium',
thinking: { type: 'adaptive' },
},
},
});
AI Gateway Features
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 observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.
Resources
- Learn more about AI Gateway
- View the AI Gateway model leaderboard
- Try it in the model playground