OpenAI: GPT-5.2 Codex
GPT-5.2 Codex is a reasoning model from OpenAI released on Dec 11, 2025. It reads text, images and files and writes text, with a 272K token context window and up to 128K tokens per reply.
Show moreShow less
It costs $1.75 per million input tokens and $14 per million output tokens. Cached input bills at $0.175, 90% less than fresh input.
It supports tool calling, structured JSON output and prompt caching.
14 providers serve it, including Azure, Vercel AI Gateway and AIHubMix.
- Modalities
- In / out price
- $1.75 / $14 per 1M
- Context
- 272K
- Max output
- 128K
- Released
- Dec 11, 2025
- Knowledge cutoff
- Aug 2025
- Tool calling
- Structured output
- Reasoning
- Prompt caching
- Open weights
- Free to use
GPT-5.2 Codex pricing
USD, as listed on Nov 29, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.
| Input | $1.75 / 1M tokens | |
|---|---|---|
| Output | $14 / 1M tokens | |
| Cached input (read) | $0.175 / 1M tokens | 90% off input |
GPT-5.2 Codex providers
14 providers serve it, including Azure, Vercel AI Gateway and AIHubMix. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.
| Provider | Input /M | Output /M | Cache read /M | Context | Max output |
|---|---|---|---|---|---|
| Azure | $1.75 | $14 | $0.175 | 400K | 128K |
| Vercel AI Gateway | $1.75 | $14 | $0.175 | 400K | 128K |
| AIHubMix | $1.75 | $14 | $0.175 | 400K | 128K |
| Azure Cognitive Services | $1.75 | $14 | $0.175 | 400K | 128K |
| DevPass (LLM Gateway) | $1.75 | $14 | $0.175 | 400K | 128K |
| Eden AI | $1.75 | $14 | $0.175 | 272K | 128K |
| Impossibl | $1.75 | $14 | $0.175 | 400K | 128K |
| Jiekou.AI | $1.75 | $14 | $0.175 | 400K | 128K |
| Kilo Gateway | $1.75 | $14 | $0.175 | 400K | 128K |
| LLM Gateway | $1.75 | $14 | $0.175 | 400K | 128K |
| NanoGPT | $1.75 | $14 | $0.175 | 400K | 128K |
| Ofox | $1.75 | $14 | $0.18 | 400K | 128K |
Showing 12 of 14 providers: the lab first, then the major clouds, then the cheapest resellers.
What GPT-5.2 Codex costs per month
Pick a workload close to yours or type your own volumes.
Supported request parameters
What you can set when you call GPT-5.2 Codex through an OpenAI compatible API.
- Tools
tools - Structured outputs
structured_outputs - Reasoning
reasoning
Alternatives to GPT-5.2 Codex
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- Index 42.1
Reads text, images and files. Tool calling, structured output, reasoning. Served by 53 providers.
by openaiJul 9, 20261.05M context$2/M input tokens$12/M output tokens53 providers
- Index 29.7
Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 5 providers.
by googleFeb 19, 20261M context$2/M input tokens$12/M output tokens5 providers
- Index 51.8
Reads text, images and files. Tool calling, structured output, reasoning. Served by 50 providers.
by openaiSep 29, 20261.05M context$2/M input tokens$10/M output tokens50 providers
- Index 56
Reads text, images and files. Tool calling, structured output, reasoning. Served by 57 providers.
by anthropicSep 28, 20261M context$2/M input tokens$10/M output tokens57 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 43 providers.
by openaiSep 22, 2026$2/M input tokens$10/M output tokens43 providers
- 1M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 53 providers.
by anthropicJun 29, 2026$2/M input tokens$10/M output tokens53 providers
More from OpenAI
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiNov 24, 2026$10/M input tokens$50/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiNov 24, 2026$2/M input tokens$10/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiNov 24, 2026$8/M input tokens$40/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiNov 24, 2026$2/M input tokens$10/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 26 providers.
by openaiNov 17, 2026$8/M input tokens$40/M output tokens26 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 26 providers.
by openaiNov 17, 2026$2/M input tokens$10/M output tokens26 providers
GPT-5.2 Codex questions
How much does the GPT-5.2 Codex API cost?
$1.75 per million input tokens and $14 per million output tokens, with cached input at $0.175. The estimator on this page turns that into a monthly bill for your own workload.
What is the context window of GPT-5.2 Codex?
272,000 tokens of input, and it can write up to 128,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.
Which providers serve GPT-5.2 Codex?
14 providers serve it, including Azure, Vercel AI Gateway and AIHubMix. Prices differ by host, so the Providers table on this page lists each one with its input and output price.
Does GPT-5.2 Codex support tool calling?
Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.
Is GPT-5.2 Codex open source?
No. OpenAI serves it through an API only, so you cannot download the weights or host it yourself.
When was GPT-5.2 Codex released?
Dec 11, 2025, with training data up to Aug 2025.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 29, 2026. The summary is written from these facts.