Enter opens the highlighted result. Esc closes.

GPT-5.2-Codex API pricing

As of October 21, 2026, OpenAI GPT-5.2-Codex costs $1.75 per million input tokens and $14.00 per million output tokens, the median of 1 providers on OpenRouter, with cached input at $0.175 per million.

GPT-5.2-Codex benchmarks and specs · Every OpenAI model's price

  • Input, per million tokens$1.75
  • Output, per million tokens$14.00
  • Cached input, per million$0.175
  • Context window400K tokens
  • Max output128K tokens
  • Output speedNot measured

What a request costs

Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.

Cost of three workloads on GPT-5.2-Codex
WorkloadTokensOne request1,000 requestsFits the context window
Chat turn 1K input + 500 output tokens $0.0088 $8.75 Yes
Repository review 50K input + 3K output tokens $0.130 $129.50 Yes
Agent loop 200K input + 10K output tokens $0.490 $490.00 Yes
Solved coding task One SWE-bench Verified attempt, divided by the share that succeed $0.43 $430.00

Price history

The price of GPT-5.2-Codex here is the median across 1 providers on OpenRouter, so we do not track price changes for it.

Cheaper models as good as GPT-5.2-Codex

Models within two points of GPT-5.2-Codex or above it on the Vibe Coding Index, with a lower output price. Cheapest first.

GPT-5.2-Codex pricing questions

How much does GPT-5.2-Codex cost per million tokens?
$1.75 per million input tokens and $14.00 per million output tokens, as listed on OpenRouter on October 21, 2026.
Does GPT-5.2-Codex support prompt caching?
Yes. OpenRouter lists cached input at $0.175 per million tokens, against $1.75 for uncached input.
Is there a cheaper model as good as GPT-5.2-Codex?
MiMo-V2.6-Flash scores 54.7 on the Vibe Coding Index, within two points of GPT-5.2-Codex or above it, and costs $0.28 per million output tokens.
Has the price of GPT-5.2-Codex changed?
The price of GPT-5.2-Codex here is the median across 1 providers on OpenRouter, so we do not track price changes for it.