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

OpenAI: GPT-4o-mini (2024-07-18) API Pricing & Monthly Cost Calculator

OpenAI: GPT-4o-mini (2024-07-18) by OpenAI is priced at $0.15 per 1M input tokens and $0.6 per 1M output tokens with a 128K context window. Prompt caching reduces repeated prefix reads to $0.075/1M (50% savings). Batch API lowers rates to $0.075 in / $0.3 out.

Deprecation Notice: Scheduled deprecation date 2027-01-14 ยท Recommended successor: gpt-6-luna.
Standard Input / 1M
$0.15
Standard Output / 1M
$0.6
Cache Read / Write
$0.075 / โ€”
Context / Max Output
128K / 16.4K

Direct Official vs. OpenRouter Gateway

Comparing direct vendor pricing against multi-provider OpenRouter routing for openai/gpt-4o-mini-2024-07-18.

Channel Input / 1M Output / 1M Cache Read
Direct Official $0.15 $0.6 $0.075
OpenRouter Gateway $0.15 $0.6 $0.075
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.26 $0.22 $0.13
10M tokens $2.63 $2.20 $1.31
100M tokens $26.25 $22.03 $13.13
1B tokens $262.50 $220.31 $131.25

Interactive OpenAI: GPT-4o-mini (2024-07-18) Bill Estimator

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

Estimated Monthly Total
$56.16
Cache Hit %60%
Input: $14.40Cache Read: $10.80Output: $28.80Per 1K reqs: $0.94

Closest Price-Tier Alternatives

Model Input / 1M Output / 1M Context
OpenAI: GPT-4o-mini $0.15 $0.6 128K
Mistral: Mistral Small 4 $0.15 $0.6 262.1K
DeepSeek: DeepSeek V3 $0.28 $0.42 163.8K
DeepSeek: DeepSeek V3.2 $0.28 $0.4 163.8K
Qwen: Qwen3.8 Omni Flash $0.15 $0.47 1M
Qwen: Qwen3.8 Flash $0.15 $0.47 1M

Optimize Inference & Self-Hosting

Compare OpenAI: GPT-4o-mini (2024-07-18) 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-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable...

How much does OpenAI: GPT-4o-mini (2024-07-18) API cost per 1M tokens?

OpenAI: GPT-4o-mini (2024-07-18) costs $0.15 per 1M input tokens and $0.6 per 1M output tokens (official direct provider rate), verified on 2026-11-30.

Does OpenAI: GPT-4o-mini (2024-07-18) support prompt caching or batch discounts?

Yes, cached input reads cost $0.075 per 1M tokens (50% off standard input). Batch API reduces rates to $0.075 input and $0.3 output per 1M tokens.

What is the context window and max output for OpenAI: GPT-4o-mini (2024-07-18)?

OpenAI: GPT-4o-mini (2024-07-18) supports a 128,000-token context window and up to 16,384 output tokens per completion.