OpenAI logo

GPT-5.2-Codex: Pricing, Context Window & Benchmarks

by OpenAI

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. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1-Codex, 5.2-Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outputs. Reasoning effort can be adjusted with the `reasoning.effort` parameter. Read the [docs here](https://openrouter.ai/docs/use-cases/reasoning-tokens#reasoning-effort-level) Codex integrates into developer environments including the CLI, IDE extensions, GitHub, and cloud tasks. It adapts reasoning effort dynamically—providing fast responses for small tasks while sustaining extended multi-hour runs for large projects. The model is trained to perform structured code reviews, catching critical flaws by reasoning over dependencies and validating behavior against tests. It also supports multimodal inputs such as images or screenshots for UI development and integrates tool use for search, dependency installation, and environment setup. Codex is intended specifically for agentic coding applications.

Chat with GPT-5.2-Codex
Input Price
$1.75/1M tokens
Output Price
$14.00/1M tokens
Intelligence
49.0
Coding
43.0

What you can do with GPT-5.2-Codex

Everyday Q&A and clear explanations

Writing help (emails, posts, summaries)

Idea generation and brainstorming

Learning support with step-by-step guidance

Composite Indices

Intelligence, Coding, Math

Standard Benchmarks

Academic and industry benchmarks

Benchmark Highlights

2 tests
GPQA
89.9%
MMLU Pro
N/A
LiveCodeBench
N/A
Math 500
N/A
AIME 2025
N/A
HLE
33.5%
Metric Value
Provider OpenAI
Context Window 400,000 tokens
Input Price $1.75/1M tokens
Output Price $14.00/1M tokens
Release Date Dec 11, 2025
Modalities text, image
Capabilities Vision

Compare GPT-5.2-Codex to other models

See how it stacks up on price, quality, and overall performance.

Frequently asked questions

What is GPT-5.2-Codex good for?

Use GPT-5.2-Codex for everyday tasks like writing, summarizing, brainstorming, and getting clear explanations.

How much does GPT-5.2-Codex cost?

Pricing is based on usage. Current rates are $1.75/1M tokens for input and $14.00/1M tokens for output.

Can I try GPT-5.2-Codex for free?

Yes. You can start a chat instantly and test the model before deciding on a plan.

Does GPT-5.2-Codex support images or audio?

GPT-5.2-Codex can understand images.

Benchmarks and pricing are sourced from Artificial Analysis where available. OpenRouter specs are used as a fallback.