GPT-5.1 Codex is a variant of GPT-5.1 purpose-built for agentic coding in Codex β OpenAI's agentic coding environment spanning CLI, IDE extension, cloud sandbox, and GitHub integration. Announced alongside GPT-5.1 on November 12, 2025, it is the direct successor to GPT-5 Codex and was itself superseded by GPT-5.1-Codex-Max (November 18, 2025) as the default coding model in Codex surfaces. GPT-5.1 Codex was trained on real-world software engineering tasks: building full projects from scratch, adding features and tests, debugging, large-scale refactors, and code reviews.
From a TheRouter operator's perspective, GPT-5.1 Codex is accessible through the standard /v1/chat/completions endpoint with full OpenAI-compatible parameters (temperature, top_p, max_tokens, tools, tool_choice, response_format, reasoning_effort, stop). It shares GPT-5.1's 400K context window, 128K max output, and $1.25/M input / $10/M output pricing. The model is listed as listed:true and active:true in TheRouter's catalog. For agentic coding workflows specifically, GPT-5.1 Codex benefits from dedicated Codex toolchain support (apply_patch, shell) first introduced with GPT-5.1.
Position within the family: GPT-5.1 Codex sits between the general-purpose GPT-5.1 (best for general reasoning/coding) and GPT-5.1-Codex-Max (best for long-running tasks with compaction). The Codex family also includes GPT-5.1-Codex-Mini (faster, cheaper) and GPT-5.1-Codex-Max (the most capable, with cross-window compaction). As of May 2026, GPT-5.1 Codex has been superseded by GPT-5.1-Codex-Max as the default Codex model, but remains available via API for agents that need the original agentic coding profile without the compaction overhead of Codex-Max.