Magica logo

Gemma 3n 4B vs Gemma 4 31B (Comparative Analysis)

Loading comparison form...
Comparative Analysis: Gemma 3n 4B vs. Gemma 4 31B
Want to try out these models side by side?Try Magica for free

Overview

Gemma 3n 4B was released 10 months before Gemma 4 31B.
Gemma 3n 4BGemma 3n 4B
Gemma 4 31BGemma 4 31B
Model Provider
The organization behind this AI's development
Google logoGoogle
Google logoGoogle
Input Context Window
Maximum input tokens this model can process at once
32.8K
tokens
262.1K
tokens
Output Token Limit
Maximum output tokens this model can generate at once
Not specified
tokens
262.1K
tokens
Release Date
When this model first became publicly available
May 20th, 2025
April 2nd, 2026
Knowledge Cutoff
Latest training-data date reported by the provider
August 31, 2024
Not reported

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Gemma 3n 4B
Gemma 4 31B
Input Types
Supported input formats
📝Text
🖼️Image📝Text🎬Video
Reasoning Controls
Defaults and configurable reasoning effort
Not reported
Optional
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
OtherGemma
Key Features
Advanced capabilities
Function CallingStructured OutputReasoning ModeContent Moderation
Function CallingStructured OutputReasoning ModeContent Moderation
Open Source
Model availability
Available on HuggingFace →Available on HuggingFace →

Pricing

Gemma 3n 4B is roughly 0.4x less expensive compared to Gemma 4 31B for input tokens and roughly 0.3x less expensive for output tokens.
Gemma 3n 4BGemma 3n 4B
Gemma 4 31BGemma 4 31B
Input Token Cost
Cost per million input tokens
$0.06
per million tokens
$0.14
per million tokens
Output Token Cost
Cost per million output tokens
$0.12
per million tokens
$0.40
per million tokens

Benchmarks

Compare relevant benchmarks between Gemma 3n 4B and Gemma 4 31B.
Gemma 3n 4BGemma 3n 4B
Gemma 4 31BGemma 4 31B
Intelligence Index
Overall model quality across independent evaluations
Benchmark not available.
29.4
(Artificial Analysis index; higher is better)
Coding Index
Programming performance across independent evaluations
3.2
(Artificial Analysis index; higher is better)
43.4
(Artificial Analysis index; higher is better)
Agentic Index
Ability to complete multi-step agentic tasks
Benchmark not available.
14.4
(Artificial Analysis index; higher is better)

At a Glance

Quick overview of what makes Gemma 3n 4B and Gemma 4 31B unique.
Google logoGemma 3n 4B by Google generates structured data. It can handle standard conversations with its 32.8K token context window. Very affordable at $0.06/M input and $0.12/M output tokens. Released May 20th, 2025.
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.14/M input and $0.40/M output tokens. Released April 2nd, 2026.

Explore More Comparisons

Compare your models with top performers across different categories