Requesty

gemma-4-31b-it

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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.

VisionReasoningTool calling

Specifications

Context window262K tokens
Max output8K tokens
API typechat
AddedJun 15, 2026
Model IDgoogle/gemma-4-31b-it
Data retentionYes
Used for trainingUnknown
Provider location🌍 Global
Privacy policyGemini API Terms

Benchmarks

Benchmarks haven't been published yet for this exact variant.

Some variants (region-specific deployments, highspeed tiers) share benchmarks with their base model. Check the base model page or the Google LLC (Gemini API) models overview.

Pricing

Input / 1M
Free
Output / 1M
Free
Cache write
N/A
Cache read
N/A
Estimated cost
100K input + 10K outputFree
1M input + 100K outputFree
10M input + 1M outputFree

Requesty charges exactly what the upstream provider charges, no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.

Quickstart

Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to google/gemma-4-31b-it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="google/gemma-4-31b-it", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Other Google LLC (Gemini API) models

Frequently asked questions

How much does gemma-4-31b-it cost?
gemma-4-31b-it is priced at Free per million input tokens and Free per million output tokens when accessed via Requesty. Requesty charges exactly what the upstream provider charges, we don't add markup.
What is the context window of gemma-4-31b-it?
gemma-4-31b-it has a context window of 262K tokens, with a maximum output of 8K tokens per response. That's roughly 350 words of input you can fit in a single prompt.
What can gemma-4-31b-it do?
gemma-4-31b-it supports vision input, tool calling, extended reasoning. You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use gemma-4-31b-it with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "google/gemma-4-31b-it". The Quickstart above shows Python, JavaScript and cURL snippets.
Can I run gemma-4-31b-it through Requesty?
Yes. gemma-4-31b-it runs through Requesty's OpenAI-compatible API, served from Google LLC (Gemini API). You do not host the model yourself: point base_url at Requesty, set the model to "google/gemma-4-31b-it", and requests are routed to the upstream provider with automatic failover. The same key gives you 400+ other models too.

Access gemma-4-31b-it through Requesty

One API key, 400+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.