The AI arena is free today

Open Superagent
GoogleReleased on Apr 2, 2026

Gemma 4 31B: API Pricing, Context Window & Benchmarks

Gemma 4 31B is a language model from Google, released in April 2026, with multimodal input, a 262K-token context window, and pricing from $0.130/M input and $0.380/M output.

Gemma 4 31B is Google DeepMind's flagship dense multimodal model with 31 billion parameters and a 256K context window. Ranks #3 among open models on Arena AI. Built from the same research as Gemini 3, it features Per-Layer Embeddings,

Input
TextImage
Output
Text

Gemma 4 31B benchmarks

Capability tiers

Standing within each category, adjusted for leaderboard depth.

Real tasks performance

High-confidence performance for Gemma 4 31B across real-world prompt categories. Only 95% intervals at most 4 points wide are shown.

Performance by conversation depth

How Gemma 4 31B holds up as conversations get longer.

Quality Tracker

Gemma 4 31B Performance Across Datasets

Scores sourced from the model's scorecard, paper, or official blog posts

LLM Stats Logollm-stats.com - Tue Sep 08 2026
Notice missing or incorrect data?

Gemma 4 31B pricing

Providers

Gemma 4 31B starts at $0.130 per million input tokens and $0.380 per million output tokens via DeepInfra. See all 4 providers below with their per-token pricing, latency, throughput, and modality support.

ProviderInput $/MCached input $/MOutput $/MContext in / outTTFT p95 sOutput p5 c/sModalities in / out
DeepInfra logoDeepInfra
$0.130$0.380262.1K/131.1K
/
FriendliAI logoFriendliAI
$0.140$0.400262.1K/131.1K
22.43
23
/
Novita logoNovita
$0.140$0.400262.1K/131.1K
/
Together logoTogether
$0.390$0.970262.1K/131.1K
22.88
6
/

Cached input is the discounted price for prompt tokens served from a provider cache. TTFT is time to first token. Output is characters per second; p5 is the sustained floor exceeded by 95% of observed requests.

Loading chart...
Loading chart...
Loading chart...

Gemma 4 31B model size

Gemma 4 31B has 30.7 billion parameters. See how it compares to other models in the same parameter range.

Parameters
30.7B
Large (30–80B)
30.7B
1B7B70B405B

Gemma 4 31B context window

Input and output token limits for Gemma 4 31B, plus how it ranks on long-context understanding.

InputOutput
262Ktokens
131Ktokens
394 pages of text
262K
8K128K1M

Gemma 4 31B API

POST/v1/chat/completions

Run a request to see the response

Use it in your code

Billed at $0.13 input / $0.38 output per 1M tokens through the LLM Stats gateway.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://gateway.llm-stats.com/v1"
)

response = client.chat.completions.create(
    model="gemma-4-31b-it",
    messages=[
        {"role": "user", "content": "What is machine learning?"}
    ]
)

print(response.choices[0].message.content)

Need an API key? Create one above in the playground, or read the API documentation.

Gemma 4 31B latency

Gemma 4 31B time to first token, sustained output throughput, and failed-request rate from live API traffic over the trailing 7 days.

Provider operational metrics

Time to first token, output throughput, and failed-request rate from live API traffic

Loading chart...
Loading chart...
Loading chart...

Gemma 4 31B examples

Recent arena outputs from Gemma 4 31B, picked from the highest-ranked matchups.

Gemma 4 31B license

Gemma 4 31B is released under the Apache 2.0 license, which permits commercial use, has 30.7B parameters, has a knowledge cutoff of January 2025.

License
Apache 2.0
Commercial use allowed
Parameters
30.7B
Knowledge cutoff
January 2025

Apache License 2.0 - allows commercial use

Gemma 4 31B resources

Official sources for Gemma 4 31B: api documentation, official playground, official launch post, model weights.

Gemma 4 31B vs other models

The most-compared alternatives to Gemma 4 31B are Claude Opus 4.6, Grok-3, LongCat-Flash-Thinking-2601. Open any pair side-by-side for benchmarks, pricing, context, and latency.

Models like Gemma 4 31B

Models ranked just above and below Gemma 4 31B by LLM Stats score.

 

Claude Opus 4.6

Score pending
 

Grok-3

Score pending
 

LongCat-Flash-Thinking-2601

Score pending
 

Qwen3.5-397B-A17B

Score pending
 

MAI-Thinking-1

Score pending
 

Kimi K2-Thinking-0905

Score pending

FAQ

Common questions about Gemma 4 31B.

When was Gemma 4 31B released?

Gemma 4 31B was released on April 2, 2026 by Google. This is the official Gemma 4 31B release date tracked on LLM Stats.

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.13 per million input tokens and $0.38 per million output tokens through the LLM Stats API, which works with any OpenAI-compatible SDK. Across tracked providers, the lowest price is $0.13 per million input tokens via DeepInfra.

Is Gemma 4 31B available via API?

Yes. Gemma 4 31B is available through the LLM Stats API and works with any OpenAI-compatible SDK — point your client at the gateway base URL and pass the model name. It is served by 4 providers tracked on LLM Stats.

How big is Gemma 4 31B?

Gemma 4 31B has 30.7 billion parameters. It ships as an open-weight model, so you can download and run it on your own hardware.

Who created Gemma 4 31B?

Gemma 4 31B was created by Google.

What is the license for Gemma 4 31B?

Gemma 4 31B is released under the Apache 2.0 license. This is an open-source / open-weight license that permits self-hosting.

What is the knowledge cutoff date for Gemma 4 31B?

Gemma 4 31B has a knowledge cutoff of January 2025, meaning it was trained on data up to that point and may not know about events after it.

Is Gemma 4 31B multimodal?

Yes, Gemma 4 31B is multimodal and can accept both text and images as input.

What is Gemma 4 31B latency?

Gemma 4 31B p95 time to first token is 22.43 seconds via FriendliAI over the trailing 7 days. Lower time to first token means the model begins responding sooner for chat, agents and API workloads.

Where can I use Gemma 4 31B?

Gemma 4 31B is available through 4 providers including DeepInfra, FriendliAI, Novita, and 1 more.

Where is the Gemma 4 31B paper or technical report?

Gemma 4 31B has a paper or technical report available at https://huggingface.co/blog/gemma4. Use that source for architecture, training, release and evaluation details.

What models should I compare Gemma 4 31B against?

Common Gemma 4 31B comparisons include Gemma 4 31B vs Claude Opus 4.6, Gemma 4 31B vs Grok-3, Gemma 4 31B vs LongCat-Flash-Thinking-2601. Compare them side by side for benchmark scores, pricing, context window, latency and API availability.