Private AI

Nano GPT logo
NanoGPT
Nano GPT logo
NanoGPT
Nano GPT logo
NanoGPT
 
 
 
 
All conversations

Create

Chat
Studio

Explore

Models
Benchmarks
Pricing
Apps

Library

Gallery
Workspace
Usage & billing
Teams
API
Suggestions and bugs
Settings
Terms

|

Privacy

|

Refunds
Referrals
Presets
Settings
FAQPress & mediaBrand assetsNano RPCBlogUse casesToolsEarn crypto
  1. All models overview
  2. Text
  3. Google

Gemma 4 31B

Google's Gemma 4 31B instruction-tuned model for heavier reasoning, coding, agentic workflows, and long-context multimodal understanding. This route keeps tokenizer thinking disabled for faster direct answers. Requests containing video cost $0.14 per million input tokens and $0.40 per million output tokens.

  • Reasoning
  • Vision
  • Video Input
  • Structured Output

Added Apr 2, 2026

Model weights

Pricing

Auto routing · per 1M tokens
Input
$0.11
Output
$0.33
Cache read
$0.05
Compare provider prices

Specifications

Context window
262.1K
Max output
131.1K
Parameters
31B

Benchmarks

Sourced from LMArena.

Arena Score

1452.2

Overall Rank

#84 / 427

Votes

6,118

Confidence Interval

1444.7 - 1459.6

Category Scores

Coding

#83 / 422

1,407 votes

1502.4

Math

#65 / 410

430 votes

1467.1

Longer Query

#68 / 405

1,792 votes

1469.4

Creative Writing

#94 / 425

971 votes

1418.3

Instruction Following

#67 / 427

1,796 votes

1453.9

Hard Prompts

#81 / 427

3,554 votes

1475.7

Additional Categories
19

Expert

#51 / 376

499 votes

1497.9

Russian

#56 / 391

821 votes

1468.4

Industry Mathematical

#66 / 407

344 votes

1471.3

Hard Prompts English

#71 / 425

1,321 votes

1486.0

Industry Software And It Services

#76 / 427

2,209 votes

1491.9

Industry Life And Physical And Social Science

#79 / 425

928 votes

1473.3

Multi Turn

#79 / 425

1,120 votes

1465.0

Industry Medicine And Healthcare

#80 / 396

421 votes

1471.0

Spanish

#82 / 309

253 votes

1450.0

Exclude Ties

#83 / 427

4,209 votes

1455.5

English

#84 / 427

2,322 votes

1462.7

Industry Writing And Literature And Language

#84 / 426

1,425 votes

1434.6

Non English

#86 / 427

3,796 votes

1438.0

Industry Business And Management And Financial Operations

#87 / 420

1,176 votes

1449.1

Industry Entertainment And Sports And Media

#94 / 425

1,086 votes

1416.1

Polish

#97 / 243

203 votes

1435.9

Industry Legal And Government

#98 / 398

451 votes

1454.7

Chinese

#102 / 399

521 votes

1478.5

French

#105 / 306

265 votes

1457.8

Published 2026-11-22 · Matched as Gemma 4 31B · CC BY 4.0

LMArena Dataset

Leaderboard results

BenchmarkScoreRank on NanoGPT
Epoch AI Benchmarking Hub

Epoch AI data, CC BY 4.0 · Updated Dec 2, 2026

Epoch Capabilities Index

144.1

#88 of 116

GPQA Diamond

75.8%

#90 of 120

SimpleQA Verified

10.4%

#84 of 86

OTIS Mock AIME 2024–2025

73.3%

#90 of 122

EQ-Bench

EQ-Bench data, MIT · Updated Dec 2, 2026

EQ-Bench 4

1110

#25 of 31

Creative Writing v3

1369

#64 of 87

Longform Writing

56.5

#60 of 88

EQ-Bench 3

1464

#20 of 42

UGI Leaderboard

UGI Leaderboard data, Apache-2.0 · Updated Nov 27, 2026

UGI Score

23.1

#102 of 124

UGI Willingness

2.5

#78 of 124

UGI Writing

43.1

#65 of 124

Filtered and ranked to models on NanoGPT.

Providers

Choose or restrict providers with the API. Provider-selection prices include the selection markup. Provider selection guide · Pricing API (JSON, USD per 1K tokens)

Auto
Auto (ZDR)
$0.11$0.33$0.05N/AN/A
Auto
Auto (Anonymized)
$0.11$0.33$0.05N/AN/A
Sail Research (Standard)
Sail Research (Standard)
FP4
GLB
$0.0735$0.42$0.0525N/AN/A
Kitani
Kitani
INT4
GLB
$0.0945$0.452$0.0473N/AN/A
Creekside Compute
Creekside Compute
NVFP4
GLB
$0.0954$0.281$0.0112N/AN/A
Runware
Runware
10% off
UNK
$0.107$0.0964$0.312$0.281$0.0126$0.0113N/AN/A
CoreWeave
CoreWeave
FP4
US
$0.105$0.357$0.105N/AN/A
Aoru AI
Aoru AI
NVFP4
KR
$0.105$0.472$0.0525N/AN/A
ModelRun
ModelRun
FP4
US
$0.131$0.357$0.0787N/AN/A
NextBit
NextBit
FP4
EU
$0.131$0.357$0.0787N/AN/A
Hyperfusion
Hyperfusion
BF16
AE
$0.136$0.399N/AN/AN/A
Ollama
Ollama
UNK
$0.147$0.42$0.0525N/AN/A
Sail Research (ASAP)
Sail Research (ASAP)
FP4
GLB
$0.147$0.42$0.0735N/AN/A
Friendli
Friendli
US
$0.147$0.42N/AN/AN/A
NeuralWatt
NeuralWatt
FP4
US
$0.151$0.441$0.0151N/AN/A
Greenference
Greenference
FP8
EU
$0.156$0.441$0.0606N/AN/A
Parasail
Parasail
FP8
US
$0.157$0.42$0.063N/AN/A
ArliAI
ArliAI
ID
$0.189$0.189N/AN/AN/A
PrimeIntellect
PrimeIntellect
FP8
UNK
$0.21$0.352$0.105N/AN/A
DeepInfra
DeepInfra
FP8
US
$0.21$0.42$0.021N/AN/A
SCX (Global)
SCX (Global)
BF16
GLB
$0.315$0.956N/AN/AN/A
Uomi
Uomi
FP8
GLB
$0.323$0.561N/AN/AN/A
Modal
Modal
US
$0.357$0.105$0.105N/AN/A
SambaNova
SambaNova
US
$0.399$1.21N/AN/AN/A
Tinfoil
Tinfoil
TEE verified
US
$0.42$1.05N/AN/AN/A
SiliconFlow
SiliconFlow
FP8
SG
$0.787$1.05$0.263N/AN/A
Privacy:ZDR, prompts not retainedNo training on promptsRetention and training unclearRetains prompts, training unclear
Batch API
ProviderInputOutputCached input
Aoru AI
Aoru AIgoogle/gemma-4-31b-it
$0.05/M$0.225/M$0.025/M

Manual provider picks

Separate from Auto

Observed speeds when callers selected a provider, grouped by the host that served the reply. These requests do not enter the Auto badge.

Bring your own key (BYOK)

Separate from Auto

Observed speeds using callers’ own provider keys. Account limits and service levels may differ from NanoGPT’s keys.

Recorded and unreported service-tier signals stay separate. Flex, Priority and Speed describe recorded request or response signals; mixed or unsupported signals are excluded. Default-like means auto, default or standard was reported; it does not verify an account’s upstream priority. Each reply counts once for its serving host. Averages use successful replies with both speed and first-token timing, over the freshest qualifying window in the last six hours.

Related text models

Compare Gemma 4 31B with similar models from the same provider or model family.

Gemma 4 31B Thinking

google/gemma-4-31b-it:thinking

Google's Gemma 4 31B instruction-tuned model with thinking explicitly enabled, exposing reasoning traces for complex multimodal and coding workflows. Requests containing video cost $0.14 per million input tokens and $0.40 per million output tokens.

Gemma 4 26B A4B Cybersecurity

google/gemma-4-26b-a4b-it-cybersecurity

Gemma 4 26B A4B Cybersecurity is a cybersecurity-focused variant based on the uncensored model, with provider moderation for illegal activities. It supports optional reasoning, image understanding, tool calling, and a 262,144-token context window.

Gemma 4 26B A4B

google/gemma-4-26b-a4b-it

Google's Gemma 4 26B A4B instruction-tuned model built for scalable reasoning, coding, long-context, and multimodal workflows. This route is tuned for faster direct answers while preserving multimodal and structured output support. Requests containing video cost $0.10 per million input tokens and $0.40 per million output tokens.

Gemma 4 26B A4B Thinking

google/gemma-4-26b-a4b-it:thinking

Google's Gemma 4 26B A4B instruction-tuned model with structured reasoning for more deliberate coding, multimodal analysis, and long-context problem solving. Requests containing video cost $0.10 per million input tokens and $0.40 per million output tokens.

DiffusionGemma

google/diffusiongemma

DiffusionGemma is a high-speed diffusion-based version of Gemma 4 26B A4B. It supports optional reasoning and a 262,144-token context window. Temperature, min-p, seed, minimum output tokens, logit bias, bad words, and allowed token IDs are unavailable; omit these parameters to use native diffusion sampling.

Gemma 4 31B Heretic TEE

TEE/gemma4-31b-heretic

Gemma 4 31B Heretic by coder3101, a decensored version of Google's Gemma 4 31B instruction-tuned model with image input, tool calling, structured output and optional reasoning, and a 131,072-token context. Runs inside a TEE (Trusted Execution Environment): each request is encrypted to an enclave instance whose attestation and measurements are verified first, and the model is unavailable while no measurement review covers its instances.