GPT-4o API Pricing
- Input / output
- $2.50 / $10.00 per 1M tokens
- Cache read
- $1.25 / 1M
- Context
- 128K tokens
- Max output
- 16K tokens
As of November 24, 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 $6.25. It has a 128,000-token context window and returns up to 16,384 tokens per response.
gpt-4o.GPT-4o pricing by provider
33 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 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| OpenAIsnapshot 2024-05-13 | gpt-4o-2024-05-13 | $5.00 | $15.00 | – | – | $2.50 | $7.50 | 128K |
| OpenAIsnapshot 2024-08-06 | gpt-4o-2024-08-06 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| OpenAIsnapshot 2024-11-20 | gpt-4o-2024-11-20 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| OpenAIfine-tuned, snapshot 2024-08-06 | ft:gpt-4o-2024-08-06 | $3.75 | $15.00 | $1.875 | – | $2.225 | $12.50 | 128K |
| OpenAIfine-tuned, snapshot 2024-11-20 | ft:gpt-4o-2024-11-20 | $3.75 | $15.00 | – | $1.875 | – | – | 128K |
| Azure OpenAI | azure/gpt-4o | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| Azure OpenAIsnapshot 2024-05-13 | azure/gpt-4o-2024-05-13 | $5.00 | $15.00 | – | – | $2.50 | $7.50 | 128K |
| Azure OpenAIsnapshot 2024-08-06 | azure/gpt-4o-2024-08-06 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| Azure OpenAIsnapshot 2024-11-20 | azure/gpt-4o-2024-11-20 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| GitHub Copilot | github_copilot/gpt-4o | – | – | – | – | – | – | 64K |
| GitHub Copilotsnapshot 2024-05-13 | github_copilot/gpt-4o-2024-05-13 | – | – | – | – | – | – | 64K |
| GitHub Copilotsnapshot 2024-08-06 | github_copilot/gpt-4o-2024-08-06 | – | – | – | – | – | – | 64K |
| GitHub Copilotsnapshot 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 | $0 | – | – | 128K |
| Azure OpenAIeu | azure/eu/gpt-4o | $2.75 | $11.00 | $1.375 | $1.38 | $1.375 | $5.50 | 128K |
| Azure OpenAIeu, snapshot 2024-05-13 | azure/eu/gpt-4o-2024-05-13 | $5.50 | $16.50 | – | – | $2.75 | $8.25 | 128K |
| Azure OpenAIeu, snapshot 2024-08-06 | azure/eu/gpt-4o-2024-08-06 | $2.75 | $11.00 | $1.375 | – | $1.375 | $5.50 | 128K |
| Azure OpenAIeu, snapshot 2024-11-20 | azure/eu/gpt-4o-2024-11-20 | $2.75 | $11.00 | $1.375 | $1.38 | $1.375 | $5.50 | 128K |
| Azure OpenAIglobal-standard, snapshot 2024-08-06 | azure/global-standard/gpt-4o-2024-08-06 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| Azure OpenAIglobal-standard, snapshot 2024-11-20 | azure/global-standard/gpt-4o-2024-11-20 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| Azure OpenAIglobal, snapshot 2024-08-06 | azure/global/gpt-4o-2024-08-06 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
Show 8 more listings
| Provider | Model name in LiteLLM | Input | Output | Cache read | Cache write | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|
| Azure OpenAIglobal, snapshot 2024-11-20 | azure/global/gpt-4o-2024-11-20 | $2.50 | $10.00 | $1.25 | – | $1.25 | $5.00 | 128K |
| Azure OpenAIus-gov | azure/us-gov/gpt-4o | $3.438 | $13.75 | $1.719 | – | – | – | 128K |
| Azure OpenAIus-gov, snapshot 2024-05-13 | azure/us-gov/gpt-4o-2024-05-13 | $6.25 | $18.75 | – | – | – | – | 128K |
| Azure OpenAIus-gov, snapshot 2024-11-20 | azure/us-gov/gpt-4o-2024-11-20 | $3.438 | $13.75 | $1.719 | – | – | – | 128K |
| Azure OpenAIus | azure/us/gpt-4o | $2.75 | $11.00 | $1.375 | $1.38 | $1.375 | $5.50 | 128K |
| Azure OpenAIus, snapshot 2024-05-13 | azure/us/gpt-4o-2024-05-13 | $5.50 | $16.50 | – | – | $2.75 | $8.25 | 128K |
| Azure OpenAIus, snapshot 2024-08-06 | azure/us/gpt-4o-2024-08-06 | $2.75 | $11.00 | $1.375 | – | $1.375 | $5.50 | 128K |
| Azure OpenAIus, snapshot 2024-11-20 | azure/us/gpt-4o-2024-11-20 | $2.75 | $11.00 | $1.375 | $1.38 | $1.375 | $5.50 | 128K |
Other GPT-4o prices on OpenAI
| Priority input | $4.25 per 1M tokens |
| Priority output | $17.00 per 1M tokens |
What GPT-4o costs in practice
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 |
GPT-4o cost calculator
At OpenAI's price ($2.50 input, $10.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $75.00 a day, about $2,250 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.0075
- Per day
- $75.00
- Per month (30 days)
- $2,250
GPT-4o features
Input: text, image, pdf, audio. Output: text, audio.
- Function calling
- Parallel tool calls
- Structured output
- Image input
- PDF input
- Audio input
- Audio output
- Prompt caching
Use GPT-4o with LiteLLM
Call GPT-4o 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",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: gpt-4o
litellm_params:
model: gpt-4o
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",
"messages": [{"role": "user", "content": "Hello!"}]
}'GPT-4o 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 $6.25.
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.
Is GPT-4o being deprecated?
OpenAI lists a deprecation date of January 14, 2027 for gpt-4o.
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
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.