chooseaimodel
← All models
Flagshipbest answers, highest costCommercial API

GPT-5 Codex Pricing

OpenAI · openai-gpt-5-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 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

Handles extended codebases and multi-step reasoning within a 400k-token context window and 128k output limit.

The business tradeoff

Output pricing of $10 per million tokens raises costs for long generations; available only via commercial API.

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.