Long-horizon coding
Used native context compaction to continue extended coding tasks with less loss of earlier repository context.
Historical tool archive
Deprecated legacy model. GPT-5.2-Codex was OpenAI's coding-optimized model for long-running software engineering and defensive cybersecurity tasks.
No longer active

Archive
OpenAI released GPT-5.2-Codex in December 2025 as a coding-focused version of GPT-5.2. It improved long-horizon work through context compaction, large refactors and migrations, Windows-based agent workflows, screenshot and diagram understanding, and defensive cybersecurity tasks.
GPT-5.2-Codex is now listed as deprecated in OpenAI's model catalog and is no longer a model teams should select for new Codex workflows. Its API documentation remains available for legacy reference and migration planning, with newer Codex and GPT model generations taking its place.
Past capabilities
Used native context compaction to continue extended coding tasks with less loss of earlier repository context.
Was optimized for feature builds, refactors, migrations, and other work spanning many files.
Accepted image input for interpreting screenshots, technical diagrams, charts, and interface mockups.
Supported streaming, function calling, structured outputs, and low through xhigh reasoning effort.
Availability
OpenAI's legacy API page lists GPT-5.2-Codex at $1.75 per million input tokens, $0.175 per million cached input tokens, and $14 per million output tokens. Because the model is deprecated, these figures are included for legacy cost analysis rather than new deployment planning.
Status checked . Review the historical source ↗
Current options
Coding
GPT-5.3-Codex was the direct next Codex generation and is useful for understanding the model line's progression.
Explore GPT-5.3-Codex →Coding
Use the main Codex page for the current agentic coding product, surfaces, and model options.
Explore Codex →Coding
Use the Codex App page for the current desktop workflow for managing multiple coding agents.
Explore Codex App →Questions
It was OpenAI's coding-optimized GPT-5.2 variant for long-running agentic software engineering and defensive cybersecurity work.
No. OpenAI's API model catalog now marks GPT-5.2-Codex as deprecated.
OpenAI emphasized context compaction, large refactors and migrations, Windows environments, vision for technical images, tool calling, and cybersecurity capabilities.

Codeium Windsurf: Provides ai-powered code suggestions, completions, and debugging tools for developers.

MiniMax 2.1 - New model with powerful capabilities across a variety of programming languages and for mobile and web app development
%20(1).png)
Devstral 2 - Mistral's next-gen family of coding-specific models

GLM-4.7 - Z AI's new SOTA open-source model with advanced coding and reasoning capabilities

Get access to all our AI courses, hundreds of real-world AI use cases, live expert-led workshops, an exclusive network of AI early adopters, and more.
Get unlimited access to all of our current & upcoming industry-specific AI courses for the duration of your subscription.
To keep up with the rapid pace of AI, our team publishes AI implementation guides daily. Our library contains 300+ practical use cases to automate real-world work.
Join weekly, live, interactive sessions with industry leaders who are at the forefront of AI for hands-on implementation guidance and exclusive insights.
Network with an exclusive community of AI-first professionals who are working smarter with AI. Learn how early adopters are using AI in their work and businesses.