Comprehensive side-by-side LLM comparison
Grok-4 leads with 31.5% higher average benchmark score. Grok-4 offers 128.0K more tokens in context window than Grok-2. Grok-2 is $6.00 cheaper per million tokens. Overall, Grok-4 is the stronger choice for coding tasks.
xAI
Grok 2 was developed as the second generation of xAI's language model family, designed to provide enhanced reasoning, knowledge, and conversational abilities. Built with architectural improvements and expanded training, it represents a significant advancement in xAI's model capabilities.
xAI
Grok 4 represents the fourth generation of xAI's language models, developed to continue advancing the frontier of AI reasoning and knowledge. Built to handle increasingly complex tasks with enhanced reliability, it demonstrates xAI's commitment to pushing AI capabilities forward.
11 months newer

Grok-2
xAI
2024-08-13

Grok-4
xAI
2025-07-09
Cost per million tokens (USD)

Grok-2

Grok-4
Context window and performance specifications
Average performance across 1 common benchmarks

Grok-2

Grok-4
Grok-4
2024-12-31
Available providers and their performance metrics

Grok-2
xAI

Grok-4

Grok-2

Grok-4

Grok-2

Grok-4
xAI
ZeroEval