LLMcompare

Search

Search for a command to run...

A · open · Gemma

Gemma 2 27B

Google

B · open · Gemma

Gemma 4 31B

Google

0:3

overall capability wins (1 ties across 4 scored). Gemma 4 31B leads overall.

  • Arena0:1
  • Pricing1:2
  • Speed0:2
  • Specs0:2

Verdict

Gemma 4 31B ranks higher on LMArena (+162 Elo); Gemma 4 31B offers ~31.3x larger context (256K vs 8K); Gemma 4 31B is ~1.8x cheaper on a blended token basis than Gemma 2 27B.

  • Gemma 4 31B ranks higher on LMArena (+162 Elo)
  • Gemma 4 31B offers ~31.3x larger context (256K vs 8K)
  • Gemma 4 31B is ~1.8x cheaper on a blended token basis than Gemma 2 27B

Cost for 1M in + 250K out

Illustrative chat workload at primary-provider list prices.

Gemma 2 27B
$0.34
Gemma 4 31B
$0.17

Gemma 4 31B is about 1.9x cheaper on this workload.

Price per 1M tokens

Full comparison

Organization

Google

Google

Family

Gemma

Gemma

License

Gemma

Apache 2.0

Open weights

Yes

Yes

Release

Jun 27, 2024

Apr 8, 2026

Knowledge cutoff

-

-

API / provider

Groq / Together (ref.)

Google AI / self-host

Modalities

text → text

text, image → text

Specs

Context window

8K

256K

B +248K

Max output

8K

8K

tie

Parameters

27B

31B

B +4.00

Pricing

Input $/1M

$0.27

$0.10

B +$0.17

Output $/1M

$0.27

$0.30

A +$0.03

Blended $/1M (3∶1)

$0.27

$0.15

B +$0.12

Speed

tok/s

80

85

B +5.00

TTFT (s)

0.35

0.3

B +0.05

Reasoning

MMLU-Pro

—

85.2

—

GPQA Diamond

—

85.7

—

Humanity's Last Exam

—

23.6

—

AIME 2025

—

—

—

MATH-500

—

—

—

Humanity's Last Exam (with tools)

—

—

—

AA-Omniscience Accuracy

—

20.0

—

AA-LCR v1.1

—

69.7

—

CritPt

—

1.4

—

MMMU-Pro

—

73.4

—

IFBench

—

75.6

—

Chartography

—

—

—

Chartography (With Tools)

—

—

—

Coding

SWE-bench Verified

—

—

—

SWE-bench Pro

—

—

—

SWE-bench Multilingual

—

—

—

LiveCodeBench

—

80.0

—

Terminal-Bench 2.1

—

43.4

—

Aider Polyglot

—

—

—

Terminal-Bench 3

—

—

—

BigCodeBench

42.8

—

—

SciCode

—

45.5

—

CursorBench

—

—

—

SWE-Rebench

—

25.1

—

NL2Repo-Bench

—

—

—

DeepSWE

—

—

—

WebDev Arena

—

1,364

—

Terminal-Bench 4.0

—

—

—

CursorBench 4.0

—

—

—

FrontierCode v1.1 (Main)

—

—

—

Arena

LMArena Elo

1,289

1,451

B +162 Elo

Gemma 2 27B

Context
8K / 8K out
Parameters
27B
Price
$0.27 / $0.27
Speed
80 tok/s · 0.35s TTFT
Modalities
text → text
License
Gemma

Google's open 27B instruct model — strong small-model quality before Gemma 3 / 4.

Gemma 4 31B

Context
256K / 8K out
Parameters
31B
Price
$0.10 / $0.30
Speed
85 tok/s · 0.3s TTFT
Modalities
text, image → text
License
Apache 2.0

Open-weight Gemma 4 instruction model - strong mid-size open alternative under Apache 2.0.

Benchmark charts

Winner bars are emphasized. Per-benchmark deltas sit above each chart.

Arena

Arena Elo: B +162

Pick a different pair · Back to catalog