Claude Sonnet 4.6 now available in AI Gateway and Agent Runners
February 17, 2026
Anthropic’s Claude Sonnet 4.6 model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
Use the Anthropic SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the Claude Sonnet 4.6 model:
import Anthropic from '@anthropic-ai/sdk';
export default async () => { const anthropic = new Anthropic();
const response = await anthropic.messages.create({ model: 'claude-sonnet-4-6', max_tokens: 4096, messages: [ { role: 'user', content: 'How can AI improve my coding?' } ] });
return Response.json(response);};Claude Sonnet 4.6 is available for all Function types and Agent Runners. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.