AI Gateway

/

Claude Sonnet 4.5

Claude Sonnet 4.5 by Anthropic

Claude Sonnet 4.5 is the newest model in the Sonnet series, offering improvements and updates over Sonnet 4.

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