GPT-4o Mini API Pricing
As of October 10, 2026, GPT-4o Mini costs $0.15 per 1M input tokens and $0.60 per 1M output tokens on OpenAI, with cache reads at $0.075 per 1M tokens. It has a 128,000-token context window and returns up to 16,384 tokens per response.
- Input
- $0.15 / 1M tokens
- Output
- $0.60 / 1M tokens
- Cache read
- $0.075 / 1M tokens
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
- Providers
- 7
- Added to LiteLLM
- July 2024
GPT-4o Mini pricing by provider
14 listings across 7 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Cache write | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|
| OpenAI | gpt-4o-mini | $0.15 | $0.60 | $0.075 | – | $0.075 | $0.30 | 128K |
| OpenAIsnapshot 2024-07-18 | gpt-4o-mini-2024-07-18 | $0.15 | $0.60 | $0.075 | – | $0.075 | $0.30 | 128K |
| OpenAIfine-tuned, snapshot 2024-07-18 | ft:gpt-4o-mini-2024-07-18 | $0.30 | $1.20 | $0.15 | – | $0.15 | $0.60 | 128K |
| Azure OpenAI | azure/gpt-4o-mini | $0.15 | $0.60 | $0.075 | – | – | – | 128K |
| Azure OpenAIsnapshot 2024-07-18 | azure/gpt-4o-mini-2024-07-18 | $0.15 | $0.60 | $0.075 | – | $0.075 | $0.30 | 128K |
| GitHub Copilot | github_copilot/gpt-4o-mini | – | – | – | – | – | – | 64K |
| GitHub Copilotsnapshot 2024-07-18 | github_copilot/gpt-4o-mini-2024-07-18 | – | – | – | – | – | – | 64K |
| GMI Cloud | gmi/openai/gpt-4o-mini | $0.15 | $0.60 | – | – | – | – | 128K |
| GradientAI | gradient_ai/openai-gpt-4o-mini | – | – | – | – | – | – | 128K |
| Replicate | replicate/openai/gpt-4o-mini | $0.15 | $0.60 | – | – | – | – | – |
| Vercel AI Gateway | vercel_ai_gateway/openai/gpt-4o-mini | $0.15 | $0.60 | $0.075 | $0 | – | – | 128K |
| Azure OpenAIeu, snapshot 2024-07-18 | azure/eu/gpt-4o-mini-2024-07-18 | $0.165 | $0.66 | $0.083 | – | $0.083 | – | 128K |
| Azure OpenAIglobal-standard | azure/global-standard/gpt-4o-mini | $0.15 | $0.60 | – | – | – | – | 128K |
| Azure OpenAIus, snapshot 2024-07-18 | azure/us/gpt-4o-mini-2024-07-18 | $0.165 | $0.66 | $0.083 | – | $0.083 | – | 128K |
Other GPT-4o Mini prices on OpenAI
| Priority input | $0.25 per 1M tokens |
| Priority output | $1.00 per 1M tokens |
| Web search | $25.00 per 1K searches |
What GPT-4o Mini costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| OpenAI | $0.60 |
| Azure OpenAI | $0.60 |
| GMI Cloud | $0.60 |
| Replicate | $0.60 |
| OpenAI batch | $0.30 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| OpenAI | $1.62 |
| Azure OpenAI | $1.62 |
| GMI Cloud | $1.62 |
| Replicate | $1.62 |
GPT-4o Mini features
- Function calling
- Parallel tool calls
- Structured output
- Image input
- PDF input
- Prompt caching
Use GPT-4o Mini with LiteLLM
Call GPT-4o Mini through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: gpt-4o-mini
litellm_params:
model: gpt-4o-mini
api_key: os.environ/OPENAI_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'GPT-4o Mini FAQ
How much does GPT-4o Mini cost?
GPT-4o Mini costs $0.15 per 1M input tokens and $0.60 per 1M output tokens on OpenAI, with cache reads at $0.075 per 1M tokens. Batch requests cost $0.075 per 1M input tokens and $0.30 per 1M output tokens.
What is the context window of GPT-4o Mini?
GPT-4o Mini has a 128,000-token context window and returns up to 16,384 tokens per response.
Which providers offer GPT-4o Mini?
GPT-4o Mini is available from 7 providers through LiteLLM: OpenAI, Azure OpenAI, GitHub Copilot, GMI Cloud, GradientAI, Replicate and Vercel AI Gateway.
How do I call GPT-4o Mini with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="gpt-4o-mini", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does GPT-4o Mini support?
GPT-4o Mini supports function calling, parallel tool calls, structured output, image input, PDF input and prompt caching.
When did LiteLLM add GPT-4o Mini?
GPT-4o Mini was added to LiteLLM's model price file in July 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
- developers.openai.com/api/docs/pricing
- prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'
LiteLLM docs: OpenAI, Azure OpenAI, GitHub Copilot, GMI Cloud, GradientAI, Replicate.
Provider pages: OpenAI, Azure OpenAI, GitHub Copilot, GMI Cloud, GradientAI, Replicate, Vercel AI Gateway.
