LiteLLMLiteLLM/ MODELS

GPT-4o API Pricing

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

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

GPT-4o 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$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–$1.25$5.00128K
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 OpenAIeuazure/eu/gpt-4o$2.75$11.00$1.375$1.38$1.375$5.50128K
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
Show 8 more listings
GPT-4o 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
Azure OpenAIglobal, snapshot 2024-11-20azure/global/gpt-4o-2024-11-20$2.50$10.00$1.25–$1.25$5.00128K
Azure OpenAIus-govazure/us-gov/gpt-4o$3.438$13.75$1.719–––128K
Azure OpenAIus-gov, snapshot 2024-05-13azure/us-gov/gpt-4o-2024-05-13$6.25$18.75––––128K
Azure OpenAIus-gov, snapshot 2024-11-20azure/us-gov/gpt-4o-2024-11-20$3.438$13.75$1.719–––128K
Azure OpenAIusazure/us/gpt-4o$2.75$11.00$1.375$1.38$1.375$5.50128K
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 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.

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 $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:

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.