AiCostCompare

GPT-4o (2024-08-06)

by OpenAI · openai/gpt-4o-2024-08-06 · #386 cheapest of 457 paid models

Prices updated Nov 18, 2026, 4:47 PM UTC · refreshed nightly

The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format. Read more [here](https://openai.com/index/introducing-structured-outputs-in-the-api/). GPT-4o ("o" for "omni") is...

Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5Gemini 3.6 Flash

Pricing

Input

$2.50

per 1M tokens

Output

$10.00

per 1M tokens

Blended (3:1)

$4.38

3 input : 1 output

Cache read

$1.25

per 1M cached tokens

Cache write

—

per 1M tokens

Cache & batch economics

Effective prices for GPT-4o (2024-08-06) with prompt caching.

Cache hit rateEffective blended $/1MExample request*vs no cache
0%$4.38$0.265—
50%$3.91$0.2025−24%
90%$3.53$0.1525−42%

*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.

What a request costs

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$0.00425$4.25
Document summary8,0001,000$0.03$30.00
Codebase question (RAG)30,0002,000$0.095$95.00
Long-context analysis150,0005,000$0.425$425.00

Specs

Context window

128K

tokens

Max output

16K

tokens

Input modalities

text, image, file

Tokenizer

GPT