Claude Sonnet 4.6 is live on AI Gateway

1 min read

Claude Sonnet 4.6 from Anthropic is now available on AI Gateway with the 1M token context window.

Sonnet 4.6 approaches Opus-level intelligence with strong improvements in agentic coding, code review, frontend UI quality, and computer use accuracy. The model proactively executes tasks, delegates to subagents, and parallelizes 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.

To use this model, set model to anthropic/claude-sonnet-4.6 in the AI SDK. This model supports effort and thinking type 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 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.

Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.