Back to model shop
Google
Rendered from D1 model snapshot · D1 read 125msCache check: checking

google/gemma-4-31b-it

Open weights
Gemma 4 31B IT

Largest Gemma 4 instruction model for open, self-hosted chat and reasoning

This model's cache

This model page returns the exact headers below. The page and /api/models/google--gemma-4-31b-it share the model:google--gemma-4-31b-it tag, so invalidation stays scoped to this model.

Cache key/models/google--gemma-4-31b-it
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:google--gemma-4-31b-it

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:google--gemma-4-31b-it',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:google--gemma-4-31b-it'] })

Use this when one model changes and you do not want to evict the whole catalog.

GemmaReasoningTool callingStructured outputAttachmentsTemperature control
Released
Apr 2, 2026
Last updated
Apr 2, 2026
Context window
262.1K tokens
Max output
32.8K tokens
Open weights
Yes
Family
Gemma

Starts at

Free

per 1M input tokens

Output

Free

Sellers

11

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText, Image
OutputText
Provider shelf
Where to get Gemma 4 31B IT

Sorted by lowest input price

ProviderInput / 1MOutput / 1MContext

Nvidia

google/gemma-4-31b-it

FreeFree256KDocs

NanoGPT

google/gemma-4-31b-it

$0.1$0.35262.1KDocs

Lilac

google/gemma-4-31b-it

$0.11$0.35262.1KDocs

OpenRouter

google/gemma-4-31b-it

$0.12$0.35262.1KDocs

OrcaRouter

google/gemma-4-31b-it

$0.13$0.38262.1KDocs

FastRouter

google/gemma-4-31b-it

$0.13$0.38262.1KDocs

Vercel AI Gateway

google/gemma-4-31b-it

$0.14$0.4262.1KDocs

NovitaAI

google/gemma-4-31b-it

$0.14$0.4262.1KDocs

Kilo Gateway

google/gemma-4-31b-it

$0.14$0.4262.1KDocs

Google

gemma-4-31b-it

QuoteQuote262.1KDocs

Merge Gateway

google/gemma-4-31b-it

QuoteQuote262.1KDocs
More from Google