OpenAI: GPT-5.1-Codex-Mini API Pricing & Cost Breakdown
GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex
openai/gpt-5.1-codex-mini
Technical Specifications
| Canonical ID | openai/gpt-5.1-codex-mini |
| Provider | OpenAI |
| Input Modalities | image, text |
| Output Modalities | text |
| Open-Weight | No (Proprietary API) |
| Reasoning Optimized | Standard |
| Vision Support | Yes |
Estimated Monthly API Spend
| Stage | Monthly Tokens | Est. Cost |
|---|---|---|
| Prototype / MVP 500 req/day |
22.5M in / 6.0M out | $17.63/mo |
| Growing SaaS 10,000 req/day |
600.0M in / 150.0M out | $450.00/mo |
| Scale Production 100,000 req/day |
7500.0M in / 1800.0M out | $5,475/mo |
Deploy or Route OpenAI: GPT-5.1-Codex-Mini
OpenRouter
Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.
Cloudflare Workers AI
Global edge AI gateway with response caching, rate-limiting, and serverless workers.
DigitalOcean GPU Droplets
Simple cloud compute and managed inference droplets with predictable monthly pricing.
Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.
Cheaper Alternatives to OpenAI: GPT-5.1-Codex-Mini
| Model | Provider | Input / 1M | Output / 1M | Blended | Context |
|---|---|---|---|---|---|
| Qwen: Qwen3.5 Plus 2026-04-20 | Qwen | $0.30 | $1.80 | $0.675 | 1M |
| Meta: Muse Glimmer 30B | Meta | $0.35 | $1.50 | $0.637 | 131K |
| Thinking Machines: Inkling Small | Thinkingmachines | $0.45 | $1.20 | $0.637 | 524K |
| Qwen: Qwen3 VL 235B A22B Instruct | Qwen | $0.21 | $1.90 | $0.632 | 262K |
| Tencent: Hy4 | Tencent | $0.417 | $1.25 | $0.625 | 1.05M |
| Cohere: Command A+ | Cohere | $0.30 | $1.50 | $0.60 | 192K |
Frequently Asked Questions
How much does OpenAI: GPT-5.1-Codex-Mini API cost per 1M tokens?
OpenAI: GPT-5.1-Codex-Mini costs $0.25 per 1M input tokens and $2.00 per 1M output tokens ($0.688 blended at a 3:1 ratio).
What is the maximum context window of OpenAI: GPT-5.1-Codex-Mini?
OpenAI: GPT-5.1-Codex-Mini supports up to 400,000 tokens (400K) of input context and up to 128,000 output completion tokens.
What are cheaper alternatives to OpenAI: GPT-5.1-Codex-Mini?
Lower-cost options tracked right now include Qwen: Qwen3.5 Plus 2026-04-20 ($0.675/1M), Meta: Muse Glimmer 30B ($0.637/1M), Thinking Machines: Inkling Small ($0.637/1M).
Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts
Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.