OpenAI, released Jan 14, 2026
GPT-5.2-Codex
GPT-5.2-Codex is OpenAI's coding-focused model, stepping up from GPT-5.1-Codex. It's an older generation now, sitting behind the GPT-6.1 Terra and GPT-6.2 Sol and Astra models that came out later in 2026, and it's built for dev work. You can use it for back-and-forth coding sessions or turn it loose on long, independent tasks.
Already paying for ChatGPT?
GPT-5.2-Codex costs $14 per 1M output tokens. Use GPT-6.2 Sol through your ChatGPT plan instead, $0 per token.
Updated
GPT-5.2-Codex pricing and specs
- Input
- $1.75per 1M tokens
- Output
- $14per 1M tokens
- Cached input
- $0.175per 1M tokens
- Context window
- 400K400,000 tokens
- Max output
- 128K128,000 tokens
- Released
- Jan 14, 2026
- Accepts
- TextImages
- Features
- Tool callingReasoningStructured outputs
What GPT-5.2-Codex is good at
- Autonomous coding agents. It supports tool calling, has a huge context window and a big output limit, and it's built to grind through long, involved coding jobs on its own.
- Pairing and debugging sessions, since it's made for back-and-forth dev work and reasons through problems automatically.
- Frontend fixes from screenshots - it takes images alongside text (way easier than trying to describe a broken layout in words).
- Automated scripts and pipelines that need structured JSON output or tool calls.
Good to know
- Reasoning is always on. You can't toggle it off for quick, trivial prompts, so keep that in mind if you're using it for simple stuff.
- The pricing is a bit lopsided compared to OpenAI's newer lineup - input is actually slightly cheaper than GPT-6.2 Sol, but output costs more than both GPT-6.2 Sol and GPT-6.1 Terra. Still way cheaper than GPT-6.2 Astra on both ends, though.
- It came out in January 2026, making it older than the GPT-6.1 and GPT-6.2 releases. So if you're starting fresh, it's worth checking how it stacks up against the newer models for your setup.
GPT-5.2-Codex vs similar models
| Model | Input | Output | Plan2API | Context |
|---|---|---|---|---|
| GPT-5.2-Codex | $1.75 | $14 | Not available | 400K |
| GPT-6.2 Astra | $8 | $40 | $0 on ChatGPT | 1.1M |
| GPT-6.2 Astra Pro | $8 | $40 | Not available | 1.1M |
| GPT-6.2 Sol | $2 | $10 | $0 on ChatGPT | 1.1M |
| Gemini 4 Neon | $3 | $15 | Not available | 1M |
| Ember-1 | $3 | $15 | Not available | 1M |
GPT-5.2-Codex cost per month
| Workload | API price |
|---|---|
| Side project2M in, 500K out | $10.50 |
| Production app25M in, 5M out | $114 |
| Agents at scale250M in, 50M out | $1,138 |
FAQ
How much does the GPT-5.2-Codex API cost?
GPT-5.2-Codex costs $1.75 per 1M input tokens and $14 per 1M output tokens, and cached input costs $0.175 per 1M.
What is the GPT-5.2-Codex context window?
GPT-5.2-Codex takes 400,000 tokens of context, with up to 128,000 output tokens per request.
When was GPT-5.2-Codex released?
OpenAI released GPT-5.2-Codex on Jan 14, 2026.
Can I use GPT-5.2-Codex with my subscription?
Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6.2 Sol runs through your ChatGPT plan at $0 per token instead.
Can I disable reasoning on GPT-5.2-Codex?
No. Reasoning is always turned on for this model, and there's no switch to turn it off when you just want a bare-bones answer.
Does it work for tool-based workflows and visual inputs?
Yes, it supports both tool calling and structured JSON output, and it accepts images as well as text. That makes it easy to plug into agent loops or feed it screenshots directly.
More OpenAI models
Already paying for ChatGPT? Use GPT-6.2 Sol through your plan, $0 per token.
- Free: 1 subscription, no daily cap, no card
- Pro: $12 a month