Codex Mini
Pricing & Specs

OpenAI · $1.5 input / $6 output per 1M tokens · 200K context window

$1.5
per 1M input tokens
$6
per 1M output tokens
200K
context window (tokens)

The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on Codex Mini costs about $0.0045 — roughly $4.50 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.

Codex Mini API Pricing

TokensPrice
Input$1.5 / 1M tokens
Output$6 / 1M tokens
Cached input$0.375 / 1M tokens

Cached input tokens are billed when caching is enabled. Batch API pricing is available for this model at 50%.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0045
1K 1,000 runs of that task: $4.50
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

Codex Mini Specs

SpecValue
Context window200K tokens
Input modalitiestext, image
Output modalitiestext
Latency (measured by OpenMark)~1.7s median response
Reasoning modelNo
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes
Batch APIYes

Capabilities

text generation fast reasoning local shell streaming

FAQ

How much does Codex Mini cost?

Codex Mini costs $1.5 per 1M input tokens and $6 per 1M output tokens ($0.375 per 1M cached input tokens).

What is Codex Mini's context window?

Codex Mini has a 200K-token context window.

Can I test Codex Mini on my own task?

Yes. OpenMark lets you benchmark Codex Mini against 100+ models on your own task with real API calls — no API keys needed, free tier available.

Is Codex Mini the right model for YOUR task?

Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.

Benchmark Codex Mini — Free →