AiCostCompare

GPT-5.1-Codex-Mini

by OpenAI · openai/gpt-5.1-codex-mini · #146 cheapest of 325 paid models

Prices updated Jul 22, 2026, 1:31 AM UTC · refreshed hourly

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.025

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 rateEffective blended $/1MExample request*vs no cache
0%$0.688$0.0275
50%$0.603$0.0163−41%
90%$0.536$0.00725−74%

*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

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$0.000725$0.725
Document summary8,0001,000$0.004$4.00
Codebase question (RAG)30,0002,000$0.0115$11.50
Long-context analysis150,0005,000$0.0475$47.50

Performance

Intelligence Index

30.6

AA composite quality

Coding Index

Math Index

91.7

Agentic Index

Output speed

210 tok/s

median

Time to first token

4.92s

median

Time to first answer

4.92s

after reasoning tokens

Artificial Analysis benchmarks

BenchmarkScore
MMLU-Pro82.0%
GPQA Diamond81.3%
Humanity's Last Exam16.9%
LiveCodeBench83.6%
SciCode42.6%
AIME 202591.7%
IFBench67.9%
AA-LCR (Long Context Reasoning)62.7%
Terminal-Bench Hard33.3%
τ²-Bench (Telecom)62.9%

Design Arena Elo

CategoryElo
Website1,138
UI components1,122
Data viz1,133
SVG1,024
3D1,048
Game dev1,151
Code categories1,127
ASCII art1,147

Specs

Context window

400K

tokens

Max output

100K

tokens

Input modalities

image, text

Tokenizer

GPT