Skip to content

GPT-5.2-Codex

OpenAI · Reasoning · 400K context · released Jan 14, 2026 · checked 7h ago

Ways to buy 2

Way to buyIn / out per 1M
OpenAI API
The lab's own API · cached $0.175
$1.75 / $14List price
Azure AI Foundry
Default region · cached $0.175
$1.75 / $14Same as list

USD per 1M tokens. Regions are separate routes.

Through a gateway

Your own numbers

100M input and 20M output tokens a month: $455.00 direct.

No published token fee: Martian Gateway, Portkey, TrueFoundry AI Gateway.

Related models

In / out per 1M
GPT-6 Luna
OpenAI · 1.05MCheapest: $0.1 on OpenAI (flex)
$0.1 / $0.5
GPT-6 Luna Pro
OpenAI · 1.05MCheapest: $0.1 on OpenAI (flex)
$0.1 / $0.5
GPT-6 Sol
OpenAI · 1.05MCheapest: $2 on OpenAI (flex)
$2 / $10
GPT-6 Sol Pro
OpenAI · 1.05MCheapest: $2 on OpenAI (flex)
$2 / $10
Claude Opus 5
Anthropic · 1M
$5 / $25
Claude Opus 5.5
Anthropic · 1M
$4 / $20
Claude Opus 4.6
Anthropic · 1M
$5 / $25
Claude Opus 4.7
Anthropic · 1M
$5 / $25

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.

Takes text, image in and returns text. First listed Jan 23, 2026. Up to 128K output tokens. Blended price $4.81 per 1M tokens at 3 input to 1 output. Model id gpt-5-2-codex.

Price history

$3$10Jan 23, 2026Output $14Input $1.75

List price since Jan 23, 2026, from Internet Archive snapshots of the OpenRouter catalog, then daily reads.

Questions

How much does GPT-5.2-Codex cost?

$1.75 per million input tokens and $14 per million output tokens, with cached input at $0.175.

What is the context window of GPT-5.2-Codex?

400K tokens, with up to 128K tokens of output.

Where is GPT-5.2-Codex cheapest?

Of 2 routes tracked, Azure AI Foundry is cheapest at $1.75 input and $14 output per million tokens.

Sources: OpenRouter's public model catalog and each provider's own pricing page, read every morning at 05:00 UTC; gateway fees re-read every Monday. List prices: your contract may differ. Logos via logo.dev; trademarks belong to their owners.

Price changes by email

Thursdays, only in weeks when an LLM API list price changed.

Double opt-in. Unsubscribe any time.