chooseaimodel
← All models
Flagshipbest answers, highest costCommercial API

GPT-5.2-Codex Pricing

OpenAI · openai-gpt-5-2-codex

ShareXFacebookLinkedIn
Input / 1M tokens
$1.75
Output / 1M tokens
$14.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.2-Codex preloaded — adjust volume and token counts there.

Price history

Only one price point recorded so far.

The staircase chart appears once a price change is detected.

What it excels at

Excels at long-context code generation, editing, and analysis with a 400k-token window and 128k output limit.

The business tradeoff

Output pricing at $14 per million tokens raises costs for generation-heavy use; commercial API only with no self-hosting option.

Cheaper from OpenAI

Same tier from other providers

Head-to-head

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