Gemma 4 31B
gemma-4-31b
No description provided for this model.
Input / output per 1M
official $0.12 / $0.36
Context
256K
Max output
131.1K
Input / 1M
$0.042
Output / 1M
$0.126
Pricing
65% below the reference list price.
Request
POST /v1/chat/completionscurl https://api.relayrouter.org/v1/chat/completions \ -H "Authorization: Bearer $RELAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma-4-31b", "messages": [{ "role": "user", "content": "Hello" }] }'Independent benchmark
Full leaderboardIntelligence
4.4
Coding
—
Output speed
35 tok/s
First token
1.08s
Sourced from Gemma 4 31B (Reasoning) via Artificial Analysis. RelayRouter does not run these evaluations; the index is refreshed at most once a day.
How much does Gemma 4 31B cost on RelayRouter?
Gemma 4 31B is billed at $0.042 per 1M input tokens and $0.126 per 1M output tokens, plus a flat network fee per request. Billing is prepaid and failed calls are not billed.
How do I call Gemma 4 31B?
Send a POST to https://api.relayrouter.org/v1/chat/completions with model set to "gemma-4-31b" and your RelayRouter key as a Bearer token. The API is [OI]-compatible, so existing SDKs work by changing the base URL and key.
What is Gemma 4 31B's context window?
Gemma 4 31B accepts up to 256,000 input tokens per request and returns up to 131,072 output tokens. Prompts longer than the context window are rejected with HTTP 400 rather than silently truncated.
What is Gemma 4 31B's benchmark score?
Artificial Analysis publishes 4.4 for Gemma 4 31B (Reasoning) on its Intelligence Index. Measured median output speed is 35 tokens per second. RelayRouter does not run these evaluations; see the benchmarks page for the full leaderboard.