OpenAI
Released November 13, 2025

GPT-5.1 Codex

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.

Inputs
Text
Image
Outputs
Text

Model Overview

Capabilities, design details, and architectural traits

GPT-5.1 Codex - GPT-5.1 Tuned for Agentic Coding in Codex

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.

TraitDetail
Defining purposeA version of GPT-5.1 optimized for agentic coding tasks inside Codex or Codex-like harnesses, not general-purpose use.
Deployment modelAvailable only through the Responses API, with the model snapshot regularly updated rather than locked at launch.
Companion toolsBuilt to work with apply_patch, a freeform structured-diff tool for file edits without JSON escaping, and a shell tool for running commands directly.

Released Alongside a Smaller Sibling

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.

Benchmark Performance

Independent evaluations · Artificial Analysis

23.7%
Intelligence

Accuracy & Capability Details

GPQA - Graduate Science86.0%
Humanity's Last Exam25.7%
SciCode - Scientific Coding40.2%
Instruction Following70.0%
Long Context Reasoning69.3%
τ²-Bench - Agentic Tasks83.0%
TerminalBench - System Control34.8%

Compare Models Side-by-Side

Evaluate specifications, pricing, and independent benchmark indices

Model Details
General Info
ProviderOpenAIAnthropicAnthropic
Release DateNovember 13, 2025September 22, 2026September 28, 2026
Knowledge Cutoff--Jun 2026
Context & Limits
Context Window400K
1M
Best Context Window
1M
Best Context Window
Pricing (per 1M tokens)
Input Pricing
$1.25
Best Input Pricing
$4$2
Output Pricing
$10
Best Output Pricing
$20
$10
Best Output Pricing
Modalities
Inputs
textimage
textimagefile
textimagefile
Outputs
text
text
text
Benchmarks (0-100)
Intelligence Index23.7
57.6
Best Intelligence Index
56.0
Coding Index---
Agentic Index---
GPT-5.1 Codex
Claude Opus 5.5
Claude Sonnet 5.5

Humanity's Last Exam

Extremely difficult logical reasoning and knowledge.

26%
GPT-5.1 Codex
Humanity's Last Exam
Score: 26%
GPT-5.1 Codex
61%
Claude Opus 5.5
Humanity's Last Exam
Score: 61%
Claude Opus 5.5
55%
Claude Sonnet 5.5
Humanity's Last Exam
Score: 55%
Claude Sonnet 5.5

Long Context Reasoning

Logical reasoning over long context windows.

69%
GPT-5.1 Codex
Long Context Reasoning
Score: 69%
GPT-5.1 Codex
85%
Claude Opus 5.5
Long Context Reasoning
Score: 85%
Claude Opus 5.5
83%
Claude Sonnet 5.5
Long Context Reasoning
Score: 83%
Claude Sonnet 5.5

SciCode Benchmark

Scientific coding and mathematical modeling.

40%
GPT-5.1 Codex
SciCode Benchmark
Score: 40%
GPT-5.1 Codex
67%
Claude Opus 5.5
SciCode Benchmark
Score: 67%
Claude Opus 5.5
61%
Claude Sonnet 5.5
SciCode Benchmark
Score: 61%
Claude Sonnet 5.5

Independent evaluation data provided by Artificial Analysis. To view the latest benchmarks and full details, visit their official site.

Explore more from OpenAI

Other models by OpenAI

Top AI Models

Leading alternatives by intelligence score

View all