GPT 5.1 Codex Mini
GPT 5.1 Codex Mini is the lightweight, fast variant in the GPT-5.1 codex family, optimized for routine coding tasks like bug fixes, feature scaffolding, and test generation at a cost that scales to high-frequency CI and development workflows.
import { streamText } from 'ai'
const result = streamText({ model: 'openai/gpt-5.1-codex-mini', prompt: 'Why is the sky blue?'})P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.