GPT-5.1-Codex-Mini
by OpenAI · openai/gpt-5.1-codex-mini · #199 cheapest of 461 paid models
Prices updated Nov 18, 2026, 11:48 PM UTC · refreshed nightly
GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5Gemini 3.6 Flash
Pricing
Input
$0.25
per 1M tokens
Output
$2.00
per 1M tokens
Blended (3:1)
$0.688
3 input : 1 output
Cache read
$0.03
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for GPT-5.1-Codex-Mini with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $0.688 | $0.0275 | — |
| 50% | $0.605 | $0.0165 | −40% |
| 90% | $0.539 | $0.0077 | −72% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.000725 | $0.725 |
| Document summary | 8,000 | 1,000 | $0.004 | $4.00 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0115 | $11.50 |
| Long-context analysis | 150,000 | 5,000 | $0.0475 | $47.50 |
Performance
Intelligence Index
—
AA composite quality
Coding Index
—
Math Index
—
Agentic Index
—
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,099 |
| UI components | 1,069 |
| Data viz | 1,092 |
| SVG | 968 |
| 3D | 963 |
| Game dev | 1,076 |
| Code categories | 1,079 |
| ASCII art | 1,088 |
Specs
Context window
400K
tokens
Max output
128K
tokens
Input modalities
image, text
Tokenizer
GPT