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.
Capabilities, design details, and architectural traits
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.
| Trait | Detail |
|---|---|
| Native compaction | Compresses context in-session to maintain continuity across extended coding tasks without hitting context limits mid-work |
| Large code transformation scope | Explicitly optimized for large-scale refactors, code migrations, and multi-file feature builds, not just single-file completions |
| Vision in coding sessions | Accepts screenshots, technical diagrams, charts, and UI mockups as input; translates design mocks to functional prototypes directly |
| Windows-native agentic coding | Documented improvement in agentic performance within native Windows environments, a capability introduced in the prior generation and substantially improved here |
| Dual-use cybersecurity positioning | Highest 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 delivery | Available via the Responses API (not Chat Completions), identical to the model running inside the Codex product |
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.
Independent evaluations · Artificial Analysis
Evaluate specifications, pricing, and independent benchmark indices
| Model Details | |||
|---|---|---|---|
| General Info | |||
| Provider | OpenAI | Anthropic | Anthropic |
| Release Date | December 11, 2025 | July 24, 2026 | June 9, 2026 |
| Knowledge Cutoff | - | May 2026 | - |
| Context & Limits | |||
| Context Window | 400K | 1M Best Context Window | 1M Best Context Window |
| Pricing (per 1M tokens) | |||
| Input Pricing | $1.75 Best Input Pricing | $5 | $10 |
| Output Pricing | $14 Best Output Pricing | $25 | $50 |
| Modalities | |||
| Inputs | textimage | textimage | textimagefile |
| Outputs | text | text | text |
| Benchmarks (0-100) | |||
| Intelligence Index | 41.2 | 63.1 Best Intelligence Index | 62.1 |
| Coding Index | - | 78.0 Best Coding Index | 76.5 |
| Agentic Index | - | 59.2 Best Agentic Index | 56.6 |
Graduate-level reasoning and expert Q&A evaluation.
Extremely difficult logical reasoning and knowledge.
Logical reasoning over long context windows.
Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.