GitHubBook a demoStart routing
LI

Gemma 4 31b It

LibertaiChat262K context· released 2026-04-02Floating alias

libertai/gemma-4-31b-it

Prices as of 2026-07-14 · rev 179affb· unknown is shown as unknown, never $0.00

Data confidence2/2 exactbenchmarks measured on this exact model · prices 2026-07-14
Cost / request$0.000351K in · 500 out
Input / M$0.15
Output / M$0.40
Context262K262,144 tokens
Max output262K262,144 tokens

Capability fingerprint

independent benchmarks, grouped by domain · higher is better · not our measurement

Code & agentic

WeirdMLnovel out-of-distribution ML coding
52%72nd pctile
exact modelhttps://htihle.github.io/weirdml.html · Gemma 4 31B IT

Factuality

SimpleQAfactual accuracy (higher = fewer hallucinations)
10%3rd pctile
exact modelEpoch evaluations · Gemma 4 31B IT

peer median  ·  percentile ranks this model among distinct comparable models (deduped — one entry per model, not per provider) scored on that benchmark  ·  exact model / family proxy per row.

Source: Epoch AI — “AI Benchmarking Hub” (epoch.ai), CC-BY (Epoch AI). Some rows carry an upstream leaderboard (shown per row); Aider & Terminal-Bench are additionally Apache-2.0. Each benchmark measures a different thing on a different scale — rows are not comparable across domains, and a score is not a guarantee of quality on your task.

Capabilities Index

Epoch AI's cross-model capability re-fit · one comparable axis · not our measurement
141.9ECI
57th percentile of 150 modelsexact model
84.0111.4138.7166.1Epoch Capabilities Index (relative re-fit scale)peer median 139.7: 141.9 (95% CI 130.9–145.8)141.9

The dot is Gemma 4 31b It; the whisker is its 95% CI; the firm tick is the peer median; faint ticks are every other scored model. Unlike a raw benchmark, the ECI axis is comparable across models — but it's a relative re-fit scale, so a model's exact position can shift when Epoch recomputes it.

Source: Epoch AI — Capabilities Index & Notable-Models data (epoch.ai), CC-BY (Epoch AI). The ECI is Epoch's index, not TokenTriage's; per-fact confidence labels are Epoch's own.

Human preference (LMArena)

blind pairwise human votes · Elo · style-controlled · not a correctness score
exact modelmeasured on gemma-4-31bstatistically tied with 17 models overall
1065123714081580Arena score (Elo · higher = more often preferred)Overallpeer median 1357Overall: 1451 (95% CI 1444–1459)1451#55 · 5.8K votesCodingpeer median 1400Coding: 1498 (95% CI 1482–1513)1498#58 · 1.4K votesHard promptspeer median 1370Hard prompts: 1473 (95% CI 1464–1483)1473#58 · 3.4K votes

Each dot is Gemma 4 31b It's Arena score in that category; the whisker is the 95% CI; the firm tick is the peer median across distinct models; faint ticks are the field. This is human preference — which answer people pick in a blind A/B — not a correctness or capability score, and adjacent ranks routinely overlap within their intervals.

Source: LMArena (LMArena Leaderboard (lmarena.ai) — lmarena-ai/leaderboard-dataset on Hugging Face, CC BY 4.0.). Ratings are the style-controlled estimates (length/formatting confound removed), as of 2026-07-27.

Also worth considering

cheaper models that score about as well — pick the benchmark that matters to you

3 cheaper models score within 3 points of Gemma 4 31b It on SimpleQA.

ModelSimpleQACost / reqSavings
NOGPT Oss 120b14%+4$0.000175−50%
AOGPT 5 Nano12%+3$0.00025−29%
OPQwen3.5 Flash 02.2320%+10$0.0003−14%

Deduped to one entry per model (cheapest offering), priced at the reference 1K-in / 500-out request. Filtered only on the benchmark score — a model with an unknown capability is never silently excluded. A lower price is only cheaper if quality holds on your task — that's what routing proves.

Pricing

Input · fresh prompt tokens$0.15 / M
Output · generated tokens$0.40 / M
Cache read · cached-input hitunknown
Cache write · cache creationunknown
Reasoning · thinking tokensunknown

Model info

Provider
Libertai
Catalog key
libertai/libertai/gemma-4-31b-it
Identifier
Floating alias (may re-point over time)
Type
Chat
Max input
262,144 tokens
Max output
262,144 tokens
Released
2026-04-02
Knowledge cutoff
unknown
Weights
Open weights
Price snapshot
2026-07-14 · rev 179affb

Pricing from TokenTriage's resolved price artifact (TokenTriage resolved price artifact (internal/pricing/data/prices.json)); capability + model metadata is third-party (LiteLLM model_prices_and_context_window.json, models.dev). Unknown means unstated, not absent.

Capabilities

2 documented as supported

Input & output

Vision
?PDF input
?Audio input
?Audio output

API behaviour

?Streaming
Structured outputmodels.dev
?Prompt caching
Reasoningmodels.dev

Agents & tools

Function calling
?Parallel tool calls
?Web search
?Computer use

supported · not supported ·? not documented · sources disagree. A models.dev tag means the LiteLLM catalog was silent and an independent source supplied the value (lower confidence); ? is never silently turned into a confident ✕.

Open weights

verified Hugging Face repo · facts from the model's safetensors index

Model

Parameters
32.7B
Architecture
Gemma4ForConditionalGeneration
Native precision
BF16

Weights footprint

Native size
62.5 GB

Memory to hold the weights — not VRAM. Real serving needs extra headroom for activations and the KV cache, which grows with context length and batch size.

License & source

License
apache-2.0Commercial use OK

Source: Hugging Face Hub — facts read from the model repo as of 2026-07-30. Each fact carries the model's own repo license (shown above); TokenTriage neither hosts nor relicenses the weights.

Estimate a request

disjoint token buckets · input = fresh (uncached) tokens
Preset
Cost / request
Projected / month

How output length drives the bill

at a 1K-token prompt · cost scales linearly with output
$0.01$0.01$0.007$0.003$0066K131K197K262KOutput tokensCost / requestmax outputoutput spend = input spend at ~375 tokensoutput spend overtakes input at ~375

Output tokens overtake input spend at ~375 tokens for this model — past that, generation is your bill, whatever the headline input price says. Computed by the same cost engine as the estimate above.

Route to Gemma 4 31b It

OpenAI-compatible · one base URL
curl https://YOUR-TOKENTRIAGE-HOST/v1/chat/completions \
  -H "Authorization: Bearer $TOKENTRIAGE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "libertai/libertai/gemma-4-31b-it",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Point your existing OpenAI client at your TokenTriage host and pass the catalog key as the model. TokenTriage attributes the real cost per request and can route to a cheaper model once it's proven just as good on your traffic.

Data & API

machine-readable · rev 179affb

Pull this model's pricing, capabilities, benchmarks and cross-source provenance programmatically — every field carries the snapshot rev, and unknown is null, never 0. Free to reuse with attribution: benchmarks & Capabilities Index © Epoch AI (CC-BY (Epoch AI)); human-preference Elo © LMArena (CC-BY-4.0); capability & price cross-check via models.dev v2 (MIT) · Portkey (MIT) · TrueFoundry (MIT); open-weights facts via Hugging Face (per-repo license).

A price is a guess until it meets your traffic.

This page tells you what Gemma 4 31b It charges per token. TokenTriage tells you what it costs on your real requests — and cuts the bill only after proving a cheaper model is just as good.