GPT-5 vs Grok 4

API pricing, context window and capabilities for GPT-5 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

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

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

Key takeaways

who wins on what, from the published numbers

GPT-5 wins

  • Larger context window (410K vs 262K)
  • More serving providers (9 vs 6)
  • Supports vision
  • Has reasoning mode
  • Supports prompt caching

Grok 4 wins

  • Cheaper output ($10.00 vs $2.50 /1M)
  • Higher max output (128K vs 256K)
Cheaper overall
Grok 4
$1.25 + $2.50 /1M
Larger context
GPT-5
410K
More providers
GPT-5
9 providers

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-5Grok 4
Input $/1M$1.25via Databricks $1.25via xAI
Output $/1M$10.00via Databricks $2.50via xAI best
Context window410K best262K
Max output128K 256K best
Serving providers9 best6
DateReleased Aug 7, 2025 Released Jul 9, 2024

Benchmarks

Benchmark scores, side by side
GPT-5Grok 4
Intelligence23.0 best22.5
Terminal-Bench35% Not available
GPQA Diamond85% 88% best
Output speed102 t/s best75 t/s
Latency (TTFT)78.80s 13.22s best

Cost calculator

choose a serving route for each side
Input tokens / month
Output tokens / month
GPT-5
via Databricks
$16
Grok 4
via xAI
$8.75

Capabilities

feature support, side by side
FeatureGPT-5Grok 4
Vision✓—
Tool use✓✓
Reasoning✓—
Audio——
Prompt caching✓—
Structured output✓✓
Web search✓✓

Related comparisons

Frequently asked questions

Which is cheaper, GPT-5 or Grok 4?
Grok 4 is cheaper for output ($10.00 vs $2.50 per 1M tokens) from xAI.
What is the context window difference between GPT-5 and Grok 4?
GPT-5 has a 410K-token context window and Grok 4 has 262K tokens, so GPT-5 can take a larger prompt.
How do GPT-5 and Grok 4 compare on benchmarks?
On the tracked benchmarks, GPT-5 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