GPT-5.1 Codex

by OpenAI

GPT-5.1 Codex is a code-tuned variant of GPT-5.1 with a 272,000-token context window, aimed at software development and code-heavy tasks. It handles code generation, refactoring, debugging, and reasoning over large codebases. The model supports function calling and structured outputs, so it integrates with development tools and automated code workflows. Its large context window lets it work across many files and keep changes consistent within a project.

Key info

Input
Output
Features
Context window
272K
Max output
128K

Best for

How GPT-5.1 Codex scores on each use case.

Benchmarks

Independent benchmark scores: the Intelligence Index and the individual evaluations behind it, grouped by skill.

Global rank#149 of 523 LLMs
TierEfficient
Output speed129 tok/s
Intelligence Index (previous version)23.7
Coding
LiveCodeBench
85%
Agentic & knowledge work
Terminal-Bench Hard
35%
τ²-Bench Telecom
83%
Science & reasoning
Humanity's Last Exam
26%
GPQA Diamond
86%
Long-context reasoning
69%
Knowledge
MMMU-Pro
73%
MMLU-Pro
86%
Math & instruction following
AIME 2025
96%
IFBench
70%

Available routes

No routes currently available — GPT-5.1 Codex isn't routed through the Opper gateway right now. It may return.

Contact us about this model →

Available models from OpenAI

Start building with 700+ models

One API key for every major provider, up and running in minutes.

Get startedView Documentation