gpt-5.1-codex-mini API pricing
Blended at 3:1 input to output: $0.688 per million tokens.
OpenRouter charges $0.250 per million input tokens and $2.00 per million output tokens. 2 of the models nearest it in price are cheaper on a blended basis.
Against the models nearest in price
Blended at a 3:1 input to output ratio.
| Source | ||||||
|---|---|---|---|---|---|---|
| gpt-5.1-codex-mini This model | OpenRouter | $0.250 | $2.00 | 400,000 | $0.688 | ↗ |
| gpt-5-mini | OpenAI | $0.250 | $2.00 | 272,000 | $0.688 | ↗ |
| gpt-4.1-mini | OpenAI | $0.400 | $1.60 | 1,047,576 | $0.700 | ↗ |
| llama-3.3-70b-versatile | Groq | $0.590 | $0.790 | 131,072 | $0.640 | ↗ |
| llama-3-70b-instruct | OpenRouter | $0.590 | $0.790 | 8,192 | $0.640 | ↗ |
| mistral-large-2512 | Mistral AI | $0.500 | $1.50 | 262,144 | $0.750 | ↗ |
| mistral-large-3 | Mistral AI | $0.500 | $1.50 | 262,144 | $0.750 | ↗ |
| deepseek-v3p1 | Fireworks AI | $0.560 | $1.68 | 128,000 | $0.840 | ↗ |
| deepseek-v3p1-terminus | Fireworks AI | $0.560 | $1.68 | 128,000 | $0.840 | ↗ |
Last checked . Methodology
Questions
How much does gpt-5.1-codex-mini cost per million tokens?
$0.250 per million input tokens and $2.00 per million output tokens, with cached input at $0.030. At a 3:1 input to output mix that blends to $0.688. Checked 12 Sept 2026.
What would gpt-5.1-codex-mini cost for a real workload?
A thousand requests a day at 2,000 input and 600 output tokens each comes to $51.00 a month.
What is the context window for gpt-5.1-codex-mini?
400,000 tokens of input, with up to 128,000 tokens of output.
gpt-5-mini · gpt-4.1-mini · llama-3.3-70b-versatile · llama-3-70b-instruct · mistral-large-2512 · All OpenRouter models · Cost calculator