
Gemma4 31B
About Gemma4 31B
Gemma4 31B is a chat model by Google Cloud, available on Eden AI through 1 endpoint from 1 provider, from $0.1 per million input tokens and $0.2 per million output tokens, with a context window of up to 131K tokens.
Providers and prices
1 endpoints from 1 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you.
Performance
Performance figures appear here once Gemma4 31B has enough traffic on Eden AI to report them without exposing any single customer.
Estimate your monthly cost
Enter your expected volume to compare every endpoint at once.
Call Gemma4 31B with Eden AI
Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.
import requests
response = requests.post(
"https://api.edenai.run/v3/chat/completions",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "gemma4-31b",
"messages": [{"role": "user", "content": "Hello!"}],
},
)
print(response.json())
curl https://api.edenai.run/v3/chat/completions \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemma4-31b", "messages": [{"role": "user", "content": "Hello!"}]}'
const response = await fetch("https://api.edenai.run/v3/chat/completions", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gemma4-31b",
messages: [{ role: "user", content: "Hello!" }],
}),
});
console.log(await response.json());
Questions about Gemma4 31B
On Eden AI, prices for this model start at $0.1 per million input tokens and $0.2 per million output tokens. Prices differ by endpoint; the providers table lists each one.
Up to 131K tokens, depending on the endpoint.
1 endpoints from 1 providers, available in: Global, Europe. All of them are called with the same Eden AI API key.
More from Google Cloud
Other Google Cloud models you can call with the same key.



.png)
.png)