Magica logo

Gemma 2 27B vs Gemma 3 4B (Comparative Analysis)

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

Overview

Gemma 2 27B was released 8 months before Gemma 3 4B.
Gemma 2 27BGemma 2 27B
Gemma 3 4BGemma 3 4B
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
8.2K
tokens
131.1K
tokens
Output Token Limit
Maximum output tokens this model can generate at once
2K
tokens
16.4K
tokens
Release Date
When this model first became publicly available
July 13th, 2024
March 13th, 2025
Knowledge Cutoff
Latest training-data date reported by the provider
June 30, 2024
August 31, 2024

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
Gemma 2 27B
Gemma 3 4B
Input Types
Supported input formats
📝Text
📝Text🖼️Image
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
GeminiGemini
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 2 27B is roughly 13.0x more expensive compared to Gemma 3 4B for input tokens and roughly 6.5x more expensive for output tokens.
Gemma 2 27BGemma 2 27B
Gemma 3 4BGemma 3 4B
Input Token Cost
Cost per million input tokens
$0.65
per million tokens
$0.05
per million tokens
Output Token Cost
Cost per million output tokens
$0.65
per million tokens
$0.10
per million tokens

Benchmarks

Compare relevant benchmarks between Gemma 2 27B and Gemma 3 4B.
Gemma 2 27BGemma 2 27B
Gemma 3 4BGemma 3 4B
Coding Index
Programming performance across independent evaluations
Benchmark not available.
2.7
(Artificial Analysis index; higher is better)

At a Glance

Quick overview of what makes Gemma 2 27B and Gemma 3 4B unique.
Google logoGemma 2 27B by Google generates structured data. It can handle standard conversations with its 8.2K token context window. Reasonably priced at $0.65/M input and $0.65/M output tokens. Released July 13th, 2024.
Google logoGemma 3 4B by Google understands both text and images, generates structured data. It can handle standard conversations with its 131.1K token context window. Very affordable at $0.05/M input and $0.10/M output tokens. Released March 13th, 2025.

Explore More Comparisons

Compare your models with top performers across different categories