API pricing per million tokens
gpt-4o-mini-2024-07-18Checked 6h ago
- Input
- $0.15
- per 1M, list
- Output
- $0.6
- per 1M tokens
- Cached input
- $0.075
- no batch tier listed
- Context
- 128K
- 16K max output
Where to buy it (1)
OpenAI (list)the lab's own API$0.15 / $0.6cached $0.075
Through a gateway
Your own numbers100M input and 20M output tokens a month: $27.00 direct.
Helicone$27.00+0%
Kong AI Gateway$27.00+0%
LiteLLM$27.00+0%
Vercel AI Gateway$27.00+0%
AWS Bedrock$27.00+0%
Azure AI Foundry$27.00+0%
Google Vertex AI$27.00+0%
Databricks Mosaic AI$27.00+0%
Hugging Face Inference$27.00+0%
Cloudflare AI Gateway$28.35+5%
Requesty$28.35+5%
Eden AI$28.48+5.5%
OpenRouter$28.48+5.5%
Snowflake Cortex AI$32.40+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
ModelInputOutputCachedContextReleased
GPT-6 LunaOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 Luna ProOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
GPT-6 Sol ProOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
DeepSeek V4.1 FlashDeepSeek · 1M$0.15 / $0.6in / out per 1M$0.15$0.6$0.0031MSep 10, 2026
Gemini 3.1 Flash LiteGoogle Gemini API · 1M$0.25 / $1.5in / out per 1M$0.25$1.5$0.0251MMay 7, 2026
Gemini 3.1 Flash Lite PreviewGoogle Gemini API · 1M$0.25 / $1.5in / out per 1M$0.25$1.5$0.0251MMar 3, 2026
Qwen3.8 Omni FlashQwen (Alibaba) · 1M$0.15 / $0.47in / out per 1M$0.15$0.47$0.0161MSep 21, 2026
About GPT-4o-mini (2024-07-18)
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.
Takes text, image, files in and returns text. First listed Sep 5, 2024. Blended price $0.262 per 1M tokens at 3 input to 1 output.
Questions
How much does GPT-4o-mini (2024-07-18) cost?
$0.15 per million input tokens and $0.6 per million output tokens, with cached input at $0.075.
What is the context window of GPT-4o-mini (2024-07-18)?
128K tokens, with up to 16K tokens of output.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.