The model the vision alias points to — Google's newest open model, with image understanding at cheap-tier pricing.
Modalities
Text+Image → Text
Below release
fp4 · fp8
Weights
Published
google/gemma-4-31B-it
Where it sits in the catalogue Kyma measures
Every number against every text model Kyma prices per token — a stated rule, not a chosen line-up.
$0.0763
output $0.218 · cached $0.135
median $0.977 · best $0.0494
$0.218
per 1M tokens generated
median $3.531 · best $0.2164
99.86%
724 observations since 2026-05-02
median 96.2% · best 100.0%
10.1 tok/s
probe median, one fixed prompt
median 40.8 tok/s · best 308.3 tok/s
5.03 s
probe median, to a complete answer
median 2.50 s · best 0.52 s
128K
max output 8,192
published by Google, not measured here
Tick above each rail is this model, below it the other 69. Dashed rule is the field median, solid is its best. Better is left; the axis stops at the 90th percentile, so a few models sit past its right edge.
Usage
How much this model is actually called here.
Rank
#3
of 113 active models
Tokens served
392.5M
all-time
Platform share
12.1%
of all tokens
Two clocks, and why they disagree
Kyma measures this model twice. Both are real; they answer different questions.
Probe · every 6h · 30 days
5.03s to answer
One fixed prompt, on a schedule, to every model. Comparable, because the model is the only thing that changes.
- Observations
- 724
- Answered by a substitute
- 1
Real traffic · last 7 days
2.68s to answer
Your requests, at the lengths clients actually send. Not comparable between models, but it is what running this one feels like.
- Requests
- 67
- Completed
- 91%
- p95
- 14.1 s
Caching, as realised · last 7 days
0.1% of input cached
The share of input that actually hit cache, so the effective rate below is what was charged, not a best case.
- Cached input
- 128
- Fresh input
- 244.7K
- List input
- $0.0763 /1M
- Effective input
- $0.07633 /1M
Production prompts here are shorter than the probe's. Use the probe figure to choose between models, the traffic figure to budget for your own.
Pricing
Pay per token. Cached input bills at this model’s own cached rate, listed below.
+ Estimate your workload− Estimate your workload
Estimated monthly cost
$8.90
$0.2968 / day on Gemma 4 31B
Same workload on:
Estimates use list pricing with cached input at this model's own cached rate. Actual bills depend on real token counts, and every response includes its exact cost.
When to use Gemma 4 31B
Where this model earns its cost — and where it doesn't.
Gemma 4 31B is Google's newest open model and a cheap-tier model on Kyma that accepts images, not just text. It sits in the strong quality tier and is built for multimodal and general-purpose work: send it screenshots, photos, or document scans alongside your prompt and get text back.
Coding agents drive most of its traffic here. Requests sent with the `vision` alias resolve to it. Every call gets automatic failover if a serving path degrades, and prompt caching bills repeated prompt prefixes at this model's cached input rate, which matters for agents that resend the same long system prompt.
The 128K-token context window combines with function calling and structured outputs, so it can read an image and return clean JSON in a single call — a complete loop for vision-driven pipelines.
Image understanding
Describe, classify, or answer questions about screenshots, photos, and charts — the core workload the `vision` alias exists for.
Visual data extraction
Vision input plus structured outputs means it can turn receipts, forms, or UI screenshots into validated JSON in one request.
Agent tool use
It supports function calling and already runs real agent traffic in production, from OpenClaw to Claude Code to Hermes Agent.
High-volume general tasks
Cheap-tier pricing with strong-tier quality fits summarization, classification, and chat workloads where cost per call dominates.
Long-context review
The 128K window fits large documents or long agent histories — with or without images attached.
Not ideal for: Extended reasoning problems (it has no reasoning mode) or very long single generations — output is capped at 8K tokens per request.
How it compares
Against the peers people actually weigh it against.
| Spec | Gemma 4 31B | Gemini 3.8 Flash | Gemini 3.5 Flash Lite |
|---|---|---|---|
| Input /1M | $0.0763 | $1.013 | $0.405 |
| Output /1M | $0.218 | $5.063 | $3.375 |
| Context | 128K | 1M | 1M |
| Tools | Yes | Yes | Yes |
| Reasoning | Yes | Yes | Yes |
| Throughput | 10.1 tok/s | Not measured | 56.6 tok/s |
Quick start
Up and running in under two minutes.
- 1
Create an API key
Sign up and grab a key from the dashboard — $0.50 free credit, no card required.
Get API key → - 2
Make your first request
Drop in your key and send a chat completion — fully OpenAI-compatible.
curl https://kymaapi.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma-4-31b", "messages": [ {"role": "user", "content": "Explain prompt caching in one paragraph."} ] }' - 3
Stream responses
Add
"stream": trueto receive tokens as they arrive.curl https://kymaapi.com/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma-4-31b", "stream": true, "messages": [{"role": "user", "content": "Hello!"}] }'
FAQ
Common questions about this model.
What is the context window of Gemma 4 31B?
How much does the Gemma 4 31B API cost?
Does Gemma 4 31B support function calling?
Are the weights for Gemma 4 31B publicly available?
Is Gemma 4 31B ever served below the precision its creator released it at?
How do I use Gemma 4 31B?
Is Gemma 4 31B good for vision tasks?
When should I pick Gemma 4 31B over a bigger model?
Why run Gemma 4 31B through Kyma?
More models by Google
See all 19 →| Model | Context | Input | Output |
|---|---|---|---|
| 1M | $1.013 | $5.063 | |
| — | $0.0067 / min | ||
| 1M | $1.013 | $5.063 | |
| 1M | $1.013 | $5.063 | |
| 1M | $0.405 | $3.375 | |
| — | $0.0635 / min | ||
| 1M | $2.025 | $12.15 | |
| — | $0.0389 / min | ||