Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

Gemini 3.1 Pro Preview vs Gemma 2 27B

A detailed comparison of pricing, benchmarks, and capabilities

Best Coding Model Leaderboard Find the top LLM for coding by benchmarks and community votes

114 out of our 298 tracked models have had a price change in February.

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

Key Takeaways

Gemini 3.1 Pro Preview wins:

  • Larger context window
  • Supports vision

Gemma 2 27B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Higher intelligence benchmark
Price Advantage
Gemma 2 27B
Benchmark Advantage
Gemma 2 27B
Context Window
Gemini 3.1 Pro Preview
Speed
N/A

Pricing Comparison

Price Comparison

MetricGemini 3.1 Pro PreviewGemma 2 27BWinner
Input (per 1M tokens)$2.00$0.65 Gemma 2 27B
Output (per 1M tokens)$12.00$0.65 Gemma 2 27B
Cache Read (per 1M)$200000.00N/A Gemini 3.1 Pro Preview
Cache Write (per 1M)$375000.00N/A Gemini 3.1 Pro Preview
Using a 3:1 input/output ratio, Gemma 2 27B is 86% cheaper overall.

Gemini 3.1 Pro Preview Providers

Google AI Studio $2.00 (Cheapest)
Google $2.00 (Cheapest)

Gemma 2 27B Providers

NextBit $0.65 (Cheapest)
Together $N/A

Benchmark Comparison

5
Benchmarks Compared
0
Gemini 3.1 Pro Preview Wins
0
Gemma 2 27B Wins

Benchmark Scores

BenchmarkGemini 3.1 Pro PreviewGemma 2 27BWinner
Intelligence Index
Overall intelligence score
-36.2-
MMLU Pro
Academic knowledge
-38.4-
GPQA
Graduate-level science
-16.7-
Aider
Real-world code editing
-36.1-
BBH
Big-Bench Hard
-49.3-
Both models show comparable benchmark performance.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

Gemini 3.1 Pro Preview
1,048,576
tokens
Max output: 65,536 tokens
Gemma 2 27B
8,192
tokens
Max output: 2,048 tokens
Gemini 3.1 Pro Preview has a 99% larger context window.

Speed Performance

Speed benchmarks not available for these models

Capabilities

Feature Comparison

FeatureGemini 3.1 Pro PreviewGemma 2 27B
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemini 3.1 Pro PreviewGemma 2 27B
LicenseProprietaryOpen Source
AuthorGoogleGoogle
ReleasedFeb 2026Jul 2024

Gemini 3.1 Pro Preview Modalities

Input
audiofileimagetextvideo
Output
text

Gemma 2 27B Modalities

Input
text
Output
text

Related Comparisons

Compare Gemini 3.1 Pro Preview with:

Compare Gemma 2 27B 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.
Gemini 3.1 Pro Preview scores higher on coding benchmarks with a score of N/A, compared to Gemma 2 27B's score of N/A.
Gemini 3.1 Pro Preview has a 1,048,576 token context window, while Gemma 2 27B has a 8,192 token context window.
Gemini 3.1 Pro Preview supports vision. Gemma 2 27B does not support vision.