by 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.18 per million tokens.
gpt-5.2-codex accepts text and image 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.6 Luna is designed for cost-sensitive, high-volume workloads. It roughly…
GPT‑5.6 Sol sets a new standard for both intelligence and efficiency, achieving…
GPT-5.6 Terra is designed for workloads that balance intelligence and cost. It roughly…
GPT-4o Transcribe Diarize is an automatic speech recognition (ASR) model with built-in…
The gpt-audio model is OpenAI's first officially released (generally available) audio…
GPT-image-2 is OpenAI's latest cutting-edge image generation model. Key value adds…
Use gpt-5.2-codex via the AIHubMix unified API — one interface for every major LLM.