GPT-4o vs Grok 4

API pricing, context window and capabilities for GPT-4o and Grok 4, side by side. Prices are the cheapest serving route per 1M tokens, verified against LiteLLM and OpenRouter.

Verdict

computed from the published numbers

GPT-4o wins on price. Grok 4 wins on intelligence and on context window. Benchmark data is unavailable for one or both models.

Price
GPT-4o
Coding
Not called
Intelligence
Grok 4
Context window
Grok 4

Key takeaways

who wins on what, from the published numbers

GPT-4o wins

  • Cheaper input ($2.50 vs $3.00 /1M)
  • Cheaper output ($10.00 vs $15.00 /1M)
  • More serving providers (6 vs 5)
  • Supports vision
  • Supports audio

Grok 4 wins

  • Larger context window (131K vs 256K)
  • Higher max output (16K vs 256K)
  • Has reasoning mode
  • Has web search
Cheaper overall
GPT-4o
$2.50 + $10.00 /1M
Larger context
Grok 4
256K
More providers
GPT-4o
6 providers

Pricing & specs

cheapest serving route · per 1M tokens
GPT-4oGrok 4
Input $/1M$2.50 best$3.00
Output $/1M$10.00 best$15.00
Context window131K 256K best
Max output16K 256K best
Serving providers6 best5
Released2024-05-13 2024-07-09

Benchmarks

Artificial Analysis indices, side by side
GPT-4oGrok 4
Intelligence11.2 33.3 best
GPQA Diamond54% 88% best
Output speed99 t/s Not available
Latency (TTFT)5.19s Not available

Cost calculator

choose a serving route for each side
Input tokens / month
Output tokens / month
GPT-4o
via Azure
$23
Grok 4
via Azure
$30

Capabilities

feature support, side by side
FeatureGPT-4oGrok 4
Vision
Tool use
Reasoning
Audio
Prompt caching
Structured output
Web search

Related comparisons

Frequently asked questions

Which is cheaper, GPT-4o or Grok 4?
GPT-4o is cheaper for input ($2.50 vs $3.00 per 1M tokens). GPT-4o is cheaper for output ($10.00 vs $15.00 per 1M tokens).
What is the context window difference between GPT-4o and Grok 4?
GPT-4o has a 131K-token context window and Grok 4 has 256K tokens, so Grok 4 can take a larger prompt.
How do GPT-4o and Grok 4 compare on benchmarks?
On the tracked Artificial Analysis indices, Grok 4 leads on intelligence.
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI