Spiral gives your agent every tool with one account. Browse the tools →

Gemma 4 31B vs Grok 4.5 (Comparative Analysis)

Loading comparison form...
Comparative Analysis: Gemma 4 31B vs. Grok 4.5
Want to try out these models side by side?Sign up for Spiral

Overview

Gemma 4 31B was released 3 months before Grok 4.5.
Gemma 4 31BGemma 4 31B
Grok 4.5Grok 4.5
Model Provider
The organization behind this AI's development
Google logoGoogle
XAI logoXAI
Input Context Window
Maximum input tokens this model can process at once
262.1K
tokens
500K
tokens
Output Token Limit
Maximum output tokens this model can generate at once
16.4K
tokens
450K
tokens
Release Date
When this model first became publicly available
April 2nd, 2026
July 8th, 2026

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Gemma 4 31B
Grok 4.5
Input Types
Supported input formats
🖼️Image📝Text🎬Video
📝Text🖼️Image📁File
Reasoning Controls
Defaults and configurable reasoning effort
Optional
Always enabledEffort: High, Medium, LowDefault: High
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
GemmaGrok
Key Features
Advanced capabilities
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
Open Source
Model availability
Available on HuggingFace →Proprietary

Pricing

Gemma 4 31B is roughly 0.1x less expensive compared to Grok 4.5 for input tokens and roughly 0.07x less expensive for output tokens.
Gemma 4 31BGemma 4 31B
Grok 4.5Grok 4.5
Short Context Pricing
Base rates before a long-context threshold applies
Input Token Cost
Cost per million input tokens
$0.20
per million tokens
$2.00
per million tokens
Output Token Cost
Cost per million output tokens
$0.40
per million tokens
$6.00
per million tokens
Web Search Cost
Additional cost for each web search operation
Not specified
$0.005
per search
Cache Read Cost
Cost to reuse cached input tokens
Not specified
$0.30
per million tokens
Long Context Pricing
Rates for prompts with 200,000 or more tokens
Input Token Cost
Long-context input cost per million tokens
Not specified
$4.00
per million tokens
Output Token Cost
Long-context output cost per million tokens
Not specified
$12.00
per million tokens
Cache Read Cost
Long-context cache read cost per million tokens
Not specified
$0.60
per million tokens

Benchmarks

Compare relevant benchmarks between Gemma 4 31B and Grok 4.5.
Gemma 4 31BGemma 4 31B
Grok 4.5Grok 4.5
Intelligence Index
Overall model quality across independent evaluations
4
(Artificial Analysis index; higher is better)
Benchmark not available.
Best Design Arena Score
Highest human-preference Elo score across design arenas
Benchmark not available.
1,321 Elo
(#29 in Website (52.2% win rate))

At a Glance

Quick overview of what makes Gemma 4 31B and Grok 4.5 unique.
Google logoGemma 4 31B by Google understands both text and images, analyzes video, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 262.1K token context window. Very affordable at $0.20/M input and $0.40/M output tokens. Released April 2nd, 2026.
XAI logoGrok 4.5 by XAI understands both text and images, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 500K token context window. Reasonably priced at $2.00/M input and $6.00/M output tokens. Released July 8th, 2026.

Explore More Comparisons

Compare your models with top performers across different categories