Inference Index
Compare

o4 vs Grok 4

OpenAI vs xAI. Specs, benchmarks, and real per-task cost — all in one page.

Verdict

Grok 4 is ~3.5× cheaper on a 3:1 input:output blend.

OpenAI
o4

Deep-reasoning model. Spends more tokens thinking to crush math, science, and hard coding problems.

State-of-the-art math and scienceExtremely high-ceiling reasoning
xAI
Grok 4

xAI’s latest. Real-time X search integration, strong on current events and meme-literate tasks.

Live web/X accessPersonalityFast inference on Colossus
Pricing
Input / 1M$15.00$5.00
Output / 1M$60.00$15.00
Context200K256K
Max output100K32K
LicenseProprietaryProprietary
Released2026-02-182026-03-01
Benchmarks
LMSYS ELO1358.0
MMLU Pro93.886.2
HumanEval92.388.4
SWE-Bench68.0
MATH96.286.5
GPQA82.5
IFEval85.0
Per-task cost
Summarize a 1-hour meeting transcript$0.255$0.082
Review a 500-line pull request$0.240$0.070
Answer a customer support ticket$0.093$0.027
Extract structured data from a resume$0.135$0.040
Debug a stack trace with context$0.210$0.060

Per-call cost using published token counts for each task. Real-world prompts vary.