Gemma 4 31B IT by Google
Google’s Gemma 4 31B IT is an instruction-tuned long-context model for chat, reasoning, and coding, with an optional thinking mode for stepwise answers.
Overview
Gemma 4 31B IT is Google DeepMind’s instruction-tuned model in the Gemma 4 family. It’s a decoder-only transformer built for long-context chat, reasoning, and coding help. The model can run with a “thinking” mode that generates an internal reasoning block before the final answer. This helps with hard tasks where a short reply often misses steps.
What you can build
- A long-document Q&A assistant that reads large specs, policies, or logs in one session
- A coding helper for debugging, code review, refactors, and test generation
- A research writing assistant for outlines, summaries, and structured drafts
- A customer support copilot that follows strict tone and response rules from a system instruction
- A multi-turn chatbot that keeps context across turns when you keep the same session
Inputs
- A single user instruction written as plain text
- Or a multi-turn conversation provided as a JSON array of messages with roles like system, user, and assistant
- An optional system instruction that sets rules, tone, and boundaries for the assistant
- An optional switch that turns “thinking mode” on or off for step-by-step reasoning before the final answer
- Optional user and session identifiers, used to keep separate chat histories across users and sessions
- A control for randomness in generation, where lower values make outputs more repeatable
- A nucleus sampling control that limits generation to the most likely token mass for steadier answers
- An optional top-k sampling limit that caps how many next-token options the model can sample from
- A repetition control that discourages repeated phrases and looping
- A length bias control that nudges outputs shorter or longer during decoding
- Output length limits, including a maximum output token budget and an optional minimum output length
- One or more stop sequences (entered as a semicolon-separated list) that end generation when matched
- An optional seed value to make sampled outputs more reproducible across runs
- A switch to run the model in a quantized mode to reduce memory use, with possible quality tradeoffs
- A switch to choose deterministic decoding versus sampled decoding for creative variation
- An optional continuation token from a previous run to continue from an earlier model turn
- Optional tool-call result objects for continuing a prior run that requested tool outputs
Outputs
The model returns generated text for the assistant’s reply. When thinking mode is enabled, the response may include a separate reasoning block followed by the final answer. Stop sequences can truncate the text early when the model emits a matching string.
Limitations
- The 31B IT checkpoint is designed to generate text. Some Gemma 4 variants support more modalities, but this deployment is chat-focused.
- The model supports very long context, but your usable context depends on the serving limits and the output token cap you set.
- Thinking mode can produce long reasoning blocks. This can increase verbosity and push the final answer later.
- If your input is messy or low quality, results degrade. This includes noisy logs, inconsistent formatting, or mixed-language copy-paste.
- Tool calling may appear in some ecosystems, but custom tools are not supported in this provider configuration.
Safety & compliance
You are responsible for what you generate and how you use it. Don’t use the model to produce or enable prohibited content, including:
- Content that infringes copyright or other rights
- Dangerous, illegal, or malicious instructions (including scams, phishing, or malware)
- Child sexual abuse or exploitation content
- Hate, harassment, or content that incites violence or self-harm
- Non-consensual tracking, monitoring, or sensitive personal data extraction
- Deceptive impersonation or misleading claims of expertise in sensitive areas
- Fully automated decisions in high-impact domains like employment, housing, insurance, or healthcare
API quick start
Run gemma-4-31b-it with a single API call.
{
"prompt": "Explain the Second Law of Thermodynamics …",
"user_id": "...",
"session_id": "...",
"enableThinking": "true"
}curl -X POST "https://api.wiro.ai/v1/Run/google/gemma-4-31b-it" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "Explain the Second Law of Thermodynamics …",
"user_id": "...",
"session_id": "...",
"enableThinking": "true"
}
JSONOther models you might like
Explore similar llm & chat models.



