AI model comparison

GPT-4o (2024-08-06) vs GPT-4

Pricing, context window, benchmarks, and features compared side by side. Or skip the guesswork and send one prompt to both.

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/).

Input / 1M
$2.50
Output / 1M
$10
Context
128K
openai logo

OpenAI

GPT-4

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning

Input / 1M
$30
Output / 1M
$60
Context
8K

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

openai logo

GPT-4o (2024-08-06)

9x cheaper for a typical chat

Higher intelligence score

openai logo

GPT-4o (2024-08-06)

7.7 vs 6.7 on Artificial Analysis

Larger context window

openai logo

GPT-4o (2024-08-06)

128K vs 8K tokens

Newer release

openai logo

GPT-4o (2024-08-06)

Released August 6, 2024

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

openai logoGPT-4o (2024-08-06)7.7
openai logoGPT-46.7

Coding index

openai logoGPT-4o (2024-08-06)Not available
openai logoGPT-413.1

Agentic index

openai logoGPT-4o (2024-08-06)Not available
openai logoGPT-4Not available

Pricing

GPT-4o (2024-08-06) vs GPT-4 API pricing

Per-token API rates. Cheaper option highlighted.

Metricopenai logoGPT-4o (2024-08-06)openai logoGPT-4
Input tokensPer 1M tokens$2.50$30
Output tokensPer 1M tokens$10$60
Cached input (read)Per 1M tokens$1.25Not available
Cache writePer 1M tokensNot availableNot available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

openai logoGPT-4o (2024-08-06)$10
openai logoGPT-4$90

Coding task

30K in, 4K out

openai logoGPT-4o (2024-08-06)$115$77.50 cached
openai logoGPT-4$1140

Long document summary

150K in, 2K out

openai logoGPT-4o (2024-08-06)$395$207.50 cached
openai logoGPT-4$4620

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricopenai logoGPT-4o (2024-08-06)openai logoGPT-4
Context window128K tokens8K tokens
Max output16K tokens4K tokens
Input typesFile, Image, TextText
Output typesTextText
Reasoning effort levelsNot availableNot available
Default reasoning effortNot availableNot available
Release dateAugust 6, 2024May 28, 2023

Features

Supported features

API features available for each model.

Metricopenai logoGPT-4o (2024-08-06)openai logoGPT-4
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningNot supportedNot supported
TemperatureSupportedSupported
Stop sequencesSupportedSupported
Deterministic seedSupportedSupported
Verbosity controlNot supportedNot supported

Our take

GPT-4o (2024-08-06) is 9x cheaper for a typical chat. GPT-4o (2024-08-06) scores higher on the Artificial Analysis Intelligence Index (7.7 vs 6.7). GPT-4o (2024-08-06) has the larger context window (128K vs 8K tokens). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

Is GPT-4o (2024-08-06) or GPT-4 cheaper?

GPT-4o (2024-08-06) is cheaper for a typical chat (2K input tokens and 500 output tokens). GPT-4o (2024-08-06) costs $2.50 per 1M input tokens and $10 per 1M output tokens, while GPT-4 costs $30 per 1M input tokens and $60 per 1M output tokens.

Which has a bigger context window, GPT-4o (2024-08-06) or GPT-4?

GPT-4o (2024-08-06) supports up to 128K tokens of context, compared with 8K for GPT-4.

Is GPT-4o (2024-08-06) smarter than GPT-4?

On the Artificial Analysis Intelligence Index, GPT-4o (2024-08-06) scores 7.7 and GPT-4 scores 6.7, putting GPT-4o (2024-08-06) ahead. Benchmarks don't capture everything, so the best test is running your own prompts through both.

Can I use GPT-4o (2024-08-06) and GPT-4 at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see GPT-4o (2024-08-06) and GPT-4 answer side by side and keep the better response.

openai logoopenai logo

Why choose? Ask both.

Send one prompt to GPT-4o (2024-08-06) and GPT-4 at the same time. Compare the answers side by side and keep the best one.