GPT-5.2-Codex pricing, context and benchmark
GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows.
Everything that matters, in one table
Context, pricing, cache, modalities and tooling, from the model registry and Artificial Analysis.
| Model | GPT-5.2-Codex |
| Model ID | openai/gpt-5.2-codex |
| Provider | Openai |
| Release date | 14 January 2026 |
| Status | Generally available |
| Input context | 400,000 tokens |
| Output context | 128,000 tokens |
| Official input pricing | $1.75 per 1M tokens |
| Official output pricing | $14 per 1M tokens |
| Cache read pricing | $0.175 per 1M tokens (90% off input) |
| Market input pricing | $1.75 per 1M (cheapest route) |
| Market output pricing | $14 per 1M (cheapest route) |
| Input modalities | text · image |
| Output modalities | text |
| Reasoning control | Not exposed |
| Tool support | Text generation only |
| Tokenizer | GPT |
| Provider routes | 1 endpoint |
| Artificial Analysis index | Not published |
| Speed | 59 tokens/s, 72.89s to first token |
| Knowledge cutoff | Not publicly stated |
Input and output support
| Modality | Input | Output | Billed at |
|---|---|---|---|
| Text | ✓ yes | ✓ yes | $1.75 in |
| Image | ✓ yes | no | $1.75 in |
| Audio | no | no | not supported |
| Video | no | no | not supported |
| File (PDF) | no | no | not supported |
What is 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 carries a 400K token window, uses the GPT tokenizer and is served by Openai. On Hoodgen it sits in the Multimodal tier of the model menu next to its siblings, so you can switch mid conversation without losing the thread.
Release and what changed from the previous version
This is the only release of GPT-5.2-Codex on OpenRouter, released 14 January 2026. The provider has not published a knowledge cutoff, so treat training data as recent but unconfirmed for very new events.
Features and capabilities
What can you do with GPT-5.2-Codex?
Prompt caching and how to cut the bill
Cached input bills at $0.175 per million instead of $1.75, a 90% discount. Keep the system prompt and documents first and the changing question last, so every call hits the cache.
GPT-5.2-Codex pricing
Official pricing
- $0.175 cached input
- 400K context
- text, image input
- 1 route on OpenRouter
- What Hoodgen routes to first
- Same model, lower bill
Market pricing, every route
| Provider | Tier | Input | Output | Cache read | Uptime 24h |
|---|---|---|---|---|---|
| Azure | standard | $1.75 | $14 | $0.175 | 100.0% |
API pricing and cost calculator
| Rate | Per call | Total | Credits |
|---|---|---|---|
| Cheapest route | $0.0371 | $18.55 | 17623 |
| List price | $0.0371 | $18.55 | 17623 |
API and developer information
| Model ID | openai/gpt-5.2-codex |
| Endpoint | https://openrouter.ai/api/v1/chat/completions |
| Parameters | prompt and max_tokens |
| Streaming | Yes, server sent events |
| Modality string | text+image->text |
| Max prompt tokens | 400,000 |
| Max completion tokens | 128,000 |
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2-codex",
"messages": [{ "role": "user", "content": "Summarise this document." }],
"max_tokens": 1024
}'Model limitations
| Text only output | It cannot generate images, audio or video. Pair it with an image model on Hoodgen when you need visuals. |
| Output cap | 128,000 tokens per request. Long deliverables have to be chunked. |
| Benchmarks not published | Artificial Analysis does not publish an Intelligence Index for this release, so no benchmark score is claimed here. |
| Knowledge cutoff | The provider does not state a fixed cutoff for every release. Verify very recent events against search. |
GPT-5.2-Codex vs other Openai models
| Model | Context | Input /1M | Output /1M | AA index | Released |
|---|---|---|---|---|---|
| GPT-5.2-Codex | 400K | $1.75 | $14 | n/a | 2026 |
| GPT-6 Astra | 1.05M | $10 | $50 | 57 | Sep 2026 |
| GPT-6 Astra Pro | 1.05M | $10 | $50 | n/a | Sep 2026 |
| GPT-5.6 Sol | 1.05M | $4 | $20 | n/a | 2026 |
| GPT-5.6 Sol Pro | 1.05M | $4 | $20 | n/a | 2026 |
| GPT-5.6 Terra | 1.05M | $2 | $12 | 32 | 2026 |
Privacy and data policy
- On Hoodgen, prompts and attachments answer that request and stay in your conversation history so you can reopen it. They are not used to train models.
- Requests route through OpenRouter to Openai and are covered by that provider's API terms.
- Do not paste secrets or personal data you would not send to any hosted model.
GPT-5.2-Codex questions, answered
Start chatting with GPT-5.2-Codex
Free to try on Hoodgen AI, with a live credit estimate before every send. No API key, no setup.