---
last_updated: 2026-12-01
source_url: https://opper.ai/openai/gpt-5-codex
title: "GPT-5 Codex by OpenAI"
description: "GPT-5 Codex is OpenAI's agentic coding model, trained on real-world tasks to generate code matching human style while iteratively running tests until they pass."
---

# GPT-5 Codex

By [OpenAI](https://opper.ai/openai).

GPT-5 Codex is a version of GPT-5 optimized for agentic coding, trained with reinforcement learning on real-world coding tasks across diverse environments. It generates code that closely mirrors human style and pull-request preferences, follows instructions precisely, and iteratively runs tests until it achieves passing results.

With a 272k token context window, GPT-5 Codex supports structured output and tool use for integration with development workflows. It is built for developers who need reliable code generation with human-like conventions and testing loops baked into the process.

As part of the GPT-5 family's evolution in coding, GPT-5 Codex serves as a foundation for agentic coding workflows, with newer variants such as GPT-5.2 Codex and GPT-5.3 Codex offering stronger performance on large-scale code transformations and complex software engineering.

## Key info

- Input: Text
- Output: Text
- Features: Tools, Structured output
- Context window: 272K
- Max output: 128K

## Benchmarks

Independent benchmark scores via [Artificial Analysis](https://artificialanalysis.ai) ([view on AA](https://artificialanalysis.ai/models/gpt-5-codex)). Indices and domain scores are out of 100, Omniscience runs from −100 to 100, Briefcase is an Elo rating, and the other evaluation scores are the share of tasks solved.

- Global rank: #142 of 525 LLMs on the [LLM leaderboard](https://opper.ai/llm-leaderboard)
- Tier: Efficient
- Output speed: 218 tok/s
- Intelligence Index (previous version): 24.9

### Coding

- LiveCodeBench: 84%

### Agentic & knowledge work

- Terminal-Bench Hard: 38%
- τ²-Bench Telecom: 87%

### Science & reasoning

- Humanity's Last Exam: 28%
- GPQA Diamond: 84%
- Long-context reasoning: 72%

### Knowledge

- MMMU-Pro: 74%
- MMLU-Pro: 87%

### Math & instruction following

- AIME 2025: 99%
- IFBench: 74%

## Available routes

No routes currently available — GPT-5 Codex isn't routed through the Opper gateway right now. It may return. Contact [hello@opper.ai](mailto:hello@opper.ai) about this model.

## Available models from OpenAI

- [GPT-6.2 Astra](https://opper.ai/openai/gpt-6-2-astra)
- [GPT-6 Astra](https://opper.ai/openai/gpt-6-astra)
- [GPT-6.2 Sol](https://opper.ai/openai/gpt-6-2-sol)
- [GPT-6.1 Sol](https://opper.ai/openai/gpt-6-1-sol)
- [GPT-6.1 Terra](https://opper.ai/openai/gpt-6-1-terra)
- [GPT-6 Luna](https://opper.ai/openai/gpt-6-luna)
