AI Gateway

GPT-5 by OpenAI

GPT-5 is OpenAI's flagship language model that excels at complex reasoning, broad real-world knowledge, code-intensive, and multi-step agentic tasks.

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