Scheduled for retirement on Jul 13, 2027. Still available at the prices below until then.
Context
400K
Max output
128K
Serving providers
4
Cheapest input
$1.75 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Benchmarks

independent evaluations · source: Artificial Analysis
Headline indices
28.5
of 100
Last refreshed Nov 13, 2026
Individual benchmarks · click a row for effort variants
BenchmarkBest scoreEffortCost / task
CritPtLast refreshed Oct 26, 20269%default—
GPQA DiamondLast refreshed Oct 26, 202690%default—
Humanity's Last ExamLast refreshed Oct 26, 202636%default—
IFBenchLast refreshed Oct 26, 202678%default—
Long-Context ReasoningLast refreshed Oct 26, 202682%default—
MMMU-ProLast refreshed Oct 26, 202676%default—
OmniscienceLast refreshed Nov 13, 2026-2.2default—
Omniscience AccuracyLast refreshed Oct 26, 20260.4default—
Omniscience Non HallucinationLast refreshed Oct 26, 20260.3default—
SciCodeLast refreshed Oct 26, 202655%default—
TerminalBench HardLast refreshed Oct 26, 202637%default—
τ²-benchLast refreshed Oct 26, 202692%default—
Artificial Analysis scores last refreshed Nov 13, 2026.
Artificial Analysis scores last refreshed Oct 26, 2026.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand

Input pricing runs from $1.75 to $1.93 per 1M tokens across 4 providers, so the dearest route costs 10% more than the cheapest for the same model.

Serving providerInput /1MOutput /1MEndpoints
Databricks Cheapest$1.75$14.001
Standarddatabricks/databricks-gpt-5-2-codex
ComponentUnitStandard
Text cached in/1M tok$0.175
Text cache write/1M tok$1.75
Text input/1M tok$1.75
Text output/1M tok$14.00
OpenRouter $1.75$14.001
Vercel Reseller quote$1.75$14.001
Azure $1.93$15.401

Price history

listed seller prices, input and output per 1M tokens
Input Output
$0.00$5.00$10.00$15.00Jan 16Aug 19Aug 26Sep 17$14.00$1.75

Cost calculator

estimate your monthly spend on this model
$1,470
estimated / month

Model IDs

copy the exact identifier for your platform
databricks/databricks-gpt-5-2-codexopenai/gpt-5.2-codexopenai/gpt-5.2-codexazure/eu/gpt-5.2-codex

Frequently asked questions

GPT-5.2-Codex pricing, context and availability

Is GPT-5.2-Codex still available?

Yes. GPT-5.2-Codex is scheduled for retirement on 2027-07-13.

How much does GPT-5.2-Codex cost?

GPT-5.2-Codex costs $1.75 per 1M input tokens from Databricks, and $14.00 per 1M output tokens from Databricks. Across 4 serving providers, input prices range from $1.75 to $1.93 per 1M tokens.

What is the context window of GPT-5.2-Codex?

GPT-5.2-Codex accepts up to 400K tokens of context and can return up to 128K output tokens.

Which providers serve GPT-5.2-Codex?

GPT-5.2-Codex is available from 4 serving providers, each with its own pricing and model ID. Databricks is currently the cheapest.

What can GPT-5.2-Codex do?

GPT-5.2-Codex supports image input (vision), tool use, reasoning, prompt caching, structured output and web search.

Other OpenAI models

compare pricing across the OpenAI lineup
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Sep 22, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI