openai logo

OpenAI

GPT-5.2-Codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows.

At a glance

Input / 1M
$1.75
Output / 1M
$14
Context
400K
Max output
128K
Intelligence
28.5
Released
Jan 2026
Text inputImage inputReasoningTool calling

Pricing

GPT-5.2-Codex API pricing

Per-token rates, plus what common tasks actually cost.

Input tokensPer 1M tokens$1.75
Output tokensPer 1M tokens$14
Cached input (read)Per 1M tokens$0.18
Cache writePer 1M tokensNot available
Web searchPer request$0.01

Chat message

2K in, 500 out

$10.50

per 1,000 requests

Coding task

30K in, 4K out

$108.50

per 1,000 requests

Long document summary

150K in, 2K out

$290.50

per 1,000 requests

Benchmarks

GPT-5.2-Codex benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

28.5

Coding index

Not available

Agentic index

Not available

Specs

Context window and capabilities

What it can read, what it can write, and which API features it supports.

Context window
400K tokens
Max output
128K tokens
Input types
Image, Text
Output types
Text
Reasoning effort
Extra high, High, Medium, Low
Release date
January 14, 2026
  • Tool calling
  • Structured outputs
  • JSON mode
  • Reasoning
  • Temperature
  • Stop sequences
  • Deterministic seed
  • Verbosity control

FAQ

Frequently asked questions

How much does GPT-5.2-Codex cost?

GPT-5.2-Codex costs $1.75 per 1M input tokens and $14 per 1M output tokens through the API. A typical chat message costs about $10.50 per 1,000 messages.

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

GPT-5.2-Codex accepts up to 400K tokens of input and can write up to 128K tokens in a single response.

What is the best alternative to GPT-5.2-Codex?

GLM 5.2 from Z.ai is a strong alternative. It offers: 1.8x cheaper output, higher intelligence score, larger 1.05m context.

Can I use GPT-5.2-Codex alongside other models?

Yes. Shortcut Chat sends one prompt to GPT-5.2-Codex and any other models you pick at the same time, so you can compare answers side by side.

openai logo

Try GPT-5.2-Codex next to every other model.

Use GPT-5.2-Codex alongside all the other models. Use one at a time, or multiple together. Get the best answer from every AI.