Price Per TokenPrice Per Token
Google
Google
vs
Xai
Xai

Gemma 2 27B vs Grok 4

A detailed comparison of pricing, benchmarks, and capabilities

108 out of our 483 tracked models have had a price change in March.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Gemma 2 27B wins:

  • Cheaper input tokens
  • Cheaper output tokens

Grok 4 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Has reasoning mode
Price Advantage
Gemma 2 27B
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4

Pricing Comparison

Price Comparison

MetricGemma 2 27BGrok 4Winner
Input (per 1M tokens)$0.65$3.00 Gemma 2 27B
Output (per 1M tokens)$0.65$15.00 Gemma 2 27B
Cache Read (per 1M)N/A$0.75 Grok 4
Using a 3:1 input/output ratio, Gemma 2 27B is 89% cheaper overall.

Gemma 2 27B Providers

No provider data available

Grok 4 Providers

No provider data available

Benchmark Comparison

9
Benchmarks Compared
0
Gemma 2 27B Wins
4
Grok 4 Wins

Benchmark Scores

BenchmarkGemma 2 27BGrok 4Winner
Intelligence Index
Overall intelligence score
36.241.5
Coding Index
Code generation & understanding
-40.5-
Math Index
Mathematical reasoning
-92.7-
MMLU Pro
Academic knowledge
38.486.6
GPQA
Graduate-level science
16.787.7
LiveCodeBench
Competitive programming
-81.9-
Aider
Real-world code editing
36.179.6
AIME
Competition math
-94.3-
BBH
Big-Bench Hard
49.3--
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Gemma 2 27B
Other models

Context & Performance

Context Window

Gemma 2 27B
8,192
tokens
Grok 4
256,000
tokens
Grok 4 has a 97% larger context window.

Speed Performance

MetricGemma 2 27BGrok 4Winner
Tokens/secondN/A48.1 tok/s
Time to First TokenN/A10.29s

Capabilities

Feature Comparison

FeatureGemma 2 27BGrok 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 27BGrok 4
LicenseOpen SourceProprietary
AuthorGoogleXai
ReleasedJul 2024Jul 2025

Gemma 2 27B Modalities

Input
text
Output
text

Grok 4 Modalities

Input
imagetext
Output
text

Related Comparisons

Compare Gemma 2 27B with:

Compare Grok 4 with:

Frequently Asked Questions

Gemma 2 27B has cheaper input pricing at $0.65/M tokens. Gemma 2 27B has cheaper output pricing at $0.65/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to Gemma 2 27B's score of N/A.
Gemma 2 27B has a 8,192 token context window, while Grok 4 has a 256,000 token context window.
Gemma 2 27B supports vision. Grok 4 supports vision.