Skip to content
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Default Index
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed
  1. Home
  2. /
  3. Compare
  4. /
  5. Gemma 4 31BvsTernary Bonsai 2 27B
Updated Sep 2026

Gemma 4 31BvsTernary Bonsai 2 27B

Ternary Bonsai 2 27B is cheaper than Gemma 4 31B at $0.075/M vs $0.14/M input tokens.

Gemma 4 31B and Ternary Bonsai 2 27B compared across 8 shared prompts
SpecGemma 4 31BTernary Bonsai 2 27B
Input price$0.14/M tokens$0.075/M tokens
Output price$0.4/M tokens$0.5/M tokens
Context window262K tokens262K tokens
WeightsOpen—
Free API (OpenRouter)Yes (1 provider)No
ReleasedApr 2026Sep 2026
Side by side

Same prompt, both answers

Opening lines from 3 of the 8 prompts both answered. Formatting stripped, words untouched.

Beginner's Longevity Plan

Outline a simple, actionable 1-month plan for someone starting their journey towards better health and longevity. Focus on 3 key areas…

Gemma 4 31B548 words
This plan is designed for sustainability, not intensity. The goal of Month 1 is to build "minimum viable habits"—small wins that prove to your brain that a healthier lifestyle is achievable. We will focus on three pillars: Nutrition, Movement, and Sleep.
Read the full answer
Ternary Bonsai 2 27B729 words
1-Month Foundation Plan: Health & Longevity How to Use This Plan Pick one area per week's focus while maintaining the other two at a baseline level. The point is consistency over intensity. You're building a habit identity, not a transformation.
Read the full answer

Simple 7-Ingredient Recipe

Create a simple recipe for a delicious dish (sweet or savory) using only 7 common pantry ingredients. Include a creative name for the dish…

Gemma 4 31B222 words
Here is a recipe for a rich, comforting dessert that tastes like a gourmet treat but uses basic staples. 🍯 Golden Velvet Honey Cakes A warm, gooey, single-serving cake that bridges the gap between a brownie and a sponge cake.
Read the full answer
Ternary Bonsai 2 27B358 words
🍫 Velvet Hour Skillet Cakes A one-pan, one-pan-pour, one-lick-the-spoon kind of dessert. Fluffy, deeply chocolate, and done before your coffee goes cold. Serves: 2–3 Prep: 10 min Cook: 12–15 min Total: ~25 min The 7 Ingredients # Ingredient Amount 1 All-purpose flour ¾ cup 2 Granulated sugar ⅓ cup 3 Unsweetened cocoa…
Read the full answer

Startup Pitch Teardown

Here's a pitch deck summary for a startup called "MindMeld AI": **Slide 1 - Vision:** "We're building the future of human-AI collaboration.…

Gemma 4 31B537 words
Here are the three weakest claims in the MindMeld AI pitch, the reasoning behind their weakness, and strategies to strengthen them. The Technical Claim: "94% accuracy... works with any language, any device."
Read the full answer
Ternary Bonsai 2 27B1,109 words
The 3 Weakest Claims in the MindMeld AI Pitch "FDA Clearance (40% of $15M)" — Slide 7 The claim: They're allocating $6M (40% of the entire raise) toward "FDA clearance" for a consumer EEG headband that decodes thoughts into text for everyday smartphone use.
Read the full answer
Our Verdict
Gemma 4 31B
Gemma 4 31B
Ternary Bonsai 2 27B
Ternary Bonsai 2 27BRunner-up

Not enough votes to call it. On the specs, Gemma 4 31B has the edge: bigger model tier, major provider backing.

Too close to call
API pricing

Cost per 1M tokens

Gemma 4 31B
Input
$0.14
Output
$0.40
1.3× cheaper
Ternary Bonsai 2 27B
Input
$0.07
1.9× cheaper
Output
$0.50

Ternary Bonsai 2 27B wins input (1.9× cheaper)·Gemma 4 31B wins output (1.3× cheaper)

Where to run it

12 hosts, cheapest first

Gemma 4 31B11 hosts
HostInOutContextUptime
DDeepInfrafp4$0.09 in·$0.34 out·262k·97.8% upCCoreWeavefp4$0.10 in·$0.34 out·262k·97.1% upVVenicefp4$0.12 in·$0.36 out·256k·96.5% upCChutesfp4$0.12 in·$0.37 out·131k·91.9% upFFriendli$0.14 in·$0.40 out·262k·92.8% upNNovitabf16$0.14 in·$0.40 out·262k·85.8% up
5 more hostsFewer hosts
PParasailfp8$0.15 in·$0.40 out·262k·99.1% upMModelRunfp4$0.75 in·$1.00 out·262k·100% upSSiliconFlowfp8$0.75 in·$1.00 out·262k·41.9% upCCrusoebf16degraded$0.14 in·$0.40 out·262k·97.7% upSSambaNovadegraded$0.38 in·$1.15 out·131k·96.8% up
Ternary Bonsai 2 27B1 host
HostInOutContextUptime
DDarkbloomint4$0.07 in·$0.50 out·262k·100% up

Per million tokens. Prices and uptime via OpenRouter, checked 22 Sep 2026.

Research

What we learned reading every model

FAQ

Common questions

Gemma 4 31B is developed by Google AI while Ternary Bonsai 2 27B is developed by PrismML. Gemma 4 31B has a 262K token context window vs Ternary Bonsai 2 27B's 262K. You can compare their actual outputs across 8 challenges on Rival to see how they differ in practice.

It depends on your use case. Gemma 4 31B and Ternary Bonsai 2 27B each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 8 challenges so you can judge which fits your needs best.

Gemma 4 31B costs $0.14/M input tokens and Ternary Bonsai 2 27B costs $0.075/M input tokens. Ternary Bonsai 2 27B is $0.07/M cheaper per input. Check their side-by-side outputs on Rival to see if the price difference is justified by quality.

This page shows a side-by-side comparison of Gemma 4 31B and Ternary Bonsai 2 27B across shared challenges. You can vote on which model produced the better output in a blind duel. Browsing and voting are free. No account is needed to look; signing in only saves your votes and likes.

Keep exploring

More comparisons

Against the newest arrivals

Gemma 4 31B logoDeepSeek V4 Flash Vision Exp logo
Gemma 4 31B vs DeepSeek V4 Flash Vision ExpLanded Sep 2026
Ternary Bonsai 2 27B logoSolar Pro 4 logo
Ternary Bonsai 2 27B vs Solar Pro 4Landed Sep 2026
Gemma 4 31B logoHy3 logo
Gemma 4 31B vs Hy3Landed Sep 2026
Ternary Bonsai 2 27B logoQwen3.7 Flash logo
Ternary Bonsai 2 27B vs Qwen3.7 FlashLanded Sep 2026
Gemma 4 31B logoLing 3.0 Flash logo
Gemma 4 31B vs Ling 3.0 FlashLanded Sep 2026
Ternary Bonsai 2 27B logoMuse Glimmer 30B logo
Ternary Bonsai 2 27B vs Muse Glimmer 30BLanded Sep 2026
Gemma 4 31B logoGLM 5.3 logo
Gemma 4 31B vs GLM 5.3Landed Sep 2026
Ternary Bonsai 2 27B logoGLM 5.3 Flash logo
Ternary Bonsai 2 27B vs GLM 5.3 FlashLanded Sep 2026

Same lab, same size, long tail

Gemma 4 31B logoGemini 3.8 Flash logo
Gemma 4 31B vs Gemini 3.8 FlashSame lab
Gemma 4 31B logoGemini 3.7 Flash logo
Gemma 4 31B vs Gemini 3.7 FlashSame lab
Ternary Bonsai 2 27B logoMercury 2.5 Preview logo
Ternary Bonsai 2 27B vs Mercury 2.5 PreviewSame size
Ternary Bonsai 2 27B logoNemotron 3.5 Lightning logo
Ternary Bonsai 2 27B vs Nemotron 3.5 LightningSame size
Gemma 4 31B logoGemini 2.5 Flash Preview 05-20 logo
Gemma 4 31B vs Gemini 2.5 Flash Preview 05-20Same lab
Gemma 4 31B logoGemini 2.5 Flash Preview 05-20 (thinking) logo
Gemma 4 31B vs Gemini 2.5 Flash Preview 05-20 (thinking)Same lab
Ternary Bonsai 2 27B logoGemini 2.5 Flash Preview 09-2025 logo
Ternary Bonsai 2 27B vs Gemini 2.5 Flash Preview 09-2025Cross-provider
Ternary Bonsai 2 27B logoGemini 2.5 Flash Preview (thinking) logo
Ternary Bonsai 2 27B vs Gemini 2.5 Flash Preview (thinking)Same size

Model pages

Gemma 4 31B logo
Gemma 4 31B49 outputs, specs and price
Ternary Bonsai 2 27B logo
Ternary Bonsai 2 27B9 outputs, specs and price
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Default Index
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed