OpenAI · Model
GPT-4o-mini API pricing, cost and context window
GPT-4o-mini costs $0.15 per million input tokens and $0.60 per million output tokens. Cached input costs $0.075. It reads up to 128,000 tokens and writes up to 16,384 per reply. Prices checked 2026-11-28. By blended price it is number 3 of OpenAI’s 11 current models here, counting from the cheapest.
- Input / 1M
- $0.15
- Output / 1M
- $0.60
- Cached / 1M
- $0.075
- Context
- 128,000
- Max output
- 16,384
- Released
- 2024-07-18
Estimate your cost with GPT-4o-miniCompare all OpenAI modelsCount tokens for GPT-4o-mini
Pricing
How much does GPT-4o-mini cost per million tokens?
| Price per 1M tokens | Input | Output |
|---|---|---|
| Standard | $0.15 | $0.60 |
| Cached input (read) | $0.075 | – |
| Batch API | $0.075 | $0.30 |
Output costs 4.0× the input price; a cache hit costs 50% of it.
Work out your monthly GPT-4o-mini bill in the cost calculatorSee what prompt caching savesSee what the Batch API saves
Examples
How much does a typical GPT-4o-mini request cost?
| Workload | Tokens in / out | Requests/day | Per request | Per month |
|---|---|---|---|---|
| Support chatbot50% cached | 1,500 / 400 | 1,000 | $0.000409 | $12.43 |
| RAG app20% cached | 6,000 / 500 | 500 | $0.00111 | $16.88 |
| Coding agent80% cached | 40,000 / 2,000 | 200 | $0.0048 | $29.20 |
| Document summariserbatch | 8,000 / 600 | 300 | $0.00078 | $7.12 |
Change any number in the cost calculator.
Context
What is GPT-4o-mini’s context window and max output?
GPT-4o-mini accepts up to 128,000 tokens per request, roughly 96,000 English words or 192 pages, prompt and reply together; one reply is capped at 16,384 tokens.
Filling the whole window with one prompt costs about $0.0192 at list price.
Features
What can GPT-4o-mini do?
- Image input
- Yes
- Tool / function calling
- Yes
- Reasoning mode
- No
- Prompt caching
- Yes
- Structured output
- Yes
- Open weights
- No
- Accepts
- text, image, file
- Knowledge cutoff
- 2023-10-31
As declared by the provider’s API. It shows a feature exists, not how well it works.
API
What is the GPT-4o-mini API model ID?
- OpenRouter
openai/gpt-4o-mini- OpenAI API
gpt-4o-mini(alias)gpt-4o-mini-2024-07-18(pinned)
OpenAI lists GPT-4o-mini as current. Every GPT model ID, with aliases and snapshots.
OpenAI
Where does GPT-4o-mini sit in OpenAI’s line-up?
Ranked by blended price (three parts input to one part output, $0.2625 per 1M for GPT-4o-mini), it is number 3 of OpenAI’s 11 current models here, counting from the cheapest. One step down, GPT-6 Luna costs $0.20 blended (24% less). Unlike GPT-4o-mini, it reads up to 1,050,000 tokens (128,000 here), caps a reply at 128,000 tokens (16,384 here) and has a reasoning mode. One step up, GPT-5.4 Mini costs $1.6875 (6.4× as much). Unlike GPT-4o-mini, it reads up to 400,000 tokens (128,000 here), caps a reply at 128,000 tokens (16,384 here) and has a reasoning mode. See every OpenAI model and price
Save
What are cheaper alternatives to GPT-4o-mini?
- Qwen3.5-9BQwen64% cheaper
- Seed-2.0-MiniByteDance Seed33% cheaper
- GPT-6 LunaOpenAI24% cheaper
Keeping image input, tool calling; by blended price.
Compare
Which models cost about the same?
- Mistral Small 4Mistral$0.15 / $0.60
- MiniMax M3.1 FlashMiniMax$0.15 / $0.60
- Gemma 4 31BGoogle$0.20 / $0.40
FAQ
GPT-4o-mini questions
How much does GPT-4o-mini cost?
GPT-4o-mini costs $0.15 per million input tokens and $0.60 per million output tokens, with cached input at $0.075. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.000465. Use the LLM cost calculator for your own workload.
What is GPT-4o-mini’s context window?
128,000 tokens, about 96,000 English words or 192 printed pages, shared between your prompt and the reply. A single reply can be up to 16,384 tokens.
Does GPT-4o-mini support prompt caching and batch requests?
Yes, cached input is billed at $0.075 per million tokens (50% of the normal input price). A batch API is available at $0.075 input and $0.30 output per million tokens.
What are cheaper alternatives to GPT-4o-mini?
With the same essentials (image input and tool calling), the cheapest options are Qwen3.5-9B (64% cheaper), Seed-2.0-Mini (33% cheaper), GPT-6 Luna (24% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.
What is the API model ID for GPT-4o-mini?
On OpenRouter it is openai/gpt-4o-mini. In OpenAI’s own API, use gpt-4o-mini; OpenAI lists the model as current. The GPT model ID list has every alias and snapshot. Pass the ID as the model value in each request.
When was GPT-4o-mini released?
GPT-4o-mini was first listed on 2024-07-18, with a knowledge cutoff of 2023-10-31. It is the first model in its line in our data. Release dates here are when our price source first listed each model.
Is GPT-4o-mini open source?
No, GPT-4o-mini is only available through OpenAI’s API and partners; its weights aren’t published.
Keep exploring