GPT-5.2-Codex pricing
GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1-Codex, 5.2-Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outp. Below you will find 1 current row with input and output dollars per million. Right now the lowest input is $1.75 and the lowest output is $14.00.
Pricing across providers
All figures are list prices per million tokens unless a column says otherwise. 1 offer is listed for GPT-5.2-Codex. Best input in this view: Openrouter.
| Provider | Input / 1M | Output / 1M | Cached input | Batch |
|---|---|---|---|---|
O Openrouter | $1.75 | $14.00 | $0.175 | — |
Input vs output · 1M tokens
Cost calculator
The calculator uses the same dollars per million tokens as the table. Adjust sliders to see how GPT-5.2-Codex cost scales with traffic.
0.175000¢ / req
0.700000¢ / req
Model specifications
Quick spec sheet for GPT-5.2-Codex before you dive back into pricing. Reported under OpenAI.
- Context window
- 272,000 tokens
- Max output
- 128,000 tokens
- Vision (images)
- Yes
- Tool / function calling
- Yes
- Streaming
- No
- Released
- Jan 2026
- Primary provider
- OpenAI
- Model family
- N/A
Compare GPT-5.2-Codex
Jump into a comparison when you want one table for two models instead of two tabs. 6 curated matches for GPT-5.2-Codex.
- GPT-5.2-Codex vs GPT-4o
Compare pricing side by side
- GPT-5.2-Codex vs GPT-4o mini
Compare pricing side by side
- GPT-5.2-Codex vs o3
Compare pricing side by side
- GPT-5.2-Codex vs Claude Sonnet 4.6
Compare pricing side by side
- GPT-5.2-Codex vs Gemini 2.0 Flash
Compare pricing side by side
- GPT-5.2-Codex vs Llama 3.1 70B
Compare pricing side by side
Frequently asked questions
Read these after the table if you want plain language around GPT-5.2-Codex rates. The short model note from our index: GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineeri...
Also from OpenAI
Other models by OpenAI with live pricing in our catalog.