AiCostCompare

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 rateEffective blended $/1MExample 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

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

—

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

CategoryElo
Website1,099
UI components1,069
Data viz1,092
SVG968
3D963
Game dev1,076
Code categories1,079
ASCII art1,088

Specs

Context window

400K

tokens

Max output

128K

tokens

Input modalities

image, text

Tokenizer

GPT