GPT-4o Mini API Pricing
- Input / output
- $0.15 / $0.60 per 1M tokens
- Cache read
- $0.075 / 1M
- Context
- 128K tokens
- Max output
- 16K tokens
As of November 24, 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. Across 7 providers on LiteLLM, the input price ranges from $0.15 to $0.207. It has a 128,000-token context window and returns up to 16,384 tokens per response.
gpt-4o-mini.GPT-4o Mini pricing by provider
17 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 | – | $0.075 | $0.30 | 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 | azure/eu/gpt-4o-mini | $0.165 | $0.66 | $0.083 | – | $0.083 | – | 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-gov | azure/us-gov/gpt-4o-mini | $0.207 | $0.825 | $0.104 | – | – | – | 128K |
| Azure OpenAIus | azure/us/gpt-4o-mini | $0.165 | $0.66 | $0.083 | – | $0.083 | – | 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 cost calculator
At OpenAI's price ($0.15 input, $0.60 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $4.50 a day, about $135 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.00045
- Per day
- $4.50
- Per month (30 days)
- $135
GPT-4o Mini features
Input: text, image, pdf. Output: text.
- 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 $LITELLM_API_KEY" \
-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. Across 7 providers on LiteLLM, the input price ranges from $0.15 to $0.207.
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. The lowest price is on OpenAI.
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.
Is GPT-4o Mini being deprecated?
OpenAI lists a deprecation date of January 14, 2027 for gpt-4o-mini.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
- developers.openai.com/api/docs/pricing
- azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/
- prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'
- replicate.com/openai/gpt-4o-mini
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.