gemma-4-31b-it
Model id
google/gemma-4-31b-itGoogle 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.
Latency
Time to first token users got on gemma-4-31b-it with Keln API in the last 24 hours.
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 ↗