gpt-5.2-codex · OpenAI
GPT-5.2-Codex is an upgraded version of GPT-5.2, optimized for agentic coding tasks in Codex and similar execution environments. The model is specifically enhanced for code generation, modification, refactoring, and automated execution workflows, enabling more efficient participation in multi-step, tool-driven programming processes. GPT-5.2-Codex supports low, medium, high, and xhigh reasoning effort settings, allowing flexible trade-offs between latency, reasoning depth, and token usage depending on task complexity.
GPT-5.2-Codex is an upgraded version of GPT-5.2, optimized for agentic coding tasks in Codex and similar execution environments. The model is specifically enhanced for code generation, modification, refactoring, and automated execution workflows, enabling more efficient participation in multi-step, tool-driven programming processes. GPT-5.2-Codex supports low, medium, high, and xhigh reasoning effort settings, allowing flexible trade-offs between latency, reasoning depth, and token usage depending on task complexity.
GPT-5.2-Codex has a 400,000 token context window.
On AIHubMix, GPT-5.2-Codex costs $1.75 per million input tokens and $14 per million output tokens. Cached input reads are billed at $0.175 per million tokens.
GPT-5.2-Codex accepts text, image and PDF input.
GPT-5.2-Codex supports thinking, function calling and structured outputs. Per-protocol parameter support is listed in the capability table on this page.
GPT-5.2-Codex is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to gpt-5.2-codex — no other code changes needed.
GPT-5.2-Codex is developed by OpenAI. AIHubMix aggregates it alongside models from other providers behind one API and one bill.
GPT-5.2-Codex was released on December 11, 2025 by OpenAI.
GPT-6.1 Sol is OpenAI's latest model in the GPT-6 series, specifically designed for…
GPT-6 Luna is OpenAI's latest and most efficient model, designed for focused…
GPT-6 Sol is OpenAI's latest model in the GPT-6 series, specifically designed for complex…
GPT-6 Astra is OpenAI's newest and most intelligent model, with industry-leading…
OpenAI's latest realtime speech-to-text model, built for low-latency use — it streams…
GPT-Realtime-2.1 is a reasoning speech-to-speech model for the Realtime API, with tool…
Use GPT-5.2-Codex via the AIHubMix unified API — one interface for every major LLM.