GPT-5.2-Codex
OpenAIUpdated April 2026. GPT-5.2-Codex by OpenAI: $1.75/M cache-miss input, $14.00/M output tokens. Cached input: $0.175/M. 400K context, 128K max output. Vision & Function Calling. Free calculator + compare 40+ models.
Input Price
$1.75
cache miss / 1M tokens
Cached Input
$0.175
per 1M tokens
Output Price
$14.00
per 1M tokens
Context Window
400K
tokens
Specifications
| Provider | OpenAI |
| Model ID | gpt-5.2-codex |
| Input Price | $1.75 / 1M cache-miss tokens |
| Cached Input Price | $0.175 / 1M tokens |
| Output Price | $14 / 1M tokens |
| Context Window | 400K tokens |
| Max Output | 128K tokens |
| Capabilities | textvisionfunction_callingstructured_output |
| Release Date | 2026-04 |
| Notes | Current dedicated Codex API model for long-horizon agentic coding. GPT-5.5 is also available in the Codex product, but the separate Codex API model ID is gpt-5.2-codex. |
Monthly Cost Estimates
Estimated monthly costs based on different daily usage levels (assuming 50% input / 50% output split). Input estimates use cache-miss pricing, so cache-heavy workloads can be lower.
| Daily Tokens | Monthly Cost | Annual Cost |
|---|---|---|
| 10K | $2.36 | $28.35 |
| 50K | $11.81 | $141.75 |
| 100K | $23.63 | $283.50 |
| 500K | $118.13 | $1417.50 |
| 1.0M | $236.25 | $2835.00 |
About GPT-5.2-Codex
GPT-5.2-Codex is a large language model by OpenAI. It features a 400K token context window with up to 128K tokens of output per request. The model supports 4 capabilities: text, vision, function_calling, structured_output.
At $1.75 per million cache-miss input tokens and $14 per million output tokens, GPT-5.2-Codex is positioned as a mid-range option in the OpenAI lineup. Repeated prefix input can be charged at $0.175 per million cached tokens. Use our Token Counter to estimate how many tokens your prompts use, and our Pricing Calculator to compare costs across all models.
GPT-5.2-Codex Key Details
- Pricing: $1.75/M cache-miss input tokens, $0.175/M cached input tokens, $14/M output tokens
- Context window: 400K tokens — suitable for large documents and codebases
- Max output: 128K tokens per response
- Capabilities: text, vision, function_calling, structured_output
- Highlights: Current dedicated Codex API model for long-horizon agentic coding. GPT-5.5 is also available in the Codex product, but the separate Codex API model ID is gpt-5.2-codex.
- Released: 2026-04
Other OpenAI Models
Similar Price Range
Related Tools
FAQ
How much does GPT-5.2-Codex cost?
GPT-5.2-Codex costs $1.75 per million cache-miss input tokens and $14 per million output tokens. Cached input costs $0.175 per million tokens. For a typical workload of 100K input tokens/day and 50K output tokens/day, expect approximately $26.25/month before cache-hit savings.
What is GPT-5.2-Codex's context window?
GPT-5.2-Codex supports a context window of 400K tokens. This means your combined input prompt and output response can be up to 400K tokens. The maximum output per response is 128K tokens.
Is GPT-5.2-Codex good for my use case?
GPT-5.2-Codex supports text, vision, function_calling, structured_output. As a mid-range model, it balances capability and cost for most production use cases. Use our Pricing Calculator to compare with alternatives.