Google

Google

Gemma 4 31B

#3 on KymaCheapest vision

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.

Price · input#3/70

$0.0763

output $0.218 · cached $0.135

median $0.977 · best $0.0494

Price · output#2/70

$0.218

per 1M tokens generated

median $3.531 · best $0.2164

Availability · 30d#5/68

99.86%

724 observations since 2026-05-02

median 96.2% · best 100.0%

Throughput#68/68

10.1 tok/s

probe median, one fixed prompt

median 40.8 tok/s · best 308.3 tok/s

Response time#60/68

5.03 s

probe median, to a complete answer

median 2.50 s · best 0.52 s

Context

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

Tokens · last 15 daysAug 21Sep 4

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.

$0.0763 /1M input$0.218 /1M output
Hobby10 req/day · 2K in / 500 out
~$0.08/mo
Production1,000 req/day · 2K in / 500 out
~$7.85/mo
Scale20,000 req/day · 2K in / 500 out
~$157/mo
+ Estimate your workload
1,000
2,000
500
30%

Estimated monthly cost

$8.90

$0.2968 / day on Gemma 4 31B

Same workload on:

Gemini 3.8 Flash$137+1435%
Gemini 3.5 Flash Lite$74.92+741%

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

Updated 2026-06-10

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.

SpecGemma 4 31BGemini 3.8 FlashGemini 3.5 Flash Lite
Input /1M$0.0763$1.013$0.405
Output /1M$0.218$5.063$3.375
Context128K1M1M
ToolsYesYesYes
ReasoningYesYesYes
Throughput10.1 tok/sNot measured56.6 tok/s

Quick start

Up and running in under two minutes.

  1. 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. 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. 3

    Stream responses

    Add "stream": true to 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?

Gemma 4 31B has a 128K-token context window — roughly 188 pages of text in a single request.

How much does the Gemma 4 31B API cost?

$0.0763 per 1M input tokens and $0.218 per 1M output tokens, with cached input at $0.135/1M for repeated prompt prefixes, which this model does not discount. No subscription; you pay only for what you use.

Does Gemma 4 31B support function calling?

Yes — Gemma 4 31B supports tool/function calling and structured outputs (JSON mode), so it works with agent frameworks out of the box.

Are the weights for Gemma 4 31B publicly available?

Yes. Google publishes Gemma 4 31B's weights as google/gemma-4-31B-it, so you can download and run the model yourself (https://huggingface.co/google/gemma-4-31B-it, read 2026-08-14). Kyma serves it because it is convenient and has failover behind it, not because it is the only way to reach it.

Is Gemma 4 31B ever served below the precision its creator released it at?

Sometimes. Gemma 4 31B was released by Google at bf16 (https://huggingface.co/google/gemma-4-31b-it, read 2026-08-14), and at least one route serving it here reports fp4 or fp8 — narrower than that. Weights compressed below the release usually answer close to it, but it is not the identical artefact, and nothing in the response tells you which one answered. Kyma checked the routes on 2026-09-03, so it is your call rather than a silent one.

How do I use Gemma 4 31B?

Kyma is OpenAI-compatible: point your SDK's base URL at https://kymaapi.com/v1, use your Kyma API key, and set the model to gemma-4-31b. Signing up is free and includes $0.50 of credit — no card required.

Is Gemma 4 31B good for vision tasks?

Yes — it's the model Kyma's vision alias resolves to, and image understanding is what it's recommended for. It accepts text and images in, returns text out, and pairs vision with structured outputs, so you can go from a screenshot to clean JSON in a single call.

When should I pick Gemma 4 31B over a bigger model?

When the task involves images, or when volume makes cost the deciding factor. It sits in the cheap cost tier with strong quality, which is why it carries nearly a fifth of all production tokens on Kyma. For problems that need an extended reasoning mode or outputs longer than 8K tokens, reach for a model built for that instead.

Why run Gemma 4 31B through Kyma?

One OpenAI-compatible endpoint and one API key cover this and every other model on the platform. Every request gets automatic failover, prompt caching bills repeated prefixes at this model's cached input rate, each response reports its exact cost in usage.cost, and signup includes $0.50 of free credit with no card required.

Start with $0.50 free credit — no card required.Create account →

More models by Google

See all 19
ModelContextInputOutput
GoogleGemini 3.8 Flash1M$1.013$5.063
GoogleGemini 3.5 Transcribe$0.0067 / min
GoogleGemini 3.7 Flash1M$1.013$5.063
GoogleGemini 3.6 Flash1M$1.013$5.063
GoogleGemini 3.5 Flash Lite1M$0.405$3.375
GoogleGemini 3.5 Live Translate$0.0635 / min
GoogleGemini 3.5 Flash1M$2.025$12.15
GoogleGemini 3.1 Flash Live$0.0389 / min