prices synced 2026-10-27

GPT-5.1-Codex

OpenAI · Multimodal · Released Nov 2025

Compare

GPT-5.1-Codex is OpenAI's coding-specialized model from the GPT-5.1 generation with a 400k token context window.

Strengths
The model excels at code generation, debugging, and complex programming tasks across multiple languages and frameworks.
Best for
Development workflows where code understanding and generation are primary, such as writing, refactoring, and analyzing large codebases within the extended context window.
Limitations
This model is specialized for coding work; for general-purpose reasoning or non-code tasks, GPT-5.1 or GPT-5.2 are better suited, and GPT-5.1-Codex-Max offers increased capability for complex coding scenarios.

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 — out —
90d
in — out —
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