GPT-5.2-Codex
OpenAI · openai/gpt-5.2-codex
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....
GPT-5.2-Codex ranks #329 of 377 models in the default AI Benchmark Hub order (quality first, then cost). At $7.88 blended per million tokens, it is cheaper than 11% of models with published API pricing. Its 400,000-token context window is 1.5× the catalog median (262,144 tokens).
Context
Max output: 128000
Pricing
Output / 1M: 14.00
Blend / 1M: 7.88
Quality
Provider
Moderated: no
Monthly cost at this blended rate
Estimated API spend if every token is billed at $7.88per million (the blend of this model's input and output prices). Real bills depend on the input/output mix.
| Tokens / month | Est. cost (USD) |
|---|---|
| 1,000,000 | $7.88 |
| 10,000,000 | $78.75 |
| 100,000,000 | $787.50 |
Related models
Same lab, similar price, or similar quality — useful next comparisons.
More from OpenAI
- gpt-oss-120b$0.05 / 1M
- gpt-oss-20b$0.08 / 1M
- gpt-oss-safeguard-20b$0.19 / 1M
- GPT-5 Nano$0.22 / 1M
- GPT-4.1 Nano$0.25 / 1M
Closest API price
- GPT-5.3-Codex$7.88 / 1M
- GPT-5.2 Chat$7.88 / 1M
- GPT-5.2$7.88 / 1M
- Qwen3.8 Max Prime$8.00 / 1M
- Kimi K3$8.10 / 1M