prices synced 2026-07-28

GPT-5.1-Codex

OpenAI · Multimodal · Released Nov 2025

Compare

GPT-5.1-Codex is OpenAI's specialized model for software engineering tasks, built on the GPT-5.1 architecture with a 400k token context window.

Strengths
The model excels at code generation, debugging, and software engineering workflows with strong reasoning capabilities across programming languages and frameworks.
Best for
Building, refactoring, and analyzing code across large codebases and complex engineering tasks that benefit from extended context.
Limitations
This model has been superseded by GPT-5.2 for general reasoning tasks, and GPT-5.1-Codex-Max offers expanded capacity for demanding software engineering projects.

Input / 1M

$1.25

Output / 1M

$10.00

Cached input / 1M

$0.13

Context window

400K

Price history

Input (solid)Output (dashed)
Price per 1M tokens over timeOutput went from $10.00 to $10.00; Input went from $1.25 to $1.25 between Jun 2026 and Jul 2026.$0$2.00$4.00$6.00$8.00$10.00Output on 11 Jun 2026: $10.00Output on 15 Jul 2026: $10.00Output on 26 Jul 2026: $10.00Out $10.00Input on 11 Jun 2026: $1.25Input on 15 Jul 2026: $1.25Input on 26 Jul 2026: $1.25In $1.25Jun 2026Jul 2026

Price change

30d
in decreased 0.0% out decreased 0.0%
90d
in decreased 0.0% out decreased 0.0%
1y
in decreased 0.0% out decreased 0.0%
Since launch
in decreased 0.0% out decreased 0.0%

Snapshots

Effective Input Output Cached in Note Source
26 Jul 2026 $1.25 $10.00 $0.13 Imported from OpenRouter openrouter.ai
15 Jul 2026 $1.25 $10.00 $0.125 Imported from OpenRouter openrouter.ai
11 Jun 2026 $1.25 $10.00 $0.13 Imported from OpenRouter openrouter.ai

More from OpenAI

Report a problem