Availability as of 2 Nov 2026
Gemma 4 31B IT
Gemma 4 31B IT is an open-weight vision and language model for application builders. Writing and explaining code for development workflows.
gemma-4-31b-it- Input / output per 1M
- ₹15.92 / ₹45.49
- Hosting
- India‑hosted
- Context
- 262K
- Modalities
- text, image
What can I build with Gemma 4 31B IT?
- Writing and explaining code for development workflows.
- Agent workflows that use model-supported tools.
- Working through questions that need multi-step reasoning.
- Understanding images alongside text prompts.
Plan the integration with the API quickstart, compare rupee pricing and explore applications for your team.
How do I make a request?
Use gemma-4-31b-it as the model ID with your IndicStack API key.
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.indicstack.ai/v1",
api_key=os.environ["INDICSTACK_API_KEY"],
)
response = client.chat.completions.create(
model="gemma-4-31b-it",
messages=[{"role": "user", "content": "Explain what an API is."}],
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.indicstack.ai/v1",
apiKey: process.env.INDICSTACK_API_KEY,
});
const response = await client.chat.completions.create({
model: "gemma-4-31b-it",
messages: [{ role: "user", content: "Explain what an API is." }],
});
console.log(response.choices[0].message.content);
curl https://api.indicstack.ai/v1/chat/completions \
-H "Authorization: Bearer $INDICSTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-31b-it",
"messages": [{"role": "user", "content": "Explain what an API is."}]
}'
Which modalities does Gemma 4 31B IT support?
Gemma 4 31B IT supports text, image. Choose the request format appropriate to these inputs when planning your application.
Where is Gemma 4 31B IT hosted?
Gemma 4 31B IT is labelled India‑hosted, with inference on GPUs in India.
What is Gemma 4 31B IT best suited for?
Gemma 4 31B IT: Writing and explaining code for development workflows. Agent workflows that use model-supported tools. Working through questions that need multi-step reasoning. Understanding images alongside text prompts.
How much does Gemma 4 31B IT cost?
Gemma 4 31B IT costs ₹15.92 per 1M input tokens and ₹45.49 per 1M output tokens, before GST.
What is the served context for Gemma 4 31B IT?
Gemma 4 31B IT has a confirmed served 262K context window. Size requests to fit this served limit.
How do I call Gemma 4 31B IT from my application?
Set the model field to gemma-4-31b-it with the IndicStack base URL and your API key. The code tabs on this page show requests for Gemma 4 31B IT.
Build with Gemma 4 31B IT.
Review the model capabilities and API integration before your first request.