# 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.

- Page: https://models.litellm.ai/models/gpt-4o-mini
- Lab: OpenAI
- LiteLLM model name: `gpt-4o-mini`
- Context window: 128,000 tokens
- Max output: 16,384 tokens
- Added to LiteLLM: July 2024
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| OpenAI | `gpt-4o-mini` | $0.15 | $0.60 | $0.075 | – | – | 128K |
| OpenAI (snapshot 2024-07-18) | `gpt-4o-mini-2024-07-18` | $0.15 | $0.60 | $0.075 | – | – | 128K |
| OpenAI (fine-tuned, snapshot 2024-07-18) | `ft:gpt-4o-mini-2024-07-18` | $0.30 | $1.20 | $0.15 | – | – | 128K |
| Azure OpenAI | `azure/gpt-4o-mini` | $0.15 | $0.60 | $0.075 | – | – | 128K |
| Azure OpenAI (snapshot 2024-07-18) | `azure/gpt-4o-mini-2024-07-18` | $0.15 | $0.60 | $0.075 | – | – | 128K |
| GitHub Copilot | `github_copilot/gpt-4o-mini` | – | – | – | – | – | 64K |
| GitHub Copilot (snapshot 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 | – | – | 128K |
| Azure OpenAI (eu, snapshot 2024-07-18) | `azure/eu/gpt-4o-mini-2024-07-18` | $0.165 | $0.66 | $0.083 | – | – | 128K |
| Azure OpenAI (global-standard) | `azure/global-standard/gpt-4o-mini` | $0.15 | $0.60 | – | – | – | 128K |
| Azure OpenAI (us, snapshot 2024-07-18) | `azure/us/gpt-4o-mini-2024-07-18` | $0.165 | $0.66 | $0.083 | – | – | 128K |

## Cost examples

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

## Features

Supported: Function calling, Parallel tool calls, Structured output, Image input, PDF input, Prompt caching.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
