Gemma 4 31B
gemma-4-31bPricing
List prices at Cerebras, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.99 | $1.49 |
What it costs a month
At Cerebras list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$409
- RAG over documents2,000 requests a day, 8K in / 0.6K out$529
- Coding agent1,000 requests a day, 40K in / 2K out$1,277
- Overnight batch20,000 requests a day, 4K in / 0.4K out$2,734
Where to run it
3 hosts serve Gemma 4 31B. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
| $0.14 / $0.40 −82% vs headline | google.gemma-4-31b | ||
Kyma APICloud gemma-4-31b | $0.164 / $0.469 −78% vs headline | gemma-4-31b | |
CerebrasInference gemma-4-31b | $0.99 / $1.49 | gemma-4-31b |
Show 1 more listings: regions, snapshots and variantsHide regional listings
| Amazon Bedrock | |||||||
| us-gov-west-1 · Mantle google.gemma-4-31b | $0.168 / $0.48 −78% vs headline | google.gemma-4-31b | |||||
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- TextImages
- Produces
- Text
- Features
- Parallel tool calls
- Open weights
- License: Gemma LicenseRuntimes: Ollama, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
- Amazon Bedrock82% lessMantle$0.14 / $0.40
- Kyma API78% lessgemma-4-31b$0.164 / $0.469
- Amazon Bedrock78% lessus-gov-west-1 · Mantle$0.168 / $0.48
Smaller Google models
- 24% less
Other frontier labs
- 59% less
- 82% less
- 82% less
- 76% less
Open-weight picks
- 39% less
- 43% less
- 53% less
- 57% less
Call it
Using Cerebras's API.
from litellm import completion
response = completion(
model="cerebras/gemma-4-31b",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Gemma 4 31B cost?
On Cerebras, Gemma 4 31B costs $0.99 per million input tokens and $1.49 per million output tokens. The cheapest host is Amazon Bedrock (Mantle), at $0.14 per million input tokens and $0.40 per million output tokens.
Which APIs offer Gemma 4 31B?
Gemma 4 31B runs on 3 APIs: Amazon Bedrock, Kyma API and Cerebras.
What is Gemma 4 31B's context window?
131K tokens, with up to 41K tokens in one reply.
Is Gemma 4 31B being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Gemma 4 31B?
Models that cost less and keep most of what it can do: Gemini 3.5 Flash Lite on Google AI Studio (24% less), GPT-5.4 Nano on OpenAI (59% less), Claude Haiku 5.5 on Anthropic (82% less) and Kimi K2.7 Code on CLF AI Gateway (39% less). Gemma 4 31B itself costs 82% less on Amazon Bedrock (Mantle). Savings are on a mix of 3 input tokens to 1 output token.
What is Gemma 4 31B's API model id?
Use gemma-4-31b with Cerebras. Other hosts use their own ids: google.gemma-4-31b on Amazon Bedrock.
Sources
Raw catalog entry for gemma-4-31b on Cerebras
{
"input_cost_per_token": 9.9e-7,
"litellm_provider": "cerebras",
"max_input_tokens": 131072,
"max_output_tokens": 40960,
"mode": "chat",
"output_cost_per_token": 0.00000149,
"source": "https://api.cerebras.ai/public/v1/models/gemma-4-31b",
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_reasoning": true,
"supports_response_schema": true,
"supports_tool_choice": true,
"supports_vision": true
}