OpenAI: GPT-5.2-Codex API Pricing & Cost Calculator
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....
ReasoningCachingVision openai/gpt-5.2-codex
Input / 1M
$1.75
Output / 1M
$14.00
Cache Read / 1M
$0.175
Blended 3:1 / 1M
$4.81
Agent Cached / 1M
$3.19
Context Window
400K
Monthly Workload Cost Calculator
Daily
$9.84
Monthly
$295.31
Cache Saved
$177.19
Annual
$3,592.97
Benchmarks & Capabilities
| Intelligence Index | — |
|---|---|
| Coding / Engineering | — / — |
| Agentic Index | — |
| Design Arena Avg ELO | 1089.6 |
| Value Score | — |
| Modality | text+image->text |
| Max Output | 128K |
5 Cheaper Alternatives to OpenAI: GPT-5.2-Codex
| Alternative Model | Blended / 1M | Input / 1M | Output / 1M | Intel | Side-by-Side |
|---|---|---|---|---|---|
| OpenAI: GPT-6.1 Terra (batch) openai/gpt-6.1-terra:batch |
$1.00 | $0.500 | $2.50 | 51 | Compare → |
| Google: Gemini 4 Neon (batch) google/gemini-4-neon:batch |
$3.00 | $1.50 | $7.50 | 62 | Compare → |
| Google: Gemini 4 Hydrogen (batch) google/gemini-4-hydrogen:batch |
$1.50 | $0.750 | $3.75 | 54 | Compare → |
| OpenAI: GPT-6.2 Sol (batch) openai/gpt-6.2-sol:batch |
$2.00 | $1.00 | $5.00 | 57 | Compare → |
| OpenAI: GPT-6.1 Sol (batch) openai/gpt-6.1-sol:batch |
$2.00 | $1.00 | $5.00 | 55 | Compare → |
Frequently Asked Questions
How much does OpenAI: GPT-5.2-Codex API cost per 1M tokens?
OpenAI: GPT-5.2-Codex (openai/gpt-5.2-codex) costs $1.75 per 1M input tokens and $14.00 per 1M output tokens (3:1 blended price: $4.81 per 1M tokens).
Does OpenAI: GPT-5.2-Codex support prompt caching and how much does it save?
Yes. Cached input reads cost $0.175 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $3.19 per 1M tokens.
What is the context window and maximum output of OpenAI: GPT-5.2-Codex?
OpenAI: GPT-5.2-Codex supports a 400K token context window (400,000 tokens) and up to 128K output tokens per completion.
Fetch Live JSON via API
curl -s "https://llm.lhblabs.com/api/v1/models/openai-gpt-5-2-codex"
Recommended Stack: DigitalOcean
Predictable Droplets, managed databases, and GPU nodes for production AI workloads.
Try DigitalOcean →
Self-Serve Placement
Building an LLM API, GPU Cloud, or AI Dev Tool?
Book Sponsor Slot →
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.