Google: Gemma 4 31B vs Inception: Mercury 2.5 Preview

Neither wins outright: Google: Gemma 4 31B is the pick when you need image input, Inception: Mercury 2.5 Preview when cost matters at scale.

Key numbers

SpecGoogle: Gemma 4 31BInception: Mercury 2.5 Preview
ProviderGoogleInception
Input price (per 1M tokens)$0.20$0.04
Output price (per 1M tokens)$0.40$0.15
Blended price (3:1 input/output)$0.25$0.07
Cheaper than … of all models we track66%85%
Context window262K tokens (~393 pages)260K tokens (~390 pages)
Larger context than … of all models48%47%
Max output per response16K tokens (~12,300 words)66K tokens (~49,200 words)
Input typesimage, text, videotext
Output typestexttext
Free variantYesNo
Listed since2026-04-022026-08-31
Advertisement

What it costs for real workloads

Monthly cost at list price for five common workloads. Token counts per unit are stated so you can scale them to your own traffic. A workload that does not fit a model's context window is marked rather than priced.

Workload (per month)Google: Gemma 4 31BInception: Mercury 2.5 PreviewDifference
Customer-support chatbot
50,000 conversations — each a 6-turn conversation (1,500 in / 400 out tokens)
$23.00$6.00Inception: Mercury 2.5 Preview saves $17.00
RAG search over documents
20,000 questions — each a question answered from ~8 retrieved passages (6,000 in / 500 out tokens)
$28.00$6.30Inception: Mercury 2.5 Preview saves $21.70
Coding / tool-using agent
2,000 tasks — each a multi-step task with tool calls and file context (60,000 in / 6,000 out tokens)
$28.80$6.60Inception: Mercury 2.5 Preview saves $22.20
Batch summarisation
10,000 documents — each a 6,000-word report summarised to a page (8,000 in / 600 out tokens)
$18.40$4.10Inception: Mercury 2.5 Preview saves $14.30
Long-document analysis
500 documents — each a 150-page contract or codebase read in one pass (100,000 in / 2,000 out tokens)
$10.40$2.15Inception: Mercury 2.5 Preview saves $8.25

Capabilities side by side

CapabilityGoogle: Gemma 4 31BInception: Mercury 2.5 PreviewWhat it lets you do
Tool / function calling✓ Yes✓ Yescall your APIs and run agent loops
Structured output (JSON schema)✓ Yes✓ Yesreturn JSON that validates against your schema
Reasoning / thinking mode✓ Yes✓ Yesspend extra tokens thinking before answering hard problems
Image input✓ Yes—read screenshots, charts and scanned pages
Audio input——take speech or audio directly
File / PDF input——accept documents without your own parsing step
Image output——generate images, not just text
Built-in web search——answer from live web results
Seed (reproducible sampling)✓ Yes—repeat a generation for tests and evals
Log-probabilities✓ Yes—read token confidence for classification and scoring

From each model's published parameters and input/output types. “—” means not advertised, not proven absent.

Price history

DateModelInput / 1MOutput / 1M
2026-10-15Google: Gemma 4 31B$0.20$0.40
2026-08-27Google: Gemma 4 31B$0.09$0.34
2026-08-21Google: Gemma 4 31B$0.10$0.34
2026-08-19Google: Gemma 4 31B$0.09$0.34

Which should you choose?

Choose Google: Gemma 4 31B if…

  • you need image input — to read screenshots, charts and scanned pages; Inception: Mercury 2.5 Preview does not advertise it
  • you need seed (reproducible sampling) — to repeat a generation for tests and evals; Inception: Mercury 2.5 Preview does not advertise it
  • you need log-probabilities — to read token confidence for classification and scoring; Inception: Mercury 2.5 Preview does not advertise it
  • you want to prototype at zero cost — a free variant is listed

Choose Inception: Mercury 2.5 Preview if…

  • cost matters at scale — it is 73% cheaper on a typical 3:1 input/output mix ($6.00 vs $23.00 a month for 50,000 support chats)
  • you generate long outputs in one go — up to 66K tokens (about 49,200 words) per response
  • you want the newer model — released 2026-08-31, 5 months after the other

Frequently asked questions

Is Google: Gemma 4 31B better than Inception: Mercury 2.5 Preview?

Neither wins outright: Google: Gemma 4 31B is the pick when you need image input, Inception: Mercury 2.5 Preview when cost matters at scale. In short: Google: Gemma 4 31B when you need image input, you need seed (reproducible sampling), you need log-probabilities, you want to prototype at zero cost; Inception: Mercury 2.5 Preview when cost matters at scale, you generate long outputs in one go, you want the newer model.

Which is cheaper, Google: Gemma 4 31B or Inception: Mercury 2.5 Preview?

Inception: Mercury 2.5 Preview is cheaper: $0.07 vs $0.25 per 1M tokens at a typical 3:1 input/output mix, 73% less. For 50,000 support conversations a month that is $6.00 against $23.00.

How much do Google: Gemma 4 31B and Inception: Mercury 2.5 Preview cost per million tokens?

Google: Gemma 4 31B costs $0.20 per 1M input tokens and $0.40 per 1M output tokens; Inception: Mercury 2.5 Preview costs $0.04 input and $0.15 output. Output tokens are billed separately, so long answers shift the gap.

Which has the bigger context window, Google: Gemma 4 31B or Inception: Mercury 2.5 Preview?

Google: Gemma 4 31B: 262K tokens, about 393 pages, against 260K (about 390 pages) for Inception: Mercury 2.5 Preview.

Do Google: Gemma 4 31B and Inception: Mercury 2.5 Preview support function calling and JSON output?

Tool calling — Google: Gemma 4 31B: yes, Inception: Mercury 2.5 Preview: yes. JSON-schema structured output — Google: Gemma 4 31B: yes, Inception: Mercury 2.5 Preview: yes.

Can Google: Gemma 4 31B or Inception: Mercury 2.5 Preview read images?

Only Google: Gemma 4 31B accepts image input; Inception: Mercury 2.5 Preview is text-only for input.

Is Google: Gemma 4 31B or Inception: Mercury 2.5 Preview free to use?

Google: Gemma 4 31B has a free variant (google/gemma-4-31b-it:free). Free variants usually carry tighter rate limits.

What is the maximum output length of Google: Gemma 4 31B and Inception: Mercury 2.5 Preview?

Google: Gemma 4 31B can write up to 16K tokens (about 12,300 words) per response; Inception: Mercury 2.5 Preview up to 66K (about 49,200 words).

When were Google: Gemma 4 31B and Inception: Mercury 2.5 Preview released?

Google: Gemma 4 31B was listed on 2026-04-02; Inception: Mercury 2.5 Preview on 2026-08-31.

Has the price of Google: Gemma 4 31B or Inception: Mercury 2.5 Preview changed?

Google: Gemma 4 31B: input price raised 55% ($0.09 → $0.20/1M), output price raised 15% ($0.34 → $0.40/1M) on 2026-10-15 (4 price changes since 2026-08-06). Inception: Mercury 2.5 Preview: price unchanged since we started tracking it on 2026-09-02.

About the two models

Google

Google: Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Full Google: Gemma 4 31B specs →

Compare Google: Gemma 4 31B with other models

Compare Inception: Mercury 2.5 Preview with other models

Advertisement