Home / openai / OpenAI: GPT-5.1-Codex-Mini

OpenAI: GPT-5.1-Codex-Mini API Pricing & Cost Calculator

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

ReasoningCachingVision openai/gpt-5.1-codex-mini
Input / 1M
$0.250
Output / 1M
$2.00
Cache Read / 1M
$0.030
Blended 3:1 / 1M
$0.688
Agent Cached / 1M
$0.459
Context Window
400K

Monthly Workload Cost Calculator

Daily
$1.43
Monthly
$42.75
Cache Saved
$24.75
Annual
$520.13

Benchmarks & Capabilities

Intelligence Index—
Coding / Engineering— / —
Agentic Index—
Design Arena Avg ELO1063.6
Value Score—
Modalitytext+image->text
Max Output128K

5 Cheaper Alternatives to OpenAI: GPT-5.1-Codex-Mini

Alternative ModelBlended / 1MInput / 1MOutput / 1MIntelSide-by-Side
Anthropic: Claude Haiku 5.5 (batch)
anthropic/claude-haiku-5.5:batch
$0.100 $0.050 $0.250 37 Compare →
Anthropic: Claude Haiku 5.5
anthropic/claude-haiku-5.5
$0.200 $0.100 $0.500 37 Compare →
Meta: Muse Ember
meta/muse-ember
$0.200 $0.100 $0.500 36 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017 (batch)
deepseek/deepseek-v4.1-flash-1017:batch
$0.064 $0.035 $0.149 32 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017
deepseek/deepseek-v4.1-flash-1017
$0.065 $0.020 $0.200 32 Compare →

Frequently Asked Questions

How much does OpenAI: GPT-5.1-Codex-Mini API cost per 1M tokens?

OpenAI: GPT-5.1-Codex-Mini (openai/gpt-5.1-codex-mini) costs $0.250 per 1M input tokens and $2.00 per 1M output tokens (3:1 blended price: $0.688 per 1M tokens).

Does OpenAI: GPT-5.1-Codex-Mini support prompt caching and how much does it save?

Yes. Cached input reads cost $0.030 per 1M tokens, bringing realistic 80%-cached agent loop cost down to $0.459 per 1M tokens.

What is the context window and maximum output of OpenAI: GPT-5.1-Codex-Mini?

OpenAI: GPT-5.1-Codex-Mini supports a 400K token context window (400,000 tokens) and up to 128K output tokens per completion.

Fetch Live JSON via API

curl -s "https://llm.lhblabs.com/api/v1/models/openai-gpt-5-1-codex-mini"
Recommended Stack: DigitalOcean

Predictable Droplets, managed databases, and GPU nodes for production AI workloads.

Try DigitalOcean →
Self-Serve Placement Building an LLM API, GPU Cloud, or AI Dev Tool?
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.
Book Sponsor Slot →