---
id: "openai/gpt-5.2-codex"
also: ["openai/gpt-5.2-codex-20260114", "requesty/openai/gpt-5.2-codex", "vercel/openai/gpt-5.2-codex"]
cheapest_list_usd_per_m: "1.575 in, 12.6 out, at openai-responses on requesty"
cheapest_effective_usd_per_m: "0.5082 in, 14.0 out, at azure on openrouter"
context: 400000
max_output: 128000
input: ["text", "image"]
output: ["text"]
released: "2026-01-14"
reasoning: ["xhigh", "high", "medium", "low"]
api: ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"]
params: ["include_reasoning", "max_completion_tokens", "max_tokens", "reasoning", "reasoning_effort", "response_format", "seed", "stop", "structured_outputs", "temperature", "tool_choice", "tools", "verbosity"]
endpoints: 4
gateways: "requesty (2), openrouter (1), vercel (1)"
no_training: 4
trains: 0
retains_prompts: 1
---
# OpenAI: GPT-5.2-Codex

GPT‑5.2-Codex is a version of GPT‑5.2⁠ further optimized for agentic coding in Codex, including improvements on long-horizon work through context compaction, stronger performance on large code changes like refactors and migrations, improved performance in Windows environments, and significantly stronger cybersecurity capabilities.