chooseaimodel
← All models
Flagshipbest answers, highest costCommercial API

GPT-5.1-Codex Pricing

OpenAI · openai-gpt-5-1-codex

ShareXFacebookLinkedIn
Input / 1M tokens
$1.25
Output / 1M tokens
$10.00
Context window
400k tokens
533 pages of text
Max output
128k tokens

What it costs in practice

Estimate your own workloadOpens the calculator with GPT-5.1-Codex preloaded — adjust volume and token counts there.

Price history

List price per 1M tokens since we started tracking in Jun 2026. The lines are flat because the price hasn't changed since then.

What it excels at

Handles extended codebases and multi-file reasoning within a 400k-token context window and supports up to 128k output tokens per request.

The business tradeoff

Output pricing at $10 per million tokens increases cost for long generations; model name indicates possible specialization that may reduce generality versus standard GPT releases.

Cheaper from OpenAI

Same tier from other providers

Head-to-head

Vendor list rates, as of Jul 26, 2026 · source: openrouter · per-request examples assume 1,200 input + 400 output tokens.