OpenAI: GPT-5.2-Codex API Pricing & Monthly Cost Calculator
OpenAI: GPT-5.2-Codex by OpenAI is priced at $1.75 per 1M input tokens and $14.00 per 1M output tokens with a 400K context window. Prompt caching reduces repeated prefix reads to $0.175/1M (90% savings).
gpt-5.6-sol.
Direct Official vs. OpenRouter Gateway
Comparing direct vendor pricing against multi-provider OpenRouter routing for openai/gpt-5.2-codex.
| Channel | Input / 1M | Output / 1M | Cache Read |
|---|---|---|---|
| Direct Official | $1.75 | $14.00 | $0.175 |
| OpenRouter Gateway | $1.75 | $14.00 | $0.175 |
1M to 1B Token Cost Tiers
Reference monthly spend assuming a standard 75% input / 25% output workload mix.
| Monthly Volume | Standard | 75% Cached | Batch API |
|---|---|---|---|
| 1M tokens | $4.81 | $3.93 | — |
| 10M tokens | $48.13 | $39.27 | — |
| 100M tokens | $481.25 | $392.66 | — |
| 1B tokens | $4,813 | $3,927 | — |
Interactive OpenAI: GPT-5.2-Codex Bill Estimator
Adjust request volume, tokens, and prompt cache hit ratio.
Closest Price-Tier Alternatives
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| OpenAI: GPT-5.2 | $1.75 | $14.00 | 400K |
| OpenAI: GPT-5.3-Codex | $1.75 | $14.00 | 400K |
| OpenAI: GPT-5.6 Terra | $2.00 | $12.00 | 1.05M |
| Google: Gemini 3.1 Pro Preview Custom Tools | $2.00 | $12.00 | 1.05M |
| OpenAI: GPT-5.4 | $2.50 | $15.00 | 1.05M |
| Google: Gemini 3.1 Pro Preview | $2.00 | $12.00 | 1.05M |
Optimize Inference & Self-Hosting
Compare OpenAI: GPT-5.2-Codex against flagship models from OpenAI, Anthropic, Google, and DeepSeek in our interactive comparison matrix, or benchmark self-hosted GPU break-even thresholds.
Model Specifications & FAQs
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....
How much does OpenAI: GPT-5.2-Codex API cost per 1M tokens?
OpenAI: GPT-5.2-Codex costs $1.75 per 1M input tokens and $14.00 per 1M output tokens (official direct provider rate), verified on 2026-11-30.
Does OpenAI: GPT-5.2-Codex support prompt caching or batch discounts?
Yes, cached input reads cost $0.175 per 1M tokens (90% off standard input). Batch API pricing is not listed for this endpoint.
What is the context window and max output for OpenAI: GPT-5.2-Codex?
OpenAI: GPT-5.2-Codex supports a 400,000-token context window and up to 128,000 output tokens per completion.