GPT-5.2-Codex
The coding-specialised variant of GPT-5.2, tuned for code generation and repository work rather than general knowledge tasks. Priced identically to the base GPT-5.2 with the same 400K-token context window.
GPT-5.2-Codex is a reasoning AI model from OpenAI. It costs $1.750 per million input tokens and $14.000 per million output tokens (blended $5.425/M), with a 400,000-token context window.
- Tuned specifically for code
- 400K-token context
- Same rate as base GPT-5.2
- Code generation
- Repository-scale coding tasks
- Automated code review
Benchmarks
More from OpenAI
See all 28 →Frequently asked questions
How much does GPT-5.2-Codex cost?
GPT-5.2-Codex costs $1.750 per million input tokens and $14.000 per million output tokens, for a blended reference rate of $5.425 per million tokens.
What is GPT-5.2-Codex's context window?
GPT-5.2-Codex supports up to 400,000 tokens of context in a single request.
What is GPT-5.2-Codex best for?
GPT-5.2-Codex is well suited to Tuned specifically for code, 400K-token context and Same rate as base GPT-5.2.
Who makes GPT-5.2-Codex?
GPT-5.2-Codex is developed and served by OpenAI. It was released in Dec 2025.