openai

OpenAI: GPT-5.2-Codex

The OpenAI GPT-5.2-Codex model is designed to handle both text and image inputs, with a substantial context length of 400,000 tokens. It supports reasoning and tools integration, making it versatile for complex tasks. While structured output is not explicitly supported, its robust capabilities in handling diverse input modalities and performing reasoning make it a strong candidate for various applications. For users prioritizing cost-effectiveness and performance, the GPT-5.2-Codex should be shortlisted. With a blended benchmark score of 66.4 across multiple independent benchmarks, it offers reliable results. The pricing at $1.75 per million input tokens and $14.0 per million output tokens ensures that cost is manageable while delivering high-quality outcomes; however, the exact performance metrics might vary depending on specific use cases.

Quality Score
97/100
price + capability + benchmarks
Input Price
$1.75
per 1M tokens
Output Price
$14.00
per 1M tokens
Context Window
400,000
tokens

Benchmark results

Independent, published benchmarks. Blended score 66.4 across 1 benchmark, last refreshed 2026-07-23. How scoring works →

BenchmarkMeasuresScore
AI Index broad capability composite 66.2
Model ID
openai/gpt-5.2-codex
Vendor
openai
Released
January 2026
Tokenizer
GPT
Input Modalities
text, image
Output Modalities
text
Max Output
128,000 tokens
Tool Calling
✓ supported
Structured Output
✓ supported
Reasoning Mode
✓ supported
Vision
✓ accepts images
Audio
no
Moderated
yes

What it costs in practice

Computed from the current $1.75/M input and $14.00/M output rates. Run your own numbers →

JobTokensCost
Summarize a 50-page report 30k in / 1.5k out $0.07
Classify 1,000 customer emails 500k in / 50k out $1.58
A month of a busy support chatbot 5M in / 2M out $36.75

Similar models

Quick answers

How much does OpenAI: GPT-5.2-Codex cost?
$1.75 per million input tokens and $14.00 per million output tokens.
What is OpenAI: GPT-5.2-Codex's context window?
400,000 tokens, roughly 600 pages of text in a single request.
Does OpenAI: GPT-5.2-Codex support tool calling?
It supports tool calling, structured output, a reasoning mode.
Can OpenAI: GPT-5.2-Codex process images?
Yes, it accepts image input.