Home › Providers › openai › OpenAI: GPT-5.2-Codex
OpenAI: GPT-5.2-Codex API Pricing
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 cost for a real workload?
At 10M input + 2M output tokens per month, OpenAI: GPT-5.2-Codex costs about $45.5 ($17.5 input + $28 output). Try your own volumes in the cost calculator.
What are cheaper alternatives to OpenAI: GPT-5.2-Codex?
- Anthropic: Claude Opus 5 (batch) — $2.5 in / $12.5 out per 1M
- Anthropic: Claude Opus 4.8 (batch) — $2.5 in / $12.5 out per 1M
- Anthropic: Claude Opus 4.7 (batch) — $2.5 in / $12.5 out per 1M
- Anthropic: Claude Opus 4.6 (batch) — $2.5 in / $12.5 out per 1M
- Anthropic: Claude Opus 4.5 (batch) — $2.5 in / $12.5 out per 1M
- Amazon: Nova Premier 1.0 — $2.5 in / $12.5 out per 1M
Compare OpenAI: GPT-5.2-Codex with other models
OpenAI: GPT-5.2-Codex vs OpenAI: gpt-oss-20bOpenAI: GPT-5.2-Codex vs OpenAI: gpt-oss-20b (batch)OpenAI: GPT-5.2-Codex vs OpenAI: gpt-oss-120b (batch)OpenAI: GPT-5.2-Codex vs OpenAI: GPT-5 Nano (batch)OpenAI: GPT-5.2-Codex vs OpenAI: GPT-4.1 Nano (batch)OpenAI: GPT-5.2-Codex vs OpenAI: GPT-6 Luna Pro (batch)
Frequently asked questions
How much does OpenAI: GPT-5.2-Codex cost?
OpenAI: GPT-5.2-Codex costs $1.75 per 1M input tokens and $14 per 1M output tokens (list price, snapshot October 21, 2026). At 10M input + 2M output tokens per month that is about $45.5.
What is the context window of OpenAI: GPT-5.2-Codex?
OpenAI: GPT-5.2-Codex has a context window of 400,000 tokens and can return up to 128,000 output tokens per response.
What are cheaper alternatives to OpenAI: GPT-5.2-Codex?
Cheaper models include Anthropic: Claude Opus 5 (batch) ($2.5 in / $12.5 out), Anthropic: Claude Opus 4.8 (batch) ($2.5 in / $12.5 out), Anthropic: Claude Opus 4.7 (batch) ($2.5 in / $12.5 out). See the full list on this page.
Is OpenAI: GPT-5.2-Codex free to use?
No. OpenAI: GPT-5.2-Codex is a paid model at $1.75 input / $14 output per 1M tokens. 20 free models are listed on the free models page.
Provider: openai · Model ID: openai/gpt-5.2-codex · Modality: text+image->text · Price snapshot October 21, 2026, refreshed daily. How we collect prices