Grok 4 and xAI frontier illustration
Frontier · xAI

Grok 4

xAI’s flagship reasoning model — genuinely excellent at STEM and hard math, welded to the X firehose, and priced like it knows it.

ParamsUndisclosed (large)
Context256K
LicenseProprietary, commercial API
ReleasedJuly 2025
Price / 1M$3 in · $15 out
ModalityText, vision, tool use

What it is and who makes it

Grok 4 is the flagship model from xAI, Elon Musk’s AI lab, released in July 2025. It’s the model behind Grok on X, the xAI API, and the consumer SuperGrok subscription. Where OpenAI and Anthropic sell careful, safety-tuned assistants, xAI sells something punchier: a frontier reasoning model with fewer guardrail-shaped conversations and direct access to what people are saying on X in real time. Whether that’s a feature or a liability depends entirely on what you’re building.

Architecture and what’s under the hood

xAI doesn’t publish parameter counts, so treat any specific architecture claim as informed guesswork. Public information and reporting point to a very large mixture-of-experts design trained on the Colossus cluster in Memphis — xAI has claimed access to well over 100k H100-class GPUs for training. Grok 4 Heavy, the multi-agent variant, runs several agents in parallel on the same problem and reconciles their answers, which is how it posts eyebrow-raising scores on hard benchmarks. Inference-time compute is clearly doing a lot of the heavy lifting here. Vision is supported, but Grok remains a text-first model at heart — nobody picks it for OCR pipelines.

Strengths

  • STEM and math reasoning. GPQA ~87 and AIME ~90 (as of Nov 2026, approximate) put it at or near the top of the public reasoning boards. Competition-level math and physics questions are where it feels most at home.
  • Real-time knowledge via X. It’s the only frontier model with native, first-class access to the X firehose. For anything where “what’s happening right now” matters — markets, breaking news, dev tool drama — that’s a genuine edge, not marketing.
  • Looser conversational leash. Fewer canned refusals on edgy-but-legitimate questions. Good for unfiltered brainstorming and adversarial red-teaming.
  • Tool use and function calling are solid, and the API is OpenAI-compatible, so migration is mostly a base-URL change.

Weaknesses and failure modes

  • Hallucination rate sits above rivals. It will state wrong facts with total confidence, especially on niche topics outside STEM. Grounding and citation checks are mandatory for anything customer-facing.
  • Brand and procurement risk. Plenty of enterprises won’t approve an xAI dependency on principle, or because of the Musk association. That’s a real constraint, not a vibe.
  • Price. $3/$15 per 1M tokens (input/output) is steep next to GPT-5 mini or Gemini 3 Flash for high-volume workloads.
  • Inconsistency on long agentic runs. It can lose the plot across dozens of tool calls; Sonnet 4.5 and GPT-5 are more reliable there.

Best for / avoid for

Best for: hard math and STEM reasoning, research synthesis that benefits from live X data, unfiltered ideation, and personal/power-user workflows where the Grok persona is a plus.

Avoid for: regulated enterprise deployments with strict vendor policies, high-volume budget workloads, tasks where citation accuracy is non-negotiable, and conservative brand contexts.

Variants and family

  • Grok 4 Fast — the cost-optimized sibling, 2M context at $0.20/$0.50 per 1M tokens. See our Grok 4 Fast page.
  • grok-4-fast-non-reasoning — the same cheap tier with the reasoning trace skipped, for snappy simple queries.
  • Grok 4 Heavy — multi-agent parallel reasoning, consumer-side via SuperGrok; not separately priced in the API at time of writing.

Pricing, access and how to run it

Grok 4 is API-only — no open weights. Access runs through the xAI API (api.x.ai), OpenRouter, and the X/Grok consumer apps. The xAI API is OpenAI-compatible:

curl https://api.x.ai/v1/chat/completions \
  -H "Authorization: Bearer $XAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4",
    "messages": [{"role": "user", "content": "Prove that sqrt(2) is irrational."}]
  }'

On OpenRouter it’s a drop-in replacement:

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4",
    "messages": [{"role": "user", "content": "Summarize today's top X posts about fusion energy."}]
  }'

There’s no local option. If you want Grok-class reasoning on your own hardware, you’re looking at open-weights alternatives like Qwen 3 235B instead.

Benchmarks snapshot

Approximate, as of Nov 2026 — treat these as ballpark figures, not gospel:

BenchmarkGrok 4 (approx.)
MMLU~90
GPQA (diamond)~87
AIME 2025~90
SWE-bench Verifiedbelow Sonnet 4.5 / GPT-5 (reported ~60s)

Publicly reported numbers (as of Nov 2026) put Grok 4 at or near the top of AIME and GPQA-style reasoning suites, often with the Grok 4 Heavy multi-agent configuration. Hallucination evaluations (e.g., AA-Omniscience-style tests) consistently show it fabricating more than GPT-5 or Claude Opus 4.1. Benchmarks drift monthly; re-check the xAI docs before you commit budget.

How it stacks up

vs GPT-5: GPT-5 is the better all-rounder — stronger on agentic coding, more consistent over long tool runs, and cheaper at $1.25/$10. Grok 4 wins on raw STEM/math ceiling and live X knowledge. If your workload is “hard problems with a deadline,” test both; if it’s “autonomous coding agent,” GPT-5 is the safer default.

vs Gemini 3 Pro: Gemini 3 Pro brings 2M context, native audio/video, and better large-context retrieval at $1.25/$15 — and it’s half the input price. Grok 4 counters with sharper reasoning scores and the X integration. For multimodal-heavy or million-token-document work, Gemini wins; for pure reasoning punch, Grok holds up.

PeaBox fit

For PeaBox Lab workflows, Grok 4 is the model we’d reach for when a benchmark-style hard reasoning question lands on the desk and we want a second opinion alongside GPT-5 — its math ceiling is real. It’s not the model we’d wire into an unsupervised agent loop, and it’s not the one we’d put in front of users without a fact-checking layer. For anything you want reproducible and local, we route to open weights instead.

Here’s the honest summary: Grok 4 is a specialist’s tool wearing a generalist’s badge. If you do quantitative work, follow X for a living, or you simply want the least-filtered frontier model available over an API, it earns its price. If you need a dependable default for agentic software engineering or regulated enterprise rollout, GPT-5 or Claude Sonnet 4.5 will hurt less. Either way, benchmark it on your own prompts — the leaderboard gap between these two or three models is smaller than the gap between your prompts on a good day and a bad one.

More from the atlas