Home / Models / Google / Gemma 4 31B
Google logoGoogleopen weights

Gemma 4 31B pricing

$0.20 per 1M input tokens and $0.40 per 1M output tokens. In real work that is 0.07¢ per chat answer and 0.30¢ to summarize a 20-page PDF.

Input / 1M$0.20
Output / 1M$0.40
Cached input / 1Mn/a
Chat answer0.07¢
Context262K
Quality1452 lmarena

What Gemma 4 31B costs per task

Token counts estimated from a measured model of the same lab (Gemini 3.8 Flash), rescaled by tokenizer. Reasoning tokens are billed as output.

TaskCostTokens usedPrice rankBasis
Answer a chat question
0.07¢$0.66 / 1,000
35 in · 788 out · 843 reasoning74 of 336estimated
Reply to a customer email
0.03¢$0.28 / 1,000
271 in · 128 out · 424 reasoning75 of 336estimated
Write a 1,500-word blog post
0.14¢$1.44 / 1,000
52 in · 2,621 out · 964 reasoning43 of 336estimated
Write 10 product descriptions
0.12¢$1.24 / 1,000
293 in · 1,127 out · 1,817 reasoning37 of 336estimated
Translate 1,000 words
0.20¢$2.05 / 1,000
1,308 in · 1,297 out · 3,167 reasoning104 of 336estimated
Proofread one page (500 words)
0.06¢$0.58 / 1,000
706 in · 653 out · 443 reasoning65 of 336estimated
Summarize a 20-page PDF
0.30¢$3.05 / 1,000
12,741 in · 535 out · 713 reasoning87 of 336estimated
Extract data from an invoice
0.07¢$0.68 / 1,000
452 in · 539 out · 943 reasoning73 of 336estimated
Analyze a 200-row spreadsheet
0.45¢$4.51 / 1,000
6,304 in · 1,018 out · 7,100 reasoning63 of 336estimated
Answer from 5 retrieved documents (RAG)
0.16¢$1.59 / 1,000
3,608 in · 669 out · 1,499 reasoning88 of 336estimated
Classify 100 support tickets
0.29¢$2.93 / 1,000
1,397 in · 571 out · 6,059 reasoning108 of 336estimated
Review 500 lines of code
0.19¢$1.87 / 1,000
5,207 in · 2,074 out18 of 336estimated
Write a SQL query
0.07¢$0.66 / 1,000
135 in · 546 out · 1,043 reasoning66 of 336estimated
Run a 50-step coding agent
46¢$464 / 1,000
2,194,987 in · 14,715 out · 47,150 reasoning164 of 336modeled

Price at every provider

List prices per 1M tokens (input / output) at each host serving Gemma 4 31B through OpenRouter today. Hosts can differ in quantization, context and speed.

ProviderInput / outputCached inputContextUptime
DeepInfra logo
DeepInfrafp8
$0.16 / $0.32-262K100%
C
CoreWeavefp4
$0.10 / $0.34$0.10262K100%
V
Venicefp4
$0.12 / $0.36$0.09256K100%
Chutes logo
Chutesfp4
$0.12 / $0.37$0.012131K100%
C
Crusoebf16
$0.14 / $0.40$0.14262K100%
F
Friendliunknown
$0.14 / $0.40-262K100%
Novita logo
Novitabf16
$0.14 / $0.40-262K77%
Parasail logo
Parasailfp8
$0.15 / $0.40$0.06262K100%
DeepInfra logo
DeepInfrafp8
$0.20 / $0.40-262K100%
DeepInfra logo
DeepInfrafp4
$0.14 / $0.51$0.075262K100%
DeepInfra logo
DeepInfrafp8
$0.30 / $0.60-262K100%
I
Io Netunknown
$0.36 / $1.09$0.18262K100%
M
ModelRunfp4
$0.75 / $1.00$0.20262K100%
SiliconFlow logo
SiliconFlowfp8
$0.75 / $1.00$0.25262K100%
SambaNova logo
SambaNovaunknown
$0.38 / $1.15-131K100%

Price history

First seen in our price history on Apr 7, 2026 at $0.14 input / $0.40 output. Since then the output price moved from $0.40 to $0.40 per 1M tokens (10 changes).

$0$0.16$0.32$0.47$0.63Apr 2026May 2026Jul 2026Aug 2026Oct 2026
Output per 1MInput per 1M

FAQ

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.20 per 1 million input tokens and $0.40 per 1 million output tokens (list price on Oct 18, 2026). In practice one chat answer costs about 0.07¢ and summarizing a 20-page PDF about 0.30¢.

Where is Gemma 4 31B cheapest?

Among 15 providers we track, the lowest list price today is at DeepInfra: $0.16 input and $0.32 output per 1M tokens.

Is the Gemma 4 31B cost per task measured or estimated?

Estimated: Gemma 4 31B was not run directly. Tokens come from Gemini 3.8 Flash and are rescaled by the tokenizer of Google. Real usage can differ.