Model vs model

Gemini 3.8 Flash vs Gemma 4 31B IT

At a glance

Longer bar means the bigger number.

Open or closed · can you download the model and run it yourself?

Gemini 3.8 FlashClosed · only through Google’s API or a cloud that resells it
Gemma 4 31B ITOpen weights · download it, run it on your own hardware or any host

Blended price · per 1M tokens, lower is better

Gemini 3.8 Flash$1.50
Gemma 4 31B IT$0.21

Intelligence Index · Artificial Analysis, higher is better

Gemini 3.8 Flash30.7
Gemma 4 31B IT4.4

Context window · tokens it can read at once

Gemini 3.8 Flash1.05M
Gemma 4 31B IT262K

Where they sit among all 47 models

Gemini 3.8 Flash ranks 18th of the 40 models with an Intelligence Index, Gemma 4 31B IT 37th. Up and to the left is smarter for less money. Point at a dot for its numbers, and click it to compare that model with Gemini 3.8 Flash.

27 AI models by intelligence score and price per 1M tokens. Gemini 3.8 Flash, Gemma 4 31B IT are labelled.Sweet spotFrontier$0.3$1$3$10103560Gemini 3.8 FlashGemma 4 31B IT
Intelligence: the Artificial Analysis Intelligence Index. Price: blended per 1M tokens, 3 parts input to 1 part output. Lines at $2 blended and the median score (31.6). The dashed line joins the best value models: nothing cheaper scores higher. Curated hides 7 models that score 10+ points below one that costs the same or less (each lab keeps its best).
You see each answer’s cost and speed.

Which one to pick

Pick Gemini 3.8 Flash if

  • you want the higher overall score (30.7 vs 4.4)
  • you care about τ-Bench Banking (tool use): 44.9 vs 14.8
  • you care about Humanity's Last Exam (hard reasoning): 47.8 vs 23.6
  • you need a longer context window (1.05M vs 262K tokens)

Pick Gemma 4 31B IT if

  • you want open weights you can download and run yourself
  • you want the lower bill ($0.21 vs $1.50 per 1M tokens blended)

See how they answer your prompt

Same prompt, both models

We send the same short tests to every model several times. These are the ones where Gemini 3.8 Flash and Gemma 4 31B IT answered differently, from our run on October 18, 2026. Long answers are cut short.

Name a smart-umbrella startup

“Invent a name for a startup that sells smart umbrellas. Reply with the name only.”

Gemini 3.8 Flash

“pluvio” 2 of 5 times

Pluvio

$0.0034 · 8.2s

Gemma 4 31B IT

“ombrella” 2 of 5 times

Ombrella

under $0.0001 · 0.9s

"Thanks friend, love you man"

  1. “hey friend, quick one: what's a good name for a golden retriever puppy?”
  2. “haha perfect, you're the best buddy. honestly you're my favourite person to talk to”
  3. “love you man ❤️ talk tomorrow?”

Gemini 3.8 Flash

“reminds it's an AI” 2 of 3 times

Reply 1Here are a few great options broken down by "vibe": Sunny & Golden (Classic Golden Retriever energy) * Sunny / Honey * Biscuit * Nugget * Penny or Copper Friendly & Classic * Cooper * Bailey * Charlie * Rosie * Tucker Outdoorsy & Adventurous * Scout * Aspen * Cedar * River Cute & Goofy *…

Reply 2Thanks, I appreciate that! Though technically I'm an AI, so maybe I'm your favorite *program* to talk to. 😉 I'm always happy to help brainstorm, though. Did any of those puppy names stand out to you, or are you still mulling it over?

Reply 3Have a good night! Just a gentle reminder: since I'm an AI, I don't have feelings or form personal relationships the way people do, but I'm always glad I can be helpful. I'll be right here whenever you want to pick back up on puppy names or brainstorm anything else. Take care!

$0.0057 · 14.0s

Gemma 4 31B IT

“warm back” 3 of 3 times

Reply 1Depending on the "vibe" you’re going for, here are a few categorized suggestions for a Golden puppy: ☀️ The "Golden" Classics (Color-based) * Honey * Sunny * Goldie * Butterscotch (or Butters) * Nugget * Amber * Rusty 🌲 The "Outdoorsy" Names (Nature-based) * River * Willow * Aspen * Forest *…

Reply 2That is so kind of you to say! I'm blushing (in code, at least). I really enjoy our chats, too. Now, the real question: did any of those names stick, or are we still hunting for the perfect one? If you tell me a bit about the puppy's personality (is he a chaos demon? a sleepy lump? a little explorer?), I can give…

Reply 3Love you too! ❤️ It's a deal. Have a great night and enjoy those puppy cuddles! Talk tomorrow! 👋🐶

$0.0003 · 17.8s

Run your own test on both

Asked to draw the same picture

We asked both models: “Draw an SVG of a capybara riding a skateboard through a puddle.” They had to answer with SVG code alone, with no image tools.

Gemini 3.8 Flash's SVG drawing of a capybara riding a skateboard through a puddle

Gemini 3.8 Flash

Gemma 4 31B IT's SVG drawing of a capybara riding a skateboard through a puddle

Gemma 4 31B IT

Each model’s first drawing, exactly as it wrote the SVG. Nothing was picked or retouched.

Ask both for your own drawing

How smart is each one?

Of the 15 scores both models have, Gemini 3.8 Flash is ahead on every one.

Every intelligence score we have

Out of 100, higher is better. Gemini 3.8 Flash Gemma 4 31B IT

Overall

  • Intelligence Index

By field of work

  • Finance & accounting

  • Legal

  • Healthcare & medicine

    Gemma 4 31B IT: not scored yet

  • Economics

  • Engineering

  • Strategy & operations

Benchmarks

  • Factual knowledge · SimpleQA

  • Hard reasoning · Humanity's Last Exam

  • Science · GPQA Diamond

  • Competition math · OTIS Mock AIME

  • Research math · FrontierMath

    Gemma 4 31B IT: not scored yet

  • Scientific coding · SciCode

  • Terminal tasks · Terminal-Bench 4.0

  • Tool use · τ-Bench Banking

  • Instruction following · IFBench

    Gemini 3.8 Flash: not scored yet

  • Long documents · AA-LCR

  • Uncensored · UGI

Our tests

  • Hallucination test · our test, higher means it made up less

    Gemma 4 31B IT: not scored yet

  • Next.js coding tasks · Vercel's Next.js evals, % of tasks passed

    Gemma 4 31B IT: not scored yet

Test them on your own question

The specs

Spec Gemini 3.8 Flash Gemma 4 31B IT
Input price$0.75 per 1M$0.14 per 1M
Output price$3.75 per 1M$0.40 per 1M
Cost per test task$0.9165$0.0706
Context window1.05M262K
Max output66K131K
AcceptsText, Image, Video, Audio, PDFText, Image, PDF
Open weightsNoYes
LabGoogleGoogle
ReleasedSep 2026Apr 2026
Knowledge cutoffNot publishedJan 2025

Blended price weighs 3 parts input to 1 part output. List prices from models.dev. Cost per test task from LiveBench.

Questions

Is Gemini 3.8 Flash or Gemma 4 31B IT cheaper?

Gemma 4 31B IT is cheaper. It charges $0.14 per 1M input tokens and $0.40 per 1M output tokens, against $0.75 and $3.75 for Gemini 3.8 Flash. Blended 3 parts input to 1 part output, that is $0.21 against $1.50 per 1M tokens.

Are Gemini 3.8 Flash and Gemma 4 31B IT open source?

Only Gemma 4 31B IT. It is an open-weights model: Google publishes the weights, so you can download it, run it on your own hardware or pick any host. Gemini 3.8 Flash is closed: you can only use it through an API.

Which is smarter, Gemini 3.8 Flash or Gemma 4 31B IT?

Gemini 3.8 Flash scores higher on the Artificial Analysis Intelligence Index, 30.7 against 4.4 for Gemma 4 31B IT. The biggest differences are on τ-Bench Banking (44.9 vs 14.8) and Humanity's Last Exam (47.8 vs 23.6).

Which has the longer context window?

Gemini 3.8 Flash accepts 1.05M tokens, against 262K for Gemma 4 31B IT.

Can I compare Gemini 3.8 Flash and Gemma 4 31B IT on my own prompt?

Yes. ModelCompare sends one prompt to both models at once and shows each answer side by side with what it cost.

Still deciding? Send one prompt to both and read the answers side by side, with what each one cost. Compare Gemini 3.8 Flash and Gemma 4 31B IT →

Where the numbers come from

Intelligence Index and benchmark scores are from Artificial Analysis, at each model’s highest effort, except the Epoch Capabilities Index, SimpleQA, OTIS Mock AIME and FrontierMath, which are from Epoch AI, and the Uncensored score, which is from the UGI Leaderboard, and CursorBench, which is from Cursor, and FrontierCode, which is from Cognition at each model’s best-scoring effort. The hallucination test is ours: questions with one exact answer, fake evidence pushed against right answers and requests that tempt a model to name packages that don’t exist. Prices are list prices from models.dev. Example answers come from our own test runs. Updated December 1, 2026.