GPT-5.1 Codex is OpenAI's agentic-coding variant of GPT-5.1, built for Codex harnesses, available only via the Responses API with apply_patch and shell tooling.
Capabilities, design details, and architectural traits
GPT-5.1 Codex is OpenAI's coding-focused variant of GPT-5.1, built to run inside Codex or similar agent harnesses rather than as a general chat model. It is offered only through the Responses API, where the underlying snapshot is updated over time instead of staying fixed at one release.
| Trait | Detail |
|---|---|
| Defining purpose | A version of GPT-5.1 optimized for agentic coding tasks inside Codex or Codex-like harnesses, not general-purpose use. |
| Deployment model | Available only through the Responses API, with the model snapshot regularly updated rather than locked at launch. |
| Companion tools | Built to work with apply_patch, a freeform structured-diff tool for file edits without JSON escaping, and a shell tool for running commands directly. |
OpenAI released GPT-5.1 Codex Mini on the same day, positioned as a more cost-efficient option for the same coding and agentic workloads. The pairing reflects a two-tier approach: one Codex model tuned for capability, one tuned for cost, both built on the same GPT-5.1 base.
Independent evaluations · Artificial Analysis
Evaluate specifications, pricing, and independent benchmark indices
| Model Details | |||
|---|---|---|---|
| General Info | |||
| Provider | OpenAI | Anthropic | Anthropic |
| Release Date | November 13, 2025 | July 24, 2026 | June 9, 2026 |
| Knowledge Cutoff | - | May 2026 | - |
| Context & Limits | |||
| Context Window | 400K | 1M Best Context Window | 1M Best Context Window |
| Pricing (per 1M tokens) | |||
| Input Pricing | $1.25 Best Input Pricing | $5 | $10 |
| Output Pricing | $10 Best Output Pricing | $25 | $50 |
| Modalities | |||
| Inputs | textimage | textimage | textimagefile |
| Outputs | text | text | text |
| Benchmarks (0-100) | |||
| Intelligence Index | 35.6 | 63.1 Best Intelligence Index | 62.1 |
| Coding Index | - | 78.0 Best Coding Index | 76.5 |
| Agentic Index | - | 59.2 Best Agentic Index | 56.6 |
Graduate-level reasoning and expert Q&A evaluation.
Extremely difficult logical reasoning and knowledge.
Logical reasoning over long context windows.
Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.