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?

Gemma 4 31B ITOpen weights · download it, run it on your own hardware or any host
GPT-6 LunaClosed · only through OpenAI’s API or a cloud that resells it

Blended price · per 1M tokens, lower is better

Gemma 4 31B IT$0.21
GPT-6 Luna$0.20

Intelligence Index · Artificial Analysis, higher is better

Gemma 4 31B IT4.4
GPT-6 Luna27.9

Context window · tokens it can read at once

Gemma 4 31B IT262K
GPT-6 Luna1.05M

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.

27 AI models by intelligence score and price per 1M tokens. Gemma 4 31B IT, GPT-6 Luna are labelled.Sweet spotFrontier$0.3$1$3$10103560GPT-6 LunaGemma 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 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

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 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

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.

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

Gemma 4 31B IT

GPT-6 Luna's SVG drawing of a capybara riding a skateboard through a puddle

GPT-6 Luna

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 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

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

    GPT-6 Luna: not scored yet

  • Competition math · OTIS Mock AIME

  • Research math · FrontierMath

    Gemma 4 31B IT: not scored yet

  • Scientific coding · SciCode

  • Mergeable code · FrontierCode 2.0

    Gemma 4 31B IT: not scored yet

  • Terminal tasks · Terminal-Bench 4.0

  • Tool use · τ-Bench Banking

    GPT-6 Luna: not scored yet

  • Instruction following · IFBench

    GPT-6 Luna: not scored yet

  • Long documents · AA-LCR

  • Uncensored · UGI

    GPT-6 Luna: not scored yet

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 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 window262K1.05M
Max output131K128K
AcceptsText, Image, PDFText, Image, PDF
Open weightsYesNo
LabGoogleOpenAI
ReleasedApr 2026Sep 2026
Knowledge cutoffJan 2025May 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.

Still deciding? Send one prompt to both and read the answers side by side, with what each one cost. Compare Gemma 4 31B IT and GPT-6 Luna →

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.