Skip to content
AI Dev Toolkit.
Esc
  • Loading…

OpenAI · Model

GPT-4o API pricing, cost and context window

GPT-4o costs $2.50 per million input tokens and $10 per million output tokens. Cached input costs $1.25. It reads up to 128,000 tokens and writes up to 16,384 per reply. Prices checked 2026-11-28. By blended price it is number 8 of OpenAI’s 11 current models here, counting from the cheapest.

Input / 1M
$2.50
Output / 1M
$10
Cached / 1M
$1.25
Context
128,000
Max output
16,384
Released
2024-05-13

Estimate your cost with GPT-4oCompare all OpenAI modelsCount tokens for GPT-4o

Pricing

How much does GPT-4o cost per million tokens?

Price per 1M tokensInputOutput
Standard$2.50$10
Cached input (read)$1.25–
Batch API$1.25$5

Output costs 4.0× the input price; a cache hit costs 50% of it.

Work out your monthly GPT-4o bill in the cost calculatorSee what prompt caching savesSee what the Batch API saves

Examples

How much does a typical GPT-4o request cost?

WorkloadTokens in / outRequests/dayPer requestPer month
Support chatbot50% cached1,500 / 4001,000$0.00681$207.21
RAG app20% cached6,000 / 500500$0.0185$281.35
Coding agent80% cached40,000 / 2,000200$0.08$486.67
Document summariserbatch8,000 / 600300$0.013$118.63

Change any number in the cost calculator.

Context

What is GPT-4o’s context window and max output?

GPT-4o accepts up to 128,000 tokens per request, roughly 96,000 English words or 192 pages, prompt and reply together; one reply is capped at 16,384 tokens.

Filling the whole window with one prompt costs about $0.32 at list price.

Check whether your text fits GPT-4o’s window.

Features

What can GPT-4o do?

Image input
Yes
Tool / function calling
Yes
Reasoning mode
No
Prompt caching
Yes
Structured output
Yes
Open weights
No
Accepts
text, image, file
Knowledge cutoff
2023-10-31

As declared by the provider’s API. It shows a feature exists, not how well it works.

API

What is the GPT-4o API model ID?

OpenRouter
openai/gpt-4o
OpenAI API
gpt-4o (alias)gpt-4o-2024-11-20 (pinned)gpt-4o-2024-08-06 (pinned)

OpenAI lists GPT-4o as current. Every GPT model ID, with aliases and snapshots.

OpenAI

Where does GPT-4o sit in OpenAI’s line-up?

Ranked by blended price (three parts input to one part output, $4.375 per 1M for GPT-4o), it is number 8 of OpenAI’s 11 current models here, counting from the cheapest. One step down, GPT-6.2 Sol costs $4 blended (9% less). Unlike GPT-4o, it reads up to 1,050,000 tokens (128,000 here), caps a reply at 128,000 tokens (16,384 here) and has a reasoning mode. One step up, GPT-5.5 costs $11.25 (2.6× as much). Unlike GPT-4o, it reads up to 1,050,000 tokens (128,000 here), caps a reply at 128,000 tokens (16,384 here) and has a reasoning mode. See every OpenAI model and price

Save

What are cheaper alternatives to GPT-4o?

Keeping image input, tool calling; by blended price.

Compare

Which models cost about the same?

FAQ

GPT-4o questions

How much does GPT-4o cost?

GPT-4o costs $2.50 per million input tokens and $10 per million output tokens, with cached input at $1.25. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.00775. Use the LLM cost calculator for your own workload.

What is GPT-4o’s context window?

128,000 tokens, about 96,000 English words or 192 printed pages, shared between your prompt and the reply. A single reply can be up to 16,384 tokens.

Does GPT-4o support prompt caching and batch requests?

Yes, cached input is billed at $1.25 per million tokens (50% of the normal input price). A batch API is available at $1.25 input and $5 output per million tokens.

What are cheaper alternatives to GPT-4o?

With the same essentials (image input and tool calling), the cheapest options are GLM 4.6V (90% cheaper), Muse Glimmer 30B (88% cheaper), Qwen3.7 Plus (87% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.

What is the API model ID for GPT-4o?

On OpenRouter it is openai/gpt-4o. In OpenAI’s own API, use gpt-4o; OpenAI lists the model as current. The GPT model ID list has every alias and snapshot. Pass the ID as the model value in each request.

When was GPT-4o released?

GPT-4o was first listed on 2024-05-13, with a knowledge cutoff of 2023-10-31. It is the first model in its line in our data. Release dates here are when our price source first listed each model.

Is GPT-4o open source?

No, GPT-4o is only available through OpenAI’s API and partners; its weights aren’t published.

Prices checked · Page updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily; open-weight prices are typical hosted prices. Confirm critical numbers on OpenAI’s pricing page. Every price move is in the AI pricing changes log. See our methodology.

Keep exploring