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

  • Reasoning
  • Vision
  • Video Input
  • Structured Output

Added Apr 2, 2026

Model weights

Pricing

Auto routing · per 1M tokens
Input
$0.10
Output
$0.34
Cache read
$0.10
Compare provider prices

Specifications

Context window
262.1K
Max output
131.1K
Parameters
31B

Benchmarks

Sourced from Vectara.

Hallucination Rate

7.4%

Hallucination Rate: 7.4
Better than 68% of models compared

Factual Consistency

92.6%

Factual Consistency: 92.6
Better than 68% of models compared

Answer Rate

100.0%

Answer Rate: 100.0
Better than 91% of models compared

Avg Summary Length

Average generated summary length

75.8

Last updated 2026-11-30 · Matched as google/gemma-4-31b-it

Vectara Leaderboard

Leaderboard results

These leaderboards tested Gemma 4 31B, another version of this model.

BenchmarkScoreRank on NanoGPT
Epoch AI Benchmarking Hub

Epoch AI data, CC BY 4.0 · Updated Dec 3, 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 3, 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.10$0.34$0.10N/AN/A
Auto
Auto (Anonymized)
$0.10$0.34$0.10N/AN/A
Sail Research (Standard)
Sail Research (Standard)
FP4
GLB
$0.0735$0.42$0.0525N/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
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
Parasail
Parasail
FP8
US
$0.157$0.42$0.063N/AN/A
PrimeIntellect
PrimeIntellect
FP8
UNK
$0.21$0.352$0.105N/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 unclear
Batch API
ProviderInputOutputCached input
Auto
Autogoogle/gemma-4-31b-it:thinking
$0.10/M$0.34/M$0.10/M

Batch rows for this model use normal routing and cost the same as standard API requests. Set provider in a row to choose a provider.

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 Thinking with similar models from the same provider or model family.

Gemma 4 31B

google/gemma-4-31b-it

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.

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.