GPT-4o API Cost Calculator

OpenAI's GPT-4o: $2.5/M input · $10/M output · $1.25/M cached input. Price your own workload below.

Presets:

What GPT-4o costs in practice

WorkloadInputOutputCost
Short chat message500250$0.0037
10-page document + summary7,000500$0.022
Agent / coding session50,00010,000$0.225
1M tokens in + 1M out1,000,0001,000,000$12.50

GPT-4o vs nearest rivals

Closest-priced alternatives on a mixed 10K-input / 2K-output request:

ModelInput $/MTokOutput $/MTokMixed request
GPT-4o$2.5$10$0.045
Gemini 2.5 Pro$1.25$10$0.033
Claude Sonnet 5$2$10$0.040
Gemini 3.1 Pro Preview$2$12$0.044

Frequently asked questions

How much does the GPT-4o API cost?

GPT-4o costs $2.5 per million input tokens and $10 per million output tokens, with cached input at $1.25 per million (50% off).

How much does a typical chat message cost with GPT-4o?

A short chat message (about 500 input and 250 output tokens) costs roughly $0.0037 with GPT-4o. At 1,000 such requests a day, that is about $112.50 per month.

Is GPT-4o cheap compared to similar models?

GPT-4o has the #21 cheapest input rate of the 26 models we track. On a mixed workload (10K input / 2K output), it costs $0.045 per request, versus $0.033 for Gemini 2.5 Pro.

Related

Compare all models at once ·Count tokens in your prompt

Last updated 2026-08-03. Prices verified againstOpenAI's official pricing page; see themethodology.