GPT-4o Mini: Pricing, Context, and Benchmarks
GPT-4o Mini is OpenAI's GPT-4 model released on 2024-07-18. It runs on a 128K-token context window, priced at $0.15/M input and $0.60/M output. Affordable small model for high-volume tasks. Replaces GPT-3.5 in the API.
Specifications
| Provider | OpenAI |
|---|---|
| Family | GPT-4 |
| Released | 2024-07-18 |
| Status | active |
| Context window | 128K tokens |
| Max output | 16K tokens |
| Modalities | text image |
| Capabilities | function calling json mode vision streaming |
| Tokenizer | o200k_base |
| API endpoint | https://api.openai.com/v1/chat/completions |
| Documentation | Official docs ↗ |
| Last updated | 2026-05-29 |
What this model is good for
Based on benchmark scores and capability fit, GPT-4o Mini ranks well for:
- Cheapest Model with Vision — rank #2. $0.15/M input + full vision capability. The standard cheap-vision pick.
Cost calculator
For 1,000 tokens of input and 1,000 tokens of output per call, this model costs $0.0008 per call. For typical usage:
| Workload | Tokens / call (in/out) | $/call | $/1K calls | $/1M calls |
|---|---|---|---|---|
| Short Q&A | 200 / 100 | $0.000090 | $0.09 | $90 |
| Standard chat | 1K / 500 | $0.000450 | $0.45 | $450 |
| RAG with retrieval | 4K / 500 | $0.000900 | $0.90 | $900 |
| Long doc summary | 20K / 1K | $0.003600 | $3.60 | $3,600 |
| Long context (100K input) | 100K / 2K | $0.015900 | $15.90 | $15,900 |
For more precise estimates including caching discounts, use the LLM API Cost Calculator.
Other OpenAI models
Common comparisons
- GPT-4o Mini vs Codestral Side-by-side specs, pricing, and benchmarks
- GPT-4o Mini vs DeepSeek-V3 Side-by-side specs, pricing, and benchmarks
- GPT-4o Mini vs Gemini 2.5 Flash Side-by-side specs, pricing, and benchmarks
- GPT-4o Mini vs Qwen3-235B Side-by-side specs, pricing, and benchmarks
API setup
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'
See the official documentation for the full request/response schema. For pre-flight token counting before paying, use the appropriate token counter.