GPT-5.1 Mini Codex is OpenAI's language model with a 272K context window and up to 128K output tokens, starting at $0.25 / 1M input and $2.00 / 1M output. A compact, code-focused variant of GPT-5.1 optimized for programming tasks and developer tooling via the Codex interface.
Capabilities
Input1/5
Text✓
Image·
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities0/13
Reasoning·
Adaptive Reasoning·
Function Calling·
Parallel Function Calling·
Structured Outputs·
Native JSON Schema·
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill·
Pricing by Provider
US Dollar ($)
Per 1M tokens
| Provider | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
| $0.25 | $2.00 | |
Cost Calculator
US Dollar ($)
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| GPT-5.4 Mini | 400K | $0.750 | $4.50 | Available | |
| GPT-5 Mini | 1.0M | $0.250 | $2.00 | Deprecating | |
| GPT-5.1 Mini Codex | — | 272K | $0.250 | $2.00 | Current |
| GPT-5 Mini Medium | — | — | — | — | Available |
| GPT-5.4 Mini Medium | — | — | — | — | Available |
| GPT-5.4 Mini Non-Reasoning | — | — | — | — | Available |
| GPT-5 Mini Minimal | — | — | — | — | Available |
| GPT-4.1 Mini | 1.0M | $0.400 | $1.60 | Available | |
| GPT-4o mini Audio | 128K | $0.150 | $0.600 | Deprecating | |
| GPT-4o mini | 131K | $0.150 | $0.600 | Available | |
| GPT-4o mini Audio | — | — | $10.00 | $20.00 | Available |
Other Models
| Model | Tier | Released | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|---|
| GPT-5.6 Sol | — | 1.1M | $2.00 | $10.00 | |
| GPT-5.6 Terra | — | 1.1M | $2.00 | $12.00 | |
| GPT-5.6 Luna | — | 1.1M | $0.200 | $1.20 | |
| GPT-5.5 | — | 1.1M | $5.00 | $30.00 | |
| GPT-5.4 Nano | Nano | 400K | $0.200 | $1.25 | |
| GPT-5.4 | — | 1.1M | $2.50 | $15.00 | |
| GPT-5.3 Codex | — | 400K | $1.75 | $14.00 | |
| GPT-5.2 Codex | — | 400K | $1.75 | $14.00 | |
| GPT-5.2 | — | 410K | $1.75 | $14.00 | |
| GPT-5.1 | — | 410K | $1.25 | $10.00 |