OpenAI
Released December 11, 2025

GPT-5.2 Codex

GPT-5.2 Codex by OpenAI is a Codex-native coding agent with native compaction, Windows support, vision input, dual-use cyber capabilities, and 400K context.

Inputs
Text
Image
Outputs
Text

Model Overview

Capabilities, design details, and architectural traits

GPT-5.2 Codex - Agentic Coding Model for Defensive Cybersecurity

GPT 5.2-Codex is a version of GPT 5.2 further optimized for agentic coding in Codex. Its defining focus is on sustaining complex, multi-step tasks across large repositories over extended sessions - without losing track when plans change or attempts fail. A sharp jump in cybersecurity capability at this release prompted OpenAI to pair it with an invite-only trusted access pilot for vetted defensive security professionals.

What Makes GPT 5.2-Codex Distinct

TraitDetail
Native compactionCompresses context in-session to maintain continuity across extended coding tasks without hitting context limits mid-work
Large code transformation scopeExplicitly optimized for large-scale refactors, code migrations, and multi-file feature builds, not just single-file completions
Vision in coding sessionsAccepts screenshots, technical diagrams, charts, and UI mockups as input; translates design mocks to functional prototypes directly
Windows-native agentic codingDocumented improvement in agentic performance within native Windows environments, a capability introduced in the prior generation and substantially improved here
Dual-use cybersecurity positioningHighest cyber capability of any OpenAI model at release, with deployment paired with a staged rollout, added model safeguards, and a vetted Trusted Access pilot for defensive security work
Responses API deliveryAvailable via the Responses API (not Chat Completions), identical to the model running inside the Codex product

Trusted Access Pilot

GPT 5.2-Codex introduced a documented invite-only trusted access program for security professionals and organizations conducting authorized red-teaming, vulnerability research, or defensive threat emulation. Qualifying participants receive access to more permissive model capabilities than those in the standard API, reflecting OpenAI's stated intent to pair every capability gain with tighter access controls.

Benchmark Performance

Independent evaluations · Artificial Analysis

28.5%
Intelligence

Accuracy & Capability Details

GPQA - Graduate Science89.9%
Humanity's Last Exam35.7%
SciCode - Scientific Coding54.6%
Instruction Following77.6%
Long Context Reasoning82.3%
τ²-Bench - Agentic Tasks92.1%
TerminalBench - System Control37.1%

Compare Models Side-by-Side

Evaluate specifications, pricing, and independent benchmark indices

Model Details
General Info
ProviderOpenAIAnthropicOpenAI
Release DateDecember 11, 2025November 9, 2026November 17, 2026
Knowledge Cutoff---
Context & Limits
Context Window400K1M
1.1M
Best Context Window
Pricing (per 1M tokens)
Input Pricing
$1.75
Best Input Pricing
$8$8
Output Pricing
$14
Best Output Pricing
$40$40
Modalities
Inputs
textimage
textimagefile
textimagefile
Outputs
text
text
text
Benchmarks (0-100)
Intelligence Index28.5
64.8
Best Intelligence Index
62.2
Coding Index---
Agentic Index---

Benchmark comparison not available

Select at least two models that have available benchmark evaluation data to render the performance comparison charts.

Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.

Explore more from OpenAI

Other models by OpenAI

Top AI Models

Leading alternatives by intelligence score

View all