Back to Models
google/gemma-4-31b-it
Gemma 4 31B
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...
4/2/2026
262,144 tokens
#34 Vision (Overall)
Input: ¥26/M
Output: ¥101/M
Specifications
Modalities
Input
image
text
video
Output
text
Supported Parameters
frequency_penalty
include_reasoning
logit_bias
logprobs
max_tokens
min_p
presence_penalty
reasoning
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_a
top_k
top_logprobs
top_p
Max Output Tokens
262,144Code Examples
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "japan-gemma-4-31b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Frequently asked questions
- How much does the Gemma 4 31B API cost?
- On FastMetal, Gemma 4 31B is billed per token in yen: ¥26 per 1M input tokens and ¥101 per 1M output tokens, before tax. Usage is drawn from a prepaid balance; there is no subscription or monthly fee.
- Can I call Gemma 4 31B with the OpenAI SDK?
- Yes. Point base_url at https://api.fastmetal.ai/v1 and pass "japan-gemma-4-31b" as the model; existing OpenAI-style code works unchanged, including streaming, tool calls and structured output.
- What is the context window of Gemma 4 31B?
- 262,144 tokens, shared between the prompt and the response.
- How does Gemma 4 31B rank?
- #66 on the public arena's Overall board (ELO 1,451). Ranks move as the leaderboard is updated.
- What do I need to try Gemma 4 31B?
- Create an account and add credit; the model is then available both in the browser chat and over the API. There is no contract or minimum spend.
Try Gemma 4 31B right now
Gemma 4 31B is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.
Leaderboard
Text
OverallELO: 1,451
#66ChineseELO: 1,476
#88EnglishELO: 1,463
#65frenchELO: 1,461
#79spanishELO: 1,459
#44russianELO: 1,468
#43CodingELO: 1,499
#65MathELO: 1,472
#40Creative WritingELO: 1,420
#75Instruction FollowingELO: 1,452
#53Hard PromptsELO: 1,474
#67Multi-TurnELO: 1,464
#63Vision
OverallELO: 1,261
#34Code
OverallELO: 1,363
#89