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
Speed & latency
Output speed
136 t/s
tokens / second
Time to first token
136.23s
latency
Headline indices
Individual benchmarks · click a row for effort variants
BenchmarkBest scoreEffortCost / task
CritPt9%default—
GPQA Diamond90%default—
Humanity's Last Exam36%default—
IFBench78%default—
Long-Context Reasoning82%default—
MMMU-Pro76%default—
Omniscience-2.2default—
Omniscience Accuracy0.4default—
Omniscience Non Hallucination0.3default—
SciCodeArtificial Analysis did not report this score in its latest run on Oct 14, 202655%——
TerminalBench Hard37%default—
τ²-bench92%default—

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
DatabricksCheapest$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
VercelVercel 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
openai/gpt-5.2-codexdatabricks/databricks-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