LiteLLMModels

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.

By OpenAIModel ID gpt-4oPrices updated Checked
Input
$2.50 / 1M tokens
Output
$10.00 / 1M tokens
Cache read
$1.25 / 1M tokens
Context window
128,000 tokens
Max output
16,384 tokens
Providers
7
Added to LiteLLM
May 2024

GPT-4o pricing by provider

28 listings across 7 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
OpenAIgpt-4o$2.50$10.00$1.25–$1.25$5.00128K
OpenAIsnapshot 2024-05-13gpt-4o-2024-05-13$5.00$15.00––$2.50$7.50128K
OpenAIsnapshot 2024-08-06gpt-4o-2024-08-06$2.50$10.00$1.25–$1.25$5.00128K
OpenAIsnapshot 2024-11-20gpt-4o-2024-11-20$2.50$10.00$1.25–$1.25$5.00128K
OpenAIfine-tuned, snapshot 2024-08-06ft:gpt-4o-2024-08-06$3.75$15.00$1.875–$2.225$12.50128K
OpenAIfine-tuned, snapshot 2024-11-20ft:gpt-4o-2024-11-20$3.75$15.00–$1.875––128K
Azure OpenAIazure/gpt-4o$2.50$10.00$1.25–––128K
Azure OpenAIsnapshot 2024-05-13azure/gpt-4o-2024-05-13$5.00$15.00––$2.50$7.50128K
Azure OpenAIsnapshot 2024-08-06azure/gpt-4o-2024-08-06$2.50$10.00$1.25–$1.25$5.00128K
Azure OpenAIsnapshot 2024-11-20azure/gpt-4o-2024-11-20$2.50$10.00$1.25–$1.25$5.00128K
GitHub Copilotgithub_copilot/gpt-4o––––––64K
GitHub Copilotsnapshot 2024-05-13github_copilot/gpt-4o-2024-05-13––––––64K
GitHub Copilotsnapshot 2024-08-06github_copilot/gpt-4o-2024-08-06––––––64K
GitHub Copilotsnapshot 2024-11-20github_copilot/gpt-4o-2024-11-20––––––64K
GMI Cloudgmi/openai/gpt-4o$2.50$10.00––––128K
GradientAIgradient_ai/openai-gpt-4o––––––128K
Replicatereplicate/openai/gpt-4o$2.50$10.00–––––
Vercel AI Gatewayvercel_ai_gateway/openai/gpt-4o$2.50$10.00$1.25$0––128K
Azure OpenAIeu, snapshot 2024-05-13azure/eu/gpt-4o-2024-05-13$5.50$16.50––$2.75$8.25128K
Azure OpenAIeu, snapshot 2024-08-06azure/eu/gpt-4o-2024-08-06$2.75$11.00$1.375–$1.375$5.50128K
Azure OpenAIeu, snapshot 2024-11-20azure/eu/gpt-4o-2024-11-20$2.75$11.00$1.375$1.38$1.375$5.50128K
Azure OpenAIglobal-standard, snapshot 2024-08-06azure/global-standard/gpt-4o-2024-08-06$2.50$10.00$1.25–$1.25$5.00128K
Azure OpenAIglobal-standard, snapshot 2024-11-20azure/global-standard/gpt-4o-2024-11-20$2.50$10.00$1.25–$1.25$5.00128K
Azure OpenAIglobal, snapshot 2024-08-06azure/global/gpt-4o-2024-08-06$2.50$10.00$1.25–$1.25$5.00128K
Azure OpenAIglobal, snapshot 2024-11-20azure/global/gpt-4o-2024-11-20$2.50$10.00$1.25–$1.25$5.00128K
Show 3 more listings
ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Azure OpenAIus, snapshot 2024-05-13azure/us/gpt-4o-2024-05-13$5.50$16.50––$2.75$8.25128K
Azure OpenAIus, snapshot 2024-08-06azure/us/gpt-4o-2024-08-06$2.75$11.00$1.375–$1.375$5.50128K
Azure OpenAIus, snapshot 2024-11-20azure/us/gpt-4o-2024-11-20$2.75$11.00$1.375$1.38$1.375$5.50128K

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 features

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.

Python SDK
from litellm import completion

response = completion(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gpt-4o
    litellm_params:
      model: gpt-4o
      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 sk-1234" \
  -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 $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.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. 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.