LiteLLMLiteLLM/ MODELS

GPT-4o Mini API Pricing

By OpenAI · 7 providersgpt-4o-miniCompare
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.

Prices updated Checked
Scheduled for deprecation: OpenAI lists January 14, 2027 as the deprecation date for 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.

GPT-4o Mini prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
OpenAIgpt-4o-mini$0.15$0.60$0.075–$0.075$0.30128K
OpenAIsnapshot 2024-07-18gpt-4o-mini-2024-07-18$0.15$0.60$0.075–$0.075$0.30128K
OpenAIfine-tuned, snapshot 2024-07-18ft:gpt-4o-mini-2024-07-18$0.30$1.20$0.15–$0.15$0.60128K
Azure OpenAIazure/gpt-4o-mini$0.15$0.60$0.075–$0.075$0.30128K
Azure OpenAIsnapshot 2024-07-18azure/gpt-4o-mini-2024-07-18$0.15$0.60$0.075–$0.075$0.30128K
GitHub Copilotgithub_copilot/gpt-4o-mini––––––64K
GitHub Copilotsnapshot 2024-07-18github_copilot/gpt-4o-mini-2024-07-18––––––64K
GMI Cloudgmi/openai/gpt-4o-mini$0.15$0.60––––128K
GradientAIgradient_ai/openai-gpt-4o-mini––––––128K
Replicatereplicate/openai/gpt-4o-mini$0.15$0.60–––––
Vercel AI Gatewayvercel_ai_gateway/openai/gpt-4o-mini$0.15$0.60$0.075$0––128K
Azure OpenAIeuazure/eu/gpt-4o-mini$0.165$0.66$0.083–$0.083–128K
Azure OpenAIeu, snapshot 2024-07-18azure/eu/gpt-4o-mini-2024-07-18$0.165$0.66$0.083–$0.083–128K
Azure OpenAIglobal-standardazure/global-standard/gpt-4o-mini$0.15$0.60––––128K
Azure OpenAIus-govazure/us-gov/gpt-4o-mini$0.207$0.825$0.104–––128K
Azure OpenAIusazure/us/gpt-4o-mini$0.165$0.66$0.083–$0.083–128K
Azure OpenAIus, snapshot 2024-07-18azure/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.

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.

Python SDK
from litellm import completion

response = completion(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gpt-4o-mini
    litellm_params:
      model: gpt-4o-mini
      api_key: os.environ/OPENAI_API_KEY
Call the proxy
curl 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:

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.