AI Gateway

Claude 3.5 Sonnet

anthropic/claude-3.5-sonnet

The upgraded Claude 3.5 Sonnet is now state-of-the-art for a variety of tasks including real-world software engineering, agentic capabilities and computer use. The new Claude 3.5 Sonnet delivers these advancements at the same price and speed as its predecessor.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'anthropic/claude-3.5-sonnet',
prompt: 'Why is the sky blue?'
})