Gemma 4 31B (free)
FREEby Google · google/gemma-4-31b-it:free
Prices updated Jul 22, 2026, 1:31 AM UTC · refreshed hourly
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
Free
per 1M tokens
Output
Free
per 1M tokens
Blended (3:1)
Free
3 input : 1 output
Cache read
—
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for Gemma 4 31B (free) (no cache-read rate published — hits billed as normal input).
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | Free | $0 | — |
| 50% | Free | $0 | −0% |
| 90% | Free | $0 | −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 | $0 |
| Document summary | 8,000 | 1,000 | $0 | $0 |
| Codebase question (RAG) | 30,000 | 2,000 | $0 | $0 |
| Long-context analysis | 150,000 | 5,000 | $0 | $0 |
Performance
Intelligence Index
29.4
AA composite quality
Coding Index
43.4
Math Index
—
Agentic Index
14.4
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Specs
Context window
262K
tokens
Max output
33K
tokens
Input modalities
image, text, video
Tokenizer
Gemma