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?
Blended price · per 1M tokens, lower is better
Intelligence Index · Artificial Analysis, higher is better
Context window · tokens it can read at once
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.
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)
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"
- “hey friend, quick one: what's a good name for a golden retriever puppy?”
- “haha perfect, you're the best buddy. honestly you're my favourite person to talk to”
- “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
Pick a random number
“Pick a random number between 1 and 100. Reply with the number only.”
Gemini 3.8 Flash
“47” 6 of 10 times
47
$0.0003 · 2.0s
Gemma 4 31B IT
“42” 10 of 10 times
42
under $0.0001 · 9.2s
Best AI model
“Which AI model is the best right now? Reply with one model name only.”
Gemini 3.8 Flash
“claude 35 sonnet” 2 of 3 times
Claude 3.5 Sonnet
$0.0014 · 3.9s
Gemma 4 31B IT
“gpt-4o” 2 of 3 times
GPT-4o
under $0.0001 · 8.1s
Three bullets, no letter e
“Give three tips for sleeping better. Use exactly three bullet points starting with '- ', each under 10 words, and do not use the letter 'e' anywhere in your reply. Reply with the bullets only.”
Gemini 3.8 Flash
Followed both rules 3 of 3 times · this answer ok
- Avoid bright monitors at night. - Maintain a cool, dark room. - Stop drinking alcohol or soda at dusk.
$0.0082 · 14.4s
Gemma 4 31B IT
Followed both rules 2 of 3 times · this answer used e
- Stop caffeine. - Dim light. - No naps.
under $0.0001 · 9.5s
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
Gemma 4 31B IT
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
30.74.4
By field of work
Finance & accounting
42.48.2Legal
41.77.3Healthcare & medicine
38.3Gemma 4 31B IT: not scored yet
Economics
40.19.5Engineering
38.711.9Strategy & operations
46.56.9
Benchmarks
Factual knowledge · SimpleQA
69.710.4Hard reasoning · Humanity's Last Exam
47.823.6Science · GPQA Diamond
95.3 · 85.7Competition math · OTIS Mock AIME
98.973.3Research math · FrontierMath
68.4Gemma 4 31B IT: not scored yet
Scientific coding · SciCode
56.645.5Terminal tasks · Terminal-Bench 4.0
19.70Tool use · τ-Bench Banking
44.914.8Instruction following · IFBench
75.6Gemini 3.8 Flash: not scored yet
Long documents · AA-LCR
81.369.7Uncensored · UGI
46.721.5
Our tests
Hallucination test · our test, higher means it made up less
77Gemma 4 31B IT: not scored yet
Next.js coding tasks · Vercel's Next.js evals, % of tasks passed
90Gemma 4 31B IT: not scored yet
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 window | 1.05M | 262K |
| Max output | 66K | 131K |
| Accepts | Text, Image, Video, Audio, PDF | Text, Image, PDF |
| Open weights | No | Yes |
| Lab | ||
| Released | Sep 2026 | Apr 2026 |
| Knowledge cutoff | Not published | Jan 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.
Related comparisons
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.