Skip to content

GPT-5.2-Codex

API pricing per million tokens

gpt-5-2-codex ReasoningChecked 5h ago
Input
$1.75
per 1M, list
Output
$14
per 1M tokens
Cached input
$0.175
no batch tier listed
Context
400K
128K max output

Where to buy it (2)

  • Azure AI Foundrydefault region$1.75 / $14cached $0.175
  • OpenAI (list)the lab's own API$1.75 / $14cached $0.175

Through a gateway

Your own numbers

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

Related models

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. Blended price $4.81 per 1M tokens at 3 input to 1 output.

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.

List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.

Weekly: LLM API list prices that changed, Thursday mornings.