GPT-4o-mini (2024-07-18) API Cost Calculator
Estimate your monthly API costs for GPT-4o-mini (2024-07-18) from Openai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| GPT-4o-mini Openai | $0.1500 | $0.6000 |
| GPT-4o-mini Search Preview Openai | $0.1500 | $0.6000 |
| GPT-REALTIME-MINI Openai | $0.6000 | $0.0600 |
| GPT-4.1 Nano Openai | $0.1000 | $0.4000 |
| GPT-5 Nano Openai | $0.0500 | $0.4000 |
Frequently Asked Questions
How much does GPT-4o-mini (2024-07-18) cost per token?
GPT-4o-mini (2024-07-18) is priced at $0.1500 per 1M input tokens and $0.6000 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for GPT-4o-mini (2024-07-18)?
GPT-4o-mini (2024-07-18) has a context window of 128K tokens (128,000 tokens). The maximum output length is 16.4K tokens.
Does GPT-4o-mini (2024-07-18) support image inputs (vision)?
Yes, GPT-4o-mini (2024-07-18) supports vision/image inputs. You can send images as part of your prompts.
Does GPT-4o-mini (2024-07-18) support function calling (tool use)?
Yes, GPT-4o-mini (2024-07-18) supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does GPT-4o-mini (2024-07-18) compare to similar models?
GPT-4o-mini (2024-07-18) costs $0.1500 input and $0.6000 output per 1M tokens. GPT-5 Nano is less expensive at $0.0500 input and $0.4000 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the GPT-5 Nano page at /tools/cost-calculator/openai/gpt-5-nano.