# GPT-4o API Pricing

As of October 10, 2026, GPT-4o costs $2.50 per 1M input tokens and $10.00 per 1M output tokens on OpenAI, with cache reads at $1.25 per 1M tokens. Across 7 providers on LiteLLM, the input price ranges from $2.50 to $5.00. 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
- Lab: OpenAI
- LiteLLM model name: `gpt-4o`
- Context window: 128,000 tokens
- Max output: 16,384 tokens
- Added to LiteLLM: May 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` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| OpenAI (snapshot 2024-05-13) | `gpt-4o-2024-05-13` | $5.00 | $15.00 | – | – | – | 128K |
| OpenAI (snapshot 2024-08-06) | `gpt-4o-2024-08-06` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| OpenAI (snapshot 2024-11-20) | `gpt-4o-2024-11-20` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| OpenAI (fine-tuned, snapshot 2024-08-06) | `ft:gpt-4o-2024-08-06` | $3.75 | $15.00 | $1.875 | – | – | 128K |
| OpenAI (fine-tuned, snapshot 2024-11-20) | `ft:gpt-4o-2024-11-20` | $3.75 | $15.00 | – | – | – | 128K |
| Azure OpenAI | `azure/gpt-4o` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (snapshot 2024-05-13) | `azure/gpt-4o-2024-05-13` | $5.00 | $15.00 | – | – | – | 128K |
| Azure OpenAI (snapshot 2024-08-06) | `azure/gpt-4o-2024-08-06` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (snapshot 2024-11-20) | `azure/gpt-4o-2024-11-20` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| GitHub Copilot | `github_copilot/gpt-4o` | – | – | – | – | – | 64K |
| GitHub Copilot (snapshot 2024-05-13) | `github_copilot/gpt-4o-2024-05-13` | – | – | – | – | – | 64K |
| GitHub Copilot (snapshot 2024-08-06) | `github_copilot/gpt-4o-2024-08-06` | – | – | – | – | – | 64K |
| GitHub Copilot (snapshot 2024-11-20) | `github_copilot/gpt-4o-2024-11-20` | – | – | – | – | – | 64K |
| GMI Cloud | `gmi/openai/gpt-4o` | $2.50 | $10.00 | – | – | – | 128K |
| GradientAI | `gradient_ai/openai-gpt-4o` | – | – | – | – | – | 128K |
| Replicate | `replicate/openai/gpt-4o` | $2.50 | $10.00 | – | – | – | – |
| Vercel AI Gateway | `vercel_ai_gateway/openai/gpt-4o` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (eu, snapshot 2024-05-13) | `azure/eu/gpt-4o-2024-05-13` | $5.50 | $16.50 | – | – | – | 128K |
| Azure OpenAI (eu, snapshot 2024-08-06) | `azure/eu/gpt-4o-2024-08-06` | $2.75 | $11.00 | $1.375 | – | – | 128K |
| Azure OpenAI (eu, snapshot 2024-11-20) | `azure/eu/gpt-4o-2024-11-20` | $2.75 | $11.00 | $1.375 | – | – | 128K |
| Azure OpenAI (global-standard, snapshot 2024-08-06) | `azure/global-standard/gpt-4o-2024-08-06` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (global-standard, snapshot 2024-11-20) | `azure/global-standard/gpt-4o-2024-11-20` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (global, snapshot 2024-08-06) | `azure/global/gpt-4o-2024-08-06` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (global, snapshot 2024-11-20) | `azure/global/gpt-4o-2024-11-20` | $2.50 | $10.00 | $1.25 | – | – | 128K |
| Azure OpenAI (us, snapshot 2024-05-13) | `azure/us/gpt-4o-2024-05-13` | $5.50 | $16.50 | – | – | – | 128K |
| Azure OpenAI (us, snapshot 2024-08-06) | `azure/us/gpt-4o-2024-08-06` | $2.75 | $11.00 | $1.375 | – | – | 128K |
| Azure OpenAI (us, snapshot 2024-11-20) | `azure/us/gpt-4o-2024-11-20` | $2.75 | $11.00 | $1.375 | – | – | 128K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- OpenAI: $10.00
- Azure OpenAI: $10.00
- GMI Cloud: $10.00
- Replicate: $10.00
- OpenAI batch: $5.00

100 long-document requests with 100,000 input and 2,000 output tokens each:

- OpenAI: $27.00
- Azure OpenAI: $27.00
- GMI Cloud: $27.00
- Replicate: $27.00

## Features

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

## Use it with LiteLLM

```python
from litellm import completion

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

## FAQ

### How much does GPT-4o cost?

GPT-4o costs $2.50 per 1M input tokens and $10.00 per 1M output tokens on OpenAI, with cache reads at $1.25 per 1M tokens. Batch requests cost $1.25 per 1M input tokens and $5.00 per 1M output tokens. Across 7 providers on LiteLLM, the input price ranges from $2.50 to $5.00.

### What is the context window of GPT-4o?

GPT-4o has a 128,000-token context window and returns up to 16,384 tokens per response.

### Which providers offer GPT-4o?

GPT-4o 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 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="gpt-4o", 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 support?

GPT-4o supports function calling, parallel tool calls, structured output, image input, PDF input, audio input, audio output and prompt caching.

### When did LiteLLM add GPT-4o?

GPT-4o was added to LiteLLM's model price file in May 2024.

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