OpenAI
GPT-5.2-Codex pricing and cost calculator
GPT-5.2-Codex from OpenAI costs $1.75 per million input tokens and $14 per million output tokens, with a context window of 400,000 tokens. It was released on Jan 14, 2026. Cached input tokens are billed at $0.175 per million.
- Input price
- $1.75
- Output price
- $14
- Context window
- 400,000
- Released
- Jan 14, 2026
Token cost calculator
| Model | Per request | Per day | Per month (30 days) |
|---|---|---|---|
| GPT-5.2-Codex | $0.00875 | $8.75 | $262.50 |
| Gemini 4 Carbon | $0.007 | $7.00 | $210.00 |
Token estimate: about 4 characters per token for English, about 1 token per character for Chinese, Japanese and Korean. Exact counts depend on each model's tokenizer.
Price and specs
| Input price | $1.75 / 1M |
|---|---|
| Output price | $14 / 1M |
| Cached input | $0.175 / 1M |
| Context window | 400,000 |
| Max output | 128,000 |
| Accepts | text, images |
| Produces | text |
| Reasoning mode | Yes |
| Tool / function calling | Yes |
| Structured (JSON) output | Yes |
| Open weights | No |
| Released | Jan 14, 2026 |
What typical workloads cost
| 1,000 chat replies (1,000 input + 500 output tokens each) | $8.75 |
|---|---|
| Summarise a 100-page document (≈50,000 input + 1,000 output tokens) | $0.102 |
| 1 million input + 1 million output tokens | $15.75 |
Prices are list prices in USD per 1 million tokens from OpenRouter's public model list, refreshed daily. Direct provider prices, batch discounts and regional pricing may differ.
Cheaper models with at least the same context window
- Gemini 4 Carbon$2 / $10
- GPT-6.2 Sol$2 / $10
- GPT-6.1 Sol$2 / $10
- Claude Sonnet 5.5$2 / $10
- Gemini 4 Hydrogen$1.50 / $7.50
- GPT-6.1 Terra$1 / $5
Similarly priced models from other providers
- Nova Premier 1.0$2.50 / $12.50
- Nano Banana Pro (Gemini 3 Pro Image)$2 / $12
- Gemini 3.1 Pro Preview Custom Tools$2 / $12
- Gemini 3.1 Pro Preview$2 / $12
- Nano Banana Pro (Gemini 3 Pro Image Preview)$2 / $12
- Command A$2.50 / $10
More OpenAI models
- GPT-6.2 Astra$8 / $40
- GPT-6.2 Astra Pro$8 / $40
- GPT-6.2 Sol$2 / $10
- GPT-6.2 Sol Pro$2 / $10
- GPT-6.1 Terra$1 / $5
- GPT-6.1 Terra Pro$1 / $5
- GPT-6.1 Sol$2 / $10
- GPT-6.1 Sol Pro$2 / $10
About 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 FAQ
- How much does GPT-5.2-Codex cost?
- GPT-5.2-Codex costs $1.75 per 1M input tokens and $14 per 1M output tokens. 1,000 replies with 1,000 input and 500 output tokens each cost about $8.75.
- What is the context window of GPT-5.2-Codex?
- GPT-5.2-Codex accepts up to 400,000 tokens of context and can return up to 128,000 tokens in one response.
- Can GPT-5.2-Codex read images?
- Yes. GPT-5.2-Codex accepts text, images as input.
- What is a cheaper alternative to GPT-5.2-Codex?
- Cheaper models with at least the same context window include Gemini 4 Carbon, GPT-6.2 Sol, GPT-6.1 Sol.