GPT-5.1-Codex
OpenAI · Multimodal · Released Nov 2025
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 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 |