LiteLLMLiteLLM/ MODELS

GPT-4 API Pricing

By OpenAI · 2 providersgpt-4
Input / output
$30.00 / $60.00 per 1M tokens
Context
8K tokens
Max output
4K tokens

As of November 24, 2026, GPT-4 costs $30.00 per 1M input tokens and $60.00 per 1M output tokens on OpenAI. It has an 8,192-token context window and returns up to 4,096 tokens per response.

Prices updated Checked
Retired. OpenAI retired gpt-4 on October 23, 2026. Prices below are the last listed and kept for reference. Its successor is GPT-5.6.

GPT-4 pricing by provider

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

GPT-4 prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputBatch inBatch outContext
OpenAIgpt-4$30.00$60.00––8K
OpenAIsnapshot 0613gpt-4-0613$30.00$60.00$15.00$30.008K
OpenAIfine-tuned, snapshot 0613ft:gpt-4-0613$30.00$60.00––8K
GitHub Copilotgithub_copilot/gpt-4––––32K
GitHub Copilotsnapshot 0613github_copilot/gpt-4-0613––––32K

What GPT-4 costs in practice

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

OpenAI$90.00

GPT-4 cost calculator

At OpenAI's price ($30.00 input, $60.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $600 a day, about $18,000 a month. Change the numbers for your workload.

Per request
$0.06
Per day
$600
Per month (30 days)
$18,000

GPT-4 features

Input: text. Output: text.

Use GPT-4 with LiteLLM

Call GPT-4 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-4",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gpt-4
    litellm_params:
      model: gpt-4
      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-4",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

GPT-4 FAQ

How much does GPT-4 cost?

GPT-4 costs $30.00 per 1M input tokens and $60.00 per 1M output tokens on OpenAI.

What is the context window of GPT-4?

GPT-4 has an 8,192-token context window and returns up to 4,096 tokens per response.

Which providers offer GPT-4?

GPT-4 is available from 2 providers through LiteLLM: OpenAI and GitHub Copilot.

How do I call GPT-4 with an OpenAI-compatible API?

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

GPT-4 supports function calling and prompt caching.

Is GPT-4 being deprecated?

OpenAI deprecated gpt-4 on October 23, 2026.

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, GitHub Copilot.

Provider pages: OpenAI, GitHub Copilot.