AI Gateway

/

GPT-5-Codex

GPT-5-Codex by OpenAI

GPT-5-Codex is a version of GPT-5 optimized for agentic coding tasks in Codex or similar environments.

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