Price Per TokenPrice Per Token
OpenAI
OpenAI
vs
OpenAI
OpenAI

ChatGPT-4o vs GPT-5 Codex

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

ChatGPT-4o wins:

  • No clear advantages in compared metrics

GPT-5 Codex wins:

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

Pricing Comparison

Price Comparison

MetricChatGPT-4oGPT-5 CodexWinner
Input (per 1M tokens)$5.00$1.25 GPT-5 Codex
Output (per 1M tokens)$15.00$10.00 GPT-5 Codex
Cache Read (per 1M)N/A$125000.00 GPT-5 Codex
Using a 3:1 input/output ratio, GPT-5 Codex is 54% cheaper overall.

ChatGPT-4o Providers

OpenAI $5.00 (Cheapest)
Azure $5.00 (Cheapest)

GPT-5 Codex Providers

OpenAI $1.25 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
0
ChatGPT-4o Wins
5
GPT-5 Codex Wins

Benchmark Scores

BenchmarkChatGPT-4oGPT-5 CodexWinner
Intelligence Index
Overall intelligence score
18.644.5
Coding Index
Code generation & understanding
-38.9-
Math Index
Mathematical reasoning
25.798.7
MMLU Pro
Academic knowledge
80.386.5
GPQA
Graduate-level science
65.583.7
LiveCodeBench
Competitive programming
42.584.0
Aider
Real-world code editing
72.2--
AIME
Competition math
32.7--
GPT-5 Codex significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
ChatGPT-4o
Other models

Context & Performance

Context Window

ChatGPT-4o
128,000
tokens
Max output: 16,384 tokens
GPT-5 Codex
400,000
tokens
Max output: 128,000 tokens
GPT-5 Codex has a 68% larger context window.

Speed Performance

MetricChatGPT-4oGPT-5 CodexWinner
Tokens/second180.3 tok/s314.7 tok/s
Time to First Token0.42s10.95s
GPT-5 Codex responds 75% faster on average.

Capabilities

Feature Comparison

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

License & Release

PropertyChatGPT-4oGPT-5 Codex
LicenseProprietaryProprietary
AuthorOpenAIOpenAI
ReleasedAug 2024Sep 2025

ChatGPT-4o Modalities

Input
textimage
Output
text

GPT-5 Codex Modalities

Input
textimage
Output
text

Related Comparisons

Compare ChatGPT-4o with:

Compare GPT-5 Codex with:

Frequently Asked Questions

GPT-5 Codex has cheaper input pricing at $1.25/M tokens. GPT-5 Codex has cheaper output pricing at $10.00/M tokens.
GPT-5 Codex scores higher on coding benchmarks with a score of 38.9, compared to ChatGPT-4o's score of N/A.
ChatGPT-4o has a 128,000 token context window, while GPT-5 Codex has a 400,000 token context window.
ChatGPT-4o supports vision. GPT-5 Codex supports vision.