GPT-4o vs Grok 4

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

Verdict

computed from the published numbers

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

Price
Grok 4
Terminal-Bench
Not called
Intelligence
Grok 4
Context window
Grok 4

Key takeaways

who wins on what, from the published numbers

GPT-4o wins

  • Supports vision
  • Supports audio
  • Supports prompt caching

Grok 4 wins

  • Cheaper input ($2.50 vs $1.25 /1M)
  • Cheaper output ($10.00 vs $2.50 /1M)
  • Larger context window (131K vs 262K)
  • Higher max output (16K vs 256K)
  • Has web search
Cheaper overall
Grok 4
$1.25 + $2.50 /1M
Larger context
Grok 4
262K
More providers
Tied

Pricing & specs

cheapest listed route · per 1M tokens
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments can be materially lower.
GPT-4oGrok 4
Input $/1M$2.50via OpenAI $1.25via xAI best
Output $/1M$10.00via OpenAI $2.50via xAI best
Context window131K 262K best
Max output16K 256K best
Serving providers6 6
DateReleased May 13, 2024 Released Jul 9, 2024

Benchmarks

Benchmark scores, side by side
GPT-4oGrok 4
Intelligence8.4 22.5 best
GPQA Diamond54% 88% best
Output speed150 t/s best75 t/s
Latency (TTFT)0.79s best13.22s

Cost calculator

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

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?
Grok 4 is cheaper for input ($2.50 vs $1.25 per 1M tokens) from xAI. Grok 4 is cheaper for output ($10.00 vs $2.50 per 1M tokens) from xAI.
What is the context window difference between GPT-4o and Grok 4?
GPT-4o has a 131K-token context window and Grok 4 has 262K tokens, so Grok 4 can take a larger prompt.
How do GPT-4o and Grok 4 compare on benchmarks?
On the tracked benchmarks, Grok 4 leads on intelligence.
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Sep 22, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI