OpenAI

GPT-5.1 Codex Mini

A smaller, cheaper version of GPT-5.1 Codex for lighter agentic coding.

ActiveAvailable from 2 providers
Tool callingCan invoke external tools and APIs (function calling) mid-response.Structured outputCan return JSON or schema-constrained responses instead of free text.ReasoningUses extended thinking / chain-of-thought for harder multi-step problems.Effort controlLets you dial thinking depth (low / medium / high) to trade cost for quality.Fine-tuningSupports training a custom variant on your own data.

Source: OpenAI models, OpenAI pricing

Price per 1M tokens
$0.25 in / $2 out
Context window400,000
Max output128,000
Cache read$0.025 / M
Batch discount-50%
ModalitiesText, Image → Text
Priced across2 providers

Pricing

Every billing leg from the live catalog, in USD per 1M tokens.

Billing legRateBatch
Input$0.25 / M$0.125 / M
Output$2 / M$1 / M
Cache read$0.025 / M$0.0125 / M

Cost calculator

Billing-grade math over the rate card above, including the thinking tokens most estimates miss.

Hidden reasoning tokens bill as output. 1.0x = thinking off. Medium-effort reasoning typically lands near 3x; heavy reasoning runs 6x to 8x. Set it to match your workload.

Estimated monthly cost
$170
at current list prices
Fresh input$50.00
Cached input$0.00
Output incl. thinking$120
Track this automatically →

Compare providers

The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.

PlatformInput / MOutput / MCache read / MBatchAccess
OpenAILowest
$0.25$2$0.025First-party API
Cursor
$0.25$2$0.025Direct

Price history

Has this model gotten cheaper or more expensive?

No changePriced at $0.25 / $2 per 1M since May 30, 2026.

More from OpenAI

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every GPT-5.1 Codex Mini call your team makes, prices it with this exact rate card, and shows spend by feature, customer, and team.

Get started free

Rates are generated from SuperPenguin's live pricing catalog.