Skip to content

Codex Mini

Codex Mini is OpenAI's lightweight coding agent model optimized for fast, asynchronous software engineering tasks like writing features, fixing bugs, and running tests in sandboxed cloud environments.

ReasoningVision (Image)File InputTool UseImplicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/codex-mini',
prompt: 'Why is the sky blue?'
})

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
OpenAI
Legal:Terms
Privacy
200K
$1.50/M$6.00/M
Read:$0.38/M
Write:
05/16/2025