Skip to content
AI Dev Toolkit.
Esc
  • AI Token CounterCount tokens for GPT, Claude, Gemini, DeepSeek, Qwen and more.Tool
  • LLM API Cost CalculatorEstimate per-request, daily and monthly API costs.Tool
  • AI Model ComparisonCompare prices, context windows and features across models.Tool
  • AI Model Pricing PagesSpecs, real costs and cheaper alternatives for popular models.Tool
  • Context Window CheckerSee whether your text fits each model’s context window.Tool
  • Subscription vs API CalculatorFind out whether a chat plan or the API is cheaper for you.Tool
  • GPU / VRAM CalculatorCheck how much VRAM a local model needs and which GPUs fit.Tool
  • Prompt Caching CalculatorEstimate savings from prompt caching.Tool

OpenAI · Model

GPT-4o pricing, context window and specs

GPT-4o costs $2.50 per million input tokens and $10 per million output tokens, and reads up to 128,000 tokens per request. By blended price it is number 6 of OpenAI’s 10 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

GPT-4o API pricing

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, so long replies drive the bill more than long prompts. If your requests share a long fixed prefix, such as a system prompt or tool definitions, caching cuts that part to 50% of the normal input price.

Examples

What GPT-4o costs in practice

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

Context window

GPT-4o accepts up to 128,000 tokens per request, roughly 96,000 English words or 192 pages. That budget is shared between your prompt and the reply, and a single reply is capped at 16,384 tokens.

Filling the whole window with one prompt costs about $0.32 at list price, so for repeated long-document work, retrieval (sending only the relevant parts) or prompt caching is usually much cheaper.

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

Features

Capabilities

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

GPT-4o 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 GPT-4o sits 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 6 of OpenAI’s 10 current models here, counting from the cheapest. One step down, GPT-6.1 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.6 Terra costs $4.50 (1× 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

ModelInput / 1MOutput / 1MContextReleased
gpt-oss-120b$0.037$0.17131,0722025-08-05
GPT-6 Luna$0.10$0.501,050,0002026-09-22
GPT-4o-mini$0.15$0.60128,0002024-07-18
GPT-5.4 Mini$0.75$4.50400,0002026-03-17
GPT-6.1 Sol$2$101,050,0002026-09-29
GPT-4o (this page)$2.50$10128,0002024-05-13
GPT-5.6 Terra$2$121,050,0002026-07-09
GPT-5.5$5$301,050,0002026-04-24
GPT-6 Astra$10$501,050,0002026-09-04
GPT-5.5 Pro$30$1801,050,0002026-04-24

OpenAI’s current models with a page here, cheapest first. Older and superseded models are listed on the provider page and in the comparison table.

Save

Cheaper alternatives

Current models from major providers, one per provider, that keep image input, tool calling, a usable context window and output limit. Compared by blended price.

Compare

Similarly priced models

Current models from other major providers, closest blended price.

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.

Is GPT-4o open source?

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

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. See our methodology.