AI Gateway

/

Claude 3.5 Sonnet (2024-06-20)

Claude 3.5 Sonnet (2024-06-20) by Anthropic

Claude 3.5 Sonnet raises the industry bar for intelligence, outperforming competitor models and Claude 3 Opus on a wide range of evaluations, with the speed and cost of our mid-tier model, Claude 3 Sonnet.

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