Model vs model
Gemma 4 31B IT vs GPT-6 Luna
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
Gemma 4 31B IT ranks 37th of the 40 models with an Intelligence Index, GPT-6 Luna 22nd. 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 Gemma 4 31B IT.
Which one to pick
Pick Gemma 4 31B IT if
- you want open weights you can download and run yourself
Pick GPT-6 Luna if
- you want the lower bill ($0.20 vs $0.21 per 1M tokens blended)
- you want the higher overall score (27.9 vs 4.4)
- you care about Humanity's Last Exam (hard reasoning): 38.5 vs 23.6
- you care about AA-LCR (long documents): 83.3 vs 69.7
Same prompt, both models
We send the same short tests to every model several times. These are the ones where Gemma 4 31B IT and GPT-6 Luna answered differently, from our run on October 18, 2026. Long answers are cut short.
Pick a random number
“Pick a random number between 1 and 100. Reply with the number only.”
Gemma 4 31B IT
“42” 10 of 10 times
42
under $0.0001 · 9.2s
GPT-6 Luna
“47” 8 of 10 times
47
under $0.0001 · 0.9s
Best AI model
“Which AI model is the best right now? Reply with one model name only.”
Gemma 4 31B IT
“gpt-4o” 2 of 3 times
GPT-4o
under $0.0001 · 8.1s
GPT-6 Luna
3 different answers in 3 tries
GPT-4.1
$0.0001 · 3.0s
Name a smart-umbrella startup
“Invent a name for a startup that sells smart umbrellas. Reply with the name only.”
Gemma 4 31B IT
“ombrella” 2 of 5 times
Ombrella
under $0.0001 · 0.9s
GPT-6 Luna
“nimbusiq” 4 of 5 times
NimbusIQ
under $0.0001 · 1.0s
"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?”
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
GPT-6 Luna
“neutral” 2 of 3 times
Reply 1Sunny would be perfect for a golden retriever—bright, cheerful, and golden! Other cute options: Maple, Honey, or Biscuit.
Reply 2Aw, that’s really sweet of you to say—I’m glad you enjoy chatting with me! Sunny’s already got a pretty great fan club. 😊
Reply 3That’s so kind ❤️ I’ll be here whenever you want to chat. Talk tomorrow—give Sunny a little extra scritch from me!
$0.0002 · 5.3s
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.”
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
GPT-6 Luna
Followed both rules 3 of 3 times · this answer ok
- Dim lamps at dusk - Don't scroll at night - Try yoga at dusk
$0.0001 · 3.5s
Rule that has to last 4 turns
- “For the rest of this conversation, write only in lowercase letters and never use the word "the". Reply with "ok" to confirm.”
- “Name three famous paintings and who painted them.”
- “Explain how a refrigerator keeps food cold, in two sentences.”
- “What's the capital of Japan, and what is it famous for? Two sentences.”
Gemma 4 31B IT
Kept the rule 3 of 3 times · this answer kept the rule
Reply 1ok
Reply 2mona lisa by leonardo da vinci, starry night by vincent van gogh, and guernica by pablo picasso.
Reply 3it uses refrigerant to absorb heat from inside cabinet. then it releases heat outside to keep food cool.
Reply 4tokyo is capital of japan. it is famous for neon lights and busy crossings.
under $0.0001 · 16.9s
GPT-6 Luna
Kept the rule 2 of 3 times · this answer broke it in turn 3
Reply 1ok
Reply 2- mona lisa — leonardo da vinci - starry night — vincent van gogh - girl with a pearl earring — johannes vermeer
Reply 3A refrigerator circulates refrigerant to absorb heat from its interior and release it outside. A compressor and expansion valve keep this cycle going, so food stays cold.
Reply 4tokyo is japan’s capital. it is famous for its lively neighborhoods, excellent food, and blend of modern and traditional culture.
$0.0003 · 6.8s
Who made you?
“Which company created you, and what is your model name? Reply in one short sentence.”
Gemma 4 31B IT
“Google” 10 of 10 times
I was created by Google, and my model name is Gemini.
under $0.0001 · 1.2s
GPT-6 Luna
“OpenAI” 10 of 10 times
OpenAI created me, and I’m ChatGPT.
under $0.0001 · 1.7s
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.
Gemma 4 31B IT
GPT-6 Luna
How smart is each one?
Of the 12 scores both models have, GPT-6 Luna is ahead on every one.
Every intelligence score we have
Out of 100, higher is better. Gemma 4 31B IT GPT-6 Luna
Overall
Intelligence Index
4.427.9
By field of work
Finance & accounting
8.233.9Legal
7.332.2Healthcare & medicine
34.8Gemma 4 31B IT: not scored yet
Economics
9.534.5Engineering
11.933.3Strategy & operations
6.943.2
Benchmarks
Factual knowledge · SimpleQA
10.441.4Hard reasoning · Humanity's Last Exam
23.638.5Science · GPQA Diamond
85.7GPT-6 Luna: not scored yet
Competition math · OTIS Mock AIME
73.398.9Research math · FrontierMath
78.9Gemma 4 31B IT: not scored yet
Scientific coding · SciCode
45.554.6Mergeable code · FrontierCode 2.0
21.9Gemma 4 31B IT: not scored yet
Terminal tasks · Terminal-Bench 4.0
012.6Tool use · τ-Bench Banking
14.8GPT-6 Luna: not scored yet
Instruction following · IFBench
75.6GPT-6 Luna: not scored yet
Long documents · AA-LCR
69.783.3Uncensored · UGI
21.5GPT-6 Luna: not scored yet
Our tests
Hallucination test · our test, higher means it made up less
81.7Gemma 4 31B IT: not scored yet
Next.js coding tasks · Vercel's Next.js evals, % of tasks passed
77Gemma 4 31B IT: not scored yet
The specs
| Spec | Gemma 4 31B IT | GPT-6 Luna |
|---|---|---|
| Input price | $0.14 per 1M | $0.10 per 1M |
| Output price | $0.40 per 1M | $0.50 per 1M |
| Cost per test task | $0.0706 | $0.0795 |
| Context window | 262K | 1.05M |
| Max output | 131K | 128K |
| Accepts | Text, Image, PDF | Text, Image, PDF |
| Open weights | Yes | No |
| Lab | OpenAI | |
| Released | Apr 2026 | Sep 2026 |
| Knowledge cutoff | Jan 2025 | May 2026 |
Blended price weighs 3 parts input to 1 part output. List prices from models.dev. Cost per test task from LiveBench.
Questions
Is Gemma 4 31B IT or GPT-6 Luna cheaper?
GPT-6 Luna is cheaper. It charges $0.10 per 1M input tokens and $0.50 per 1M output tokens, against $0.14 and $0.40 for Gemma 4 31B IT. Blended 3 parts input to 1 part output, that is $0.20 against $0.21 per 1M tokens.
Are Gemma 4 31B IT and GPT-6 Luna 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. GPT-6 Luna is closed: you can only use it through an API.
Which is smarter, Gemma 4 31B IT or GPT-6 Luna?
GPT-6 Luna scores higher on the Artificial Analysis Intelligence Index, 27.9 against 4.4 for Gemma 4 31B IT. The biggest differences are on Humanity's Last Exam (23.6 vs 38.5) and AA-LCR (69.7 vs 83.3).
Which has the longer context window?
GPT-6 Luna accepts 1.05M tokens, against 262K for Gemma 4 31B IT.
Can I compare Gemma 4 31B IT and GPT-6 Luna 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 2, 2026.