Skip to content

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.

ReasoningFile InputVision (Image)Tool UseImplicit Caching
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'openai/gpt-5.1-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
Azure
400K
4.1s
150tps
$0.25/M$2.00/M
Read:$0.03/M
Write:
$14/K
+ input costs
+3
11/12/2025
OpenAI
400K
0.5s
$0.25/M$2.00/M
Read:$0.03/M
Write:
$10.00/K
+ input costs
+4
11/12/2025