Skip to content
01

Providers + pricing

CapabilitiesProvider details
● Your own key · billed by your provider · AnyRouter fee $0
AIHubMix
aihubmix-byok
$0.10list$0.34list
Unavailable
Ollama Cloud
ollama-byok
$0.10list$0.34list
Unavailable
OpenRouter
openrouter-byok
$0.10list$0.34list
Unavailable
Google AI Studio
google-aistudio-byok
$0.10list$0.34list
Unavailable
● Free pool · donated keys · not available for this model — donate a key
02

Try it

POST /api/v1/chat/completions
import { createAnyRouter } from "@anyr/ai-sdk-provider"import { generateText } from "ai" const anyrouter = createAnyRouter() const { text } = await generateText({  model: anyrouter("google/gemma-4-31b"),  prompt: "Say hi in 3 words.",})console.log(text)
Set ANYROUTER_API_KEY · edits on the demo update this code
Live demo

Attach an image, ask about it, and run it on this model.

03

Uptime + latency

—recent checks · all routes

No health checks recorded for this model yet.

24h
No traffic in the last 24h.
More performance detail
Usage analytics

Loading usage…

Uptime & Health
No uptime data yet

These providers haven't been health-probed for this model yet. The router still routes around upstreams that fail live requests — uptime fills in once probe history accrues.

Gemma 4 31B

Also accepted:google/gemma-4-31b-itgoogle/gemma-4-31b-it:freegoogle/gemma-4-31b:free
  • AIHubMix
  • Ollama Cloud
  • OpenRouter
  • Google AI Studio
Visiontext + image → text262Ktoken context
Context
262K
Input
$0
Output
$0
TTFT
—
Uptime
—
Routes
4
04

Your access

Credits
Your own key · AnyRouter fee $0

Run Gemma 4 31B on your own key — your requests are billed by the provider. Pool callers pay AnyRouter credits.

No BYOK keys configured for this model yet.

Share a key with the pool to earn credits for every request it serves, covering your plan cost.

Free poolnot in pool yetDonate key →
Create API key for this model
Text generation
Context length262,144 tokens
Max output209,715 tokens
ArchitectureTransformer
Categorytext
ReleasedJun 3, 2026
Modalities
→
Capabilities
05

About

Gemma 4 31B is Google's dense frontier-level open reasoning model, optimized for complex reasoning, agentic workflows, coding, and multimodal understanding.

Released 2026-06-03

API & code
Share cards
Gemma 4 31B share card
Gemma 4 31B
AIHubMix upstream share card
AIHubMix upstream
Ollama Cloud upstream share card
Ollama Cloud upstream
OpenRouter upstream share card
OpenRouter upstream
Google AI Studio upstream share card
Google AI Studio upstream
Hue upstream share card
Hue upstream
Back to models