AI Gateway

o1 by OpenAI

o1 is OpenAI's flagship reasoning model, designed for complex problems that require deep thinking. It provides strong reasoning capabilities with improved accuracy for complex multi-step tasks.

index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/o1',
prompt: 'Why is the sky blue?'
})