Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
OpenAI
OpenAI

GPT-4 vs GPT-5

A detailed comparison of pricing, benchmarks, and capabilities

Sponsor Price Per Token Reach 5000+ developers comparing LLM APIs

116 out of our 296 tracked models have had a price change in January.

Make informed model choices with updates on pricing, new releases, and tools with our weekly newsletter.

Key Takeaways

GPT-4 wins:

  • No clear advantages in compared metrics

GPT-5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
Price Advantage
GPT-5
Benchmark Advantage
GPT-5
Context Window
GPT-5
Speed
GPT-5

Pricing Comparison

Price Comparison

MetricGPT-4GPT-5Winner
Input (per 1M tokens)$30.00$1.25 GPT-5
Output (per 1M tokens)$60.00$10.00 GPT-5
Cache Read (per 1M)N/A$125000.00 GPT-5
Using a 3:1 input/output ratio, GPT-5 is 91% cheaper overall.

GPT-4 Providers

OpenAI $30.00 (Cheapest)
OpenRouter $30.00 (Cheapest)
Azure $30.00 (Cheapest)

GPT-5 Providers

OpenAI $1.25 (Cheapest)
OpenRouter $1.25 (Cheapest)
Azure $1.25 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
0
GPT-4 Wins
3
GPT-5 Wins

Benchmark Scores

BenchmarkGPT-4GPT-5Winner
Intelligence Index
Overall intelligence score
12.844.1
Coding Index
Code generation & understanding
13.134.6
Math Index
Mathematical reasoning
-94.3-
MMLU Pro
Academic knowledge
-87.1-
GPQA
Graduate-level science
-85.4-
LiveCodeBench
Competitive programming
-84.6-
Aider
Real-world code editing
67.788.0
AIME
Competition math
-95.7-
GPT-5 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

GPT-4
8,191
tokens
Max output: 4,096 tokens
GPT-5
400,000
tokens
Max output: 128,000 tokens
GPT-5 has a 98% larger context window.

Speed Performance

MetricGPT-4GPT-5Winner
Tokens/second25.4 tok/s115.8 tok/s
Time to First Token0.81s100.46s
GPT-5 responds 357% faster on average.

Capabilities

Feature Comparison

FeatureGPT-4GPT-5
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGPT-4GPT-5
LicenseProprietaryProprietary
AuthorOpenAIOpenAI
ReleasedMay 2023Aug 2025

GPT-4 Modalities

Input
text
Output
text

GPT-5 Modalities

Input
textimagefile
Output
text

Related Comparisons

Compare GPT-4 with:

Compare GPT-5 with:

Frequently Asked Questions

GPT-5 has cheaper input pricing at $1.25/M tokens. GPT-5 has cheaper output pricing at $10.00/M tokens.
GPT-5 scores higher on coding benchmarks with a score of 34.6, compared to GPT-4's score of 13.1.
GPT-4 has a 8,191 token context window, while GPT-5 has a 400,000 token context window.
GPT-4 does not support vision. GPT-5 supports vision.