Compare

Grok 4 — and what?

Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 1 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.

Search1/4
Grok 4
xai/grok-4
Provider
xAI
Family
Grok 4
Modality
text
Context window
256,000 tok
Max output
16,384 tok
Released
2025-07-09
License
Proprietary
Input price
$5.00 /1M
Output price
$15.00 /1M
Tools
yes
Streaming
yes
Vision
yes
JSON mode
yes
Reasoning
yes
Prompt caching
Batch API
Try it
Open in playground →
Grok 4
xai/grok-4
Full spec →

xAI Grok 4 — frontier reasoning, tool use, long context.

Strengths
  • Real-time search awareness
  • Irreverent tone
  • Competitive math + code
Use cases
News-aware chatResearch with fresh dataCreative writing

Compare with another

Claude Opus 4.7 vs Grok 4
anthropic/claude-opus-4.7 · xai/grok-4
GPT-5.4 vs Grok 4
openai/gpt-5.4 · xai/grok-4
Grok 4 vs Grok 4 Fast
xai/grok-4 · xai/grok-4-fast
Grok 4.20 Multi-Agent vs Grok 4
xai/grok-4.20-multi-agent-0309 · xai/grok-4
Grok 4 vs Grok 4.20 Non-Reasoning
xai/grok-4 · xai/grok-4.20-0309-non-reasoning
Grok 4 vs Grok 4.20 Reasoning
xai/grok-4 · xai/grok-4.20-0309-reasoning
Grok 4 vs Grok 4.3
xai/grok-4 · xai/grok-4.3