$T TokenCostDB
Verified: 2026-11-30 Direct Official Pricing Provider: OpenAI

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

OpenAI: GPT-5.1-Codex-Mini by OpenAI is priced at $0.25 per 1M input tokens and $2.00 per 1M output tokens with a 400K context window. Prompt caching reduces repeated prefix reads to $0.025/1M (90% savings).

Deprecation Notice: Scheduled deprecation date 2026-07-23 · Recommended successor: gpt-5.6-terra.
Standard Input / 1M
$0.25
Standard Output / 1M
$2.00
Cache Read / Write
$0.025 / —
Context / Max Output
400K / 128K

Direct Official vs. OpenRouter Gateway

Comparing direct vendor pricing against multi-provider OpenRouter routing for openai/gpt-5.1-codex-mini.

Channel Input / 1M Output / 1M Cache Read
Direct Official $0.25 $2.00 $0.025
OpenRouter Gateway $0.25 $2.00 $0.03
Gateway vs direct output spread: 0% Primary Pricing Source →

1M to 1B Token Cost Tiers

Reference monthly spend assuming a standard 75% input / 25% output workload mix.

Monthly Volume Standard 75% Cached Batch API
1M tokens $0.69 $0.56 —
10M tokens $6.88 $5.61 —
100M tokens $68.75 $56.09 —
1B tokens $687.50 $560.94 —

Interactive OpenAI: GPT-5.1-Codex-Mini Bill Estimator

Adjust request volume, tokens, and prompt cache hit ratio.

Estimated Monthly Total
$127.20
Cache Hit %60%
Input: $24.00Cache Read: $3.60Output: $96.00Per 1K reqs: $2.12

Closest Price-Tier Alternatives

Model Input / 1M Output / 1M Context
OpenAI: GPT-5 Mini $0.25 $2.00 400K
OpenAI: GPT-4.1 Mini $0.4 $1.60 1.05M
Mistral: Mistral Large 3 2512 $0.5 $1.50 262.1K
Qwen: Qwen3 VL 235B A22B Instruct $0.4 $1.60 262.1K
Google: Gemini 3.1 Flash Lite $0.25 $1.50 1.05M
Google: Gemini 3.1 Flash Lite Preview $0.25 $1.50 1.05M

Optimize Inference & Self-Hosting

Compare OpenAI: GPT-5.1-Codex-Mini against flagship models from OpenAI, Anthropic, Google, and DeepSeek in our interactive comparison matrix, or benchmark self-hosted GPU break-even thresholds.

Model Specifications & FAQs

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

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 (official direct provider rate), verified on 2026-11-30.

Does OpenAI: GPT-5.1-Codex-Mini support prompt caching or batch discounts?

Yes, cached input reads cost $0.025 per 1M tokens (90% off standard input). Batch API pricing is not listed for this endpoint.

What is the context window and max output for OpenAI: GPT-5.1-Codex-Mini?

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