gemma-4-31b-it

GoogleAdded Jul 11, 2026
Model idgoogle/gemma-4-31b-it

Google DeepMind's largest Gemma 4, a 31B dense model that takes text and images, with a 256K context and thinking on by default, with a switch to turn it off. Native function calling for agents, built in Google's words for frontier-level performance at its size.

Cost /1M tokens
$0.15input
$0.15cached
$0.46output
Context
256Ktokens
Live speed
97 tok/s · 0.53s to first token
Speed

Throughput users got on gemma-4-31b-it with Keln API in the last 24 hours.

100200300400 tok/s24h ago18h ago12h ago6h agonow
Latency

Time to first token users got on gemma-4-31b-it with Keln API in the last 24 hours.

1.0 s2.0 s3.0 s4.0 s24h ago18h ago12h ago6h agonow

Capabilities

Input
Text and images
Tool calling
Yes
JSON output
Yes
Reasoning
Yes
Web search
With opt-in
Data retention
Zero

Use the API

Create an API key, save it to KELN_API_KEY, then call the endpoint below.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.keln.ai/v1/",
    api_key=os.environ.get("KELN_API_KEY"),
)

resp = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Use with your tools

Set up guides on docs.keln.ai ↗

Ready to build on Keln?

Run gemma-4-31b-it in the playground, or create a key and call it from your code.