GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex
Ways to buy 2
| Way to buy | Input | Output | In / out per 1M | Cached | Vs list |
|---|---|---|---|---|---|
The lab's own API · cached $0.03 | $0.25 | $2 | $0.25 / $2List price | $0.03 | List price |
Default region · cached $0.03 | $0.25 | $2 | $0.25 / $2Same as list | $0.03 | Same as list |
USD per 1M tokens. Regions are separate routes.
Through a gateway
Your own numbers100M input and 20M output tokens a month: $65.00 direct.
Helicone$65.00+0%
Kong AI Gateway$65.00+0%
LiteLLM$65.00+0%
Vercel AI Gateway$65.00+0%
Eden AI$68.58+5.5%
OpenRouter$68.58+5.5%
Cloudflare AI GatewayNot offeredNot offered
Martian GatewayNot offeredNot offered
Neon AI GatewayNot offeredNot offered
RequestyNot offeredNot offered
A dash: not on that gateway's own model list. No published token fee: Portkey, TrueFoundry AI Gateway.
Related models
| In / out per 1M | Cheapest route | |||||||
|---|---|---|---|---|---|---|---|---|
OpenAI · 1.05MCheapest: $1 on OpenAI (flex) | $1 | $5 | $1 / $5 | $2 | 1.05M | $1 on OpenAI (flex) | · | GPT-6.1 Terra is the mid-tier model in OpenAI's GPT-6.1 series, priced below GPT-6.1 Sol. |
OpenAI · 1.05MCheapest: $1 on OpenAI (flex) | $1 | $5 | $1 / $5 | $2 | 1.05M | $1 on OpenAI (flex) | · | GPT-6.1 Terra Pro is the same underlying model as GPT-6.1 Terra, served with reasoning.mode set to pro for higher-quality responses on complex tasks. |
OpenAI · 1.05MCheapest: $2 on OpenAI (flex) | $2 | $10 | $2 / $10 | $4 | 1.05M | $2 on OpenAI (flex) | · | GPT-6.1 Sol is an upgrade to GPT-6 Sol from OpenAI, positioned below the flagship GPT-6 Astra in the GPT-6 series. |
OpenAI · 1.05MCheapest: $2 on OpenAI (flex) | $2 | $10 | $2 / $10 | $4 | 1.05M | $2 on OpenAI (flex) | · | GPT-6.1 Sol Pro is the same underlying model as GPT-6.1 Sol, served with reasoning.mode set to pro for higher-quality responses on complex tasks. |
Google · 1MCheapest: $0.75 on Google Gemini API (flex) | $0.75 | $3.75 | $0.75 / $3.75 | $1.5 | 1M | $0.75 on Google Gemini API (flex) | · | Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning. |
Google · 1MCheapest: $0.75 on Google Vertex AI (global-flex) | $0.75 | $3.75 | $0.75 / $3.75 | $1.5 | 1M | $0.75 on Google Vertex AI (global-flex) | · | Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning. |
Z.ai · 1M | $0.179 | $1.4 | $0.179 / $1.4 | $0.484 | 1M | on Wafer (fp4) | · | GLM-5.3 is a large-scale reasoning model from Z.ai, built for complex software engineering and long-horizon agent tasks. |
Z.ai · 1M | $0.37 | $1.25 | $0.37 / $1.25 | $0.59 | 1M | Lab list price | · | GLM-5.3-FlashX-Legal (GLM-Legal) is Z.ai's legal-domain variant of GLM-5.3-FlashX, a native multimodal model that accepts text, image, and video input and produces text. |
About GPT-5.1-Codex-Mini
Takes image, text in and returns text. First listed Nov 14, 2025. Up to 128K output tokens. Blended price $0.688 per 1M tokens at 3 input to 1 output. Model id gpt-5-1-codex-mini.
Price history
List price since Nov 14, 2025, from Internet Archive snapshots of the OpenRouter catalog, then daily reads.
GPT-5.1-Codex-Mini
OpenAI raised its API price: cached input $0.025 to $0.03 per 1M tokens.
GPT-5.1-Codex-Mini
OpenAI cut its API price: cached input $0.03 to $0.025 per 1M tokens.
GPT-5.1-Codex-Mini
OpenAI raised its API price: cached input $0.025 to $0.03 per 1M tokens.
Questions
How much does GPT-5.1-Codex-Mini cost?
$0.25 per million input tokens and $2 per million output tokens, with cached input at $0.03.
What is the context window of GPT-5.1-Codex-Mini?
400K tokens, with up to 128K tokens of output.
Where is GPT-5.1-Codex-Mini cheapest?
Of 2 routes tracked, Azure AI Foundry is cheapest at $0.25 input and $2 output per million tokens.