{T}
TokenMath.net
Verified against OpenAI Official Pricing
OpenAIreasoningGenerally AvailableActive Production

OpenAI o4-mini API Pricing & Cost Calculator

High-speed reasoning model specialized for STEM, competitive code, and analytical pipelines Need a token count first? Use the GPT token counter.

Standard Input / 1M
$1.10
Prompt tokens
Cached Input / 1M
$0.275
Prompt caching rate
Output / 1M
$4.40
Generation completion
Context Window
200k
Max out: 64k
API & Developer Integration Details
generally available
API Model Stringo4-mini-2026-07-15
Provider & FamilyOpenAI (o200k_base)
Prompt Caching Rules1,024 min tokens (75% off)
Long-Context TiersStandard flat rate throughout full window
First-party audit timestamp: 2026-10-11 07:55 UTCOfficial Documentation

Interactive Cost & Token Simulator for OpenAI o4-mini

Live Calculation
Input Tokens2,500
Output Tokens800
Requests / Day5,000
Prompt Caching Ratio (50%)$0.275/M cached rate
Cost / Request$0.00524
Daily Spend (5,000 reqs)$26.1938
Monthly Run-Rate (30d)$785.81

Standard Workload Cost Scenarios

ScenarioInput TokensOutput TokensUncached CostWith Prompt Caching
Short Chat Query1,000500$0.00330$0.00248
Document Summarization10,0002,000$0.0198$0.0116
Codebase & Context Analysis100,00020,000$0.1980$0.1155
Batch Corpus Processing1,000,000100,000$1.54$0.7150
Technical Architecture & Pricing VerificationVerified: 2026-10-11 07:55 UTC
Model ArchitectureOpenAI o4-mini
Provider OrganizationOpenAI
Tokenizer EncodingOpenAI o200k_base (200k vocabulary)
API ConnectivityOpenAI Chat Completions API with reasoning tokens support.
Batch API 50% DiscountSupported (50% off input & output)
Tier 1 Rate Quota (Free-Tier Reference)1,000 RPM · 500k TPM

Tier 1 (free tier) reference limits — your account's actual quota may be higher.

Blended 3:1 Cost / 1M Tokens$1.93
Fast, cost-effective reasoning model ($1.10/1M in, $4.40/1M out). Prompt caching read rate is $0.275/1M (75% discount). Delivers strong coding and math at 1/10th the cost of o3.OpenAI Official Pricing

Verified Pricing History

September 15, 2026: $1.1/M input · $4.4/M output ($0.275/M cached)
Prompt caching read discount calibrated to official rate ($0.275/1M, 75% discount).
August 2026: $1.1/M input · $4.4/M output ($0.55/M cached)
Successor to o1-mini at lower cost and higher throughput.

When to Choose OpenAI o4-mini

Ideal for production workloads demanding reasoning capabilities, deep context depth (200k tokens), and reliability from OpenAI. Excellent when predictable tokenomics and prompt caching support are paramount.

When Another Model May Be Better

If your use-case requires sub-second streaming latency or ultra-high frequency classification at micro-cent pricing, consider lighter budget options such as Gemini Flash-Lite or Claude Haiku. For deep formal logic, consider dedicated reasoning models like o3.

Frequently Asked Questions About OpenAI o4-mini

How much does 1 million tokens cost with OpenAI o4-mini?

For OpenAI o4-mini, 1 million input tokens costs $1.10, while 1 million output tokens costs $4.40. If using prompt caching, repetitive input prefixes are discounted to $0.275 per million.

What is the context window for OpenAI o4-mini?

OpenAI o4-mini features a maximum context window of 200,000 tokens (~150,000 words), with a maximum output limit of 65,536 tokens per completion.

Which tokenizer does OpenAI o4-mini use?

OpenAI o4-mini utilizes the OpenAI o200k_base (200k vocabulary). Token counting on TokenMath runs client-side to ensure maximum privacy.

Does OpenAI o4-mini support prompt caching discounts?

Yes. OpenAI o4-mini supports prompt caching with a cached input rate of $0.275/1M (saving up to 75% on repeated input context).