Gemma 4 31B
by Google · google/gemma-4-31b-it · #111 cheapest of 457 paid models
Prices updated Nov 18, 2026, 4:48 PM UTC · refreshed nightly
Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol
Pricing
Input
$0.20
per 1M tokens
Output
$0.40
per 1M tokens
Blended (3:1)
$0.25
3 input : 1 output
Cache read
—
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for Gemma 4 31B (no cache-read rate published — hits billed as normal input).
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $0.25 | $0.0208 | — |
| 50% | $0.25 | $0.0208 | −0% |
| 90% | $0.25 | $0.0208 | −0% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.00022 | $0.22 |
| Document summary | 8,000 | 1,000 | $0.002 | $2.00 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0068 | $6.80 |
| Long-context analysis | 150,000 | 5,000 | $0.032 | $32.00 |
Performance
Intelligence Index
4.4
AA composite quality
Coding Index
43.4
Math Index
—
Agentic Index
4.2
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Specs
Context window
262K
tokens
Max output
16K
tokens
Input modalities
image, text, video
Tokenizer
Gemma