Compare / Gemma 4 31B vs GPT-4o-mini (2024-07-18)

Gemma 4 31B vs GPT-4o-mini (2024-07-18)

Which is cheaper, which is more capable, and which does better at each kind of work, from 14 results on 3 sources that measured both models.

Gemma 4 31B
Google · profile
GPT-4o-mini (2024-07-18)
OpenAI · profile
Results compared
14
Shared sources
3

Gemma 4 31B or GPT-4o-mini (2024-07-18)? The short answer

  • Gemma 4 31B is cheaper: $0.21 against $0.26 per million tokens, 22% less.
  • Gemma 4 31B scores higher on the Artificial Analysis Intelligence Index: 14.7 against 6.7.
  • On our business benchmarks, Gemma 4 31B ranks higher for agents and tool use, reasoning and knowledge, writing and sticking to the facts.

At a glance

Gemma 4 31BGPT-4o-mini (2024-07-18)
Price per million tokens$0.14 in · $0.40 out$0.15 in · $0.60 out
Blended (3 in : 1 out)$0.21$0.26
Cheapest host, blended$0.15 (DeepInfra, FP4)–
Intelligence Index14.76.7
Spring Prompt overall––
Output speed, tokens a second44–
Context window262,144 tokens128,000 tokens
WeightsOpenClosed
Developer based inthe USthe US

Prices are the developer's list price where we have read it, otherwise the typical host on OpenRouter; see every model's price. Intelligence and speed from Artificial Analysis.

Which is better for what

Each model's rank among models available today, for each kind of work, from our own benchmarks and licensed sources. The better rank is in green.

Use caseGemma 4 31BGPT-4o-mini (2024-07-18)
Agents and tool useMulti-step tasks with tools: support desks, coding agents, function calls 96 of 161 155 of 161
Reasoning and knowledgeHard questions across science, maths and general knowledge 89 of 195 185 of 195
WritingWhat people prefer in blind comparisons, and judged writing quality 72 of 187 164 of 187
Sticking to the factsSummarising without inventing things, and factual answers 89 of 153 148 of 153

Every shared result

BenchmarkMetricGemma 4 31BGPT-4o-mini (2024-07-18)
Arena (formerly LMArena)reportedBusiness, management and financeArena rating 1,4491,311
Arena (formerly LMArena)reportedCreative writingArena rating 1,4191,294
Arena (formerly LMArena)reportedExpert promptsArena rating 1,4991,285
Arena (formerly LMArena)reportedInstruction followingArena rating 1,4531,293
Arena (formerly LMArena)reportedOverallArena rating 1,4531,318
Arena (formerly LMArena)reportedWriting, literature and languageArena rating 1,4351,314
Artificial AnalysisreportedArtificial Analysis Coding Indexindex score 43.411.4
Artificial AnalysisreportedArtificial Analysis Intelligence Indexindex score 14.76.70
Artificial AnalysisreportedGPQA Diamond% of questions 85.7%42.6%
Artificial AnalysisreportedHumanity's Last Exam% of questions 23.6%4.2%
Artificial AnalysisreportedIFBench% of instructions 75.6%31.0%
Artificial AnalysisreportedTerminal-Bench 2.1% of tasks 43.4%5.6%
Artificial AnalysisreportedΤ-bench banking% of tasks 14.8%2.9%
SimpleQA Verified (Epoch AI)reportedCorrect answers% of questions 10.4%8.3%

Bold green marks the better value on that metric. Where a source reports ranges that overlap, the difference may not be meaningful; see the benchmark page for ranges.

Quick answers

Is Gemma 4 31B better than GPT-4o-mini (2024-07-18)?

It depends on the task. Among models available today, on our benchmarks and licensed sources, Gemma 4 31B ranks higher for agents and tool use, reasoning and knowledge, writing and sticking to the facts.

Which is cheaper, Gemma 4 31B or GPT-4o-mini (2024-07-18)?

Gemma 4 31B costs $0.21 per million tokens (three input to one output), against $0.26 for GPT-4o-mini (2024-07-18).

Run Gemma 4 31B and GPT-4o-mini (2024-07-18) on your own prompt

Benchmarks aren't your data. Try both side by side in the playground, with the cost of every answer.