Skip to content
Heimdallm
Marketplace/Model library
GoogleReleased Apr 1, 2026

Gemma 4 31B

google/gemma-4-31b-itHugging FaceChatVisionreasoningGemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on small models) and generating text output. This release includes open-weights models in both pre-trained and instruction-tuned variants. Gemma 4 features a context window of up to 256K tokens and maintains multilingual support in over 140 languages.

Input
$0.10
USD per 1M tokens
Output
$0.20
USD per 1M tokens
Context
66K
Its one endpoint
Max output
66K
Longest reply allowed
Modality
Text + Image → Text

Providers

Live endpoints, cheapest first. First token is the median wait for a streamed reply; throughput covers the last day and uptime the last 24 hours.

  • int8US
    Input
    $0.10
    Output
    $0.20
    Context
    66K66K out
    First token
    5.30slast 30 min
    Throughput
    23 tok/s
    Uptime 24h
    100.0%
ProviderContextInputOutputFirst tokenThroughputUptime 24h
Consensus ProtocolHealthyint8United States66K66K max out$0.10$0.205.30slast 30 min23 tok/s100.0%

Capabilities and data

What each endpoint declares about tools, reasoning and prompt data, beside the marketplace’s own checks. The key below says what each badge means.

  • Consensus Protocolint8Tools VerifiedReasoning Effort levelsData Zero retention
Verified
a current check called an offered tool with valid arguments
Effort levels
effort levels are declared, and none is failing checks
Zero retention
prompts are neither stored nor trained on; the claim passed marketplace review

Pricing

USD per million tokens.

ProviderInputOutputCache readCache hitEffective input
Consensus Protocolint8$0.10$0.20$0.0579.0%$0.06051

Price history

Input price · USD per million tokens

Output price · USD per million tokens

Performance

Timing percentiles cover the labelled window: the last 30 minutes when it has enough samples, otherwise the last day. TTFT is the seconds to the first token, measured only on streamed requests; response is the seconds from request to last byte, measured on every request, streamed or not. Throughput is output tokens per second over the last day, counted only over streamed generations long enough to have a rate — a buffered answer has no generation phase, and a two-token one times the scheduler rather than the model. Tool calls is the share of the last day of tool requests this endpoint answered with a tool call, published once the day holds twenty of them; under that the cell is blank rather than a rate nothing measured.

ProviderTTFT p50p75p90p99Response p50p75p90p99Throughput p50p75p90p99Tool calls 1dRunaways 1dEmpty 1dCapacity
Consensus Protocolint85.30slast 30 min9.36s13.3s23.5s56.5slast 30 min2m 36s6m 25s11m 14s23 tok/s25 tok/s26 tok/s30 tok/s—0.0%0.0%20/28 free

Time to first token by hour · last 7 days

Hourly median per provider. The line spans hours with no streamed traffic; where samples are sparse, a dot marks each hour actually timed.

Throughput by hour · last 7 days

Hourly median output tokens per second per provider, over generations long enough to have a rate. The line spans hours with no answer long enough to measure; where samples are sparse, a dot marks each hour actually measured.

Benchmarks

Scores from the benchmark board. Each figure comes from the endpoint with the most evidence for that suite, and a provisional one names how much of its suite it covers.

BenchmarkScore
GPQA DiamondAccuracy77.4%provisional · 15.7% tested
Reasoning GymAccuracy85.7%provisional · 2.3% tested
IFBenchPrompt-level loose accuracy93.3%provisional · 5.1% tested
AIME 2025Accuracy96%provisional · 20.8% tested
HMMT February 2026Accuracy75%provisional · 21.2% tested
BFCL v4Overall accuracy93.3%provisional · 4.7% tested
MRCR ≤32KMatch ratio99.8%provisional · 28.9% tested
MMLU-ProX LiteAccuracy69.2%provisional · 4.5% tested
ClaudeCoding agent · solved within 5 attempts73.9%provisional · 54.8% tested73.9% first try · 1.0 attempts per task · harness version 2.1.330
CodexCoding agent · solved within 5 attempts69.6%provisional · 54.8% tested69.6% first try · 1.0 attempts per task · harness version 0.169.0 to 0.171.0
DeepSeek HarnessCoding agent · solved within 5 attempts78.3%provisional · 54.8% tested78.3% first try · 1.0 attempts per task · harness version 0.2.2-rc.4 to 0.2.2-rc.5
EmpryoCoding agent · solved within 5 attempts71.9%complete run71.9% first try · 1.0 attempts per task · harness version 3.6.5
HermesCoding agent · solved within 5 attempts75.8%complete run75.8% first try · 1.0 attempts per task · harness version 2026.9.24
Oh My PiCoding agent · solved within 5 attempts60.9%provisional · 54.8% tested60.9% first try · 1.0 attempts per task · harness version 19.1.0
OpenCodeCoding agent · solved within 5 attempts82.4%complete run82.4% first try · 1.0 attempts per task · harness version 1.19.4 to 1.19.5
SleipnirCoding agent · solved within 5 attempts63.6%provisional · 52.4% tested63.6% first try · 1.0 attempts per task · harness version 0.4.70 to 0.4.72
ZCodeCoding agent · solved within 5 attempts78.8%complete run78.8% first try · 1.0 attempts per task · harness version 0.16.5

Rotating probe subsets

Diagnostic scores per endpoint from rotating dataset subsets, beside the board’s complete runs. Percentages cover graded replies only and are not full benchmark results; each belongs to the provider’s serving configuration.

ProviderGSM8KMMLUMMMUaime25math500mmbenchmmlu-pro
Consensus Protocolint8
99.5%414 graded
90.2%579 graded
61.3%62 graded
100.0%18 graded
100.0%350 graded
89.0%73 graded
77.0%382 graded

Benchmark answers are graded mechanically against the vendored dataset reference answers — numeric comparison of the final number for GSM8K, MATH-500 and AIME 2025, the committed multiple-choice letter for MMLU, MMLU-Pro, MMMU and MMBench, cosine ranking of the returned vectors for the Banking77 and SciDocs retrieval triplets, and per-utterance word match for LibriSpeech and FLEURS — never by another model; a reply that ran into the probe’s token cap before it committed to an answer is recorded but not graded.

Uptime

Share of successful requests and probes over the last day and week. Reliability is the share of the requests a provider accepted that it answered; turned away is the share it refused with its own 429 because it was full, which uptime counts as failures.

  • Consensus Protocolint8
    1d 100.0%7d 99.9%reliability 1d 100.0%7d 99.9%turned away 1d 0.0%7d 0.0%Healthy

Availability by hour · last 7 days

Share of successful requests and probes per hour and provider. The line spans hours with nothing to measure; where samples are sparse, a dot marks each hour actually measured.

Activity

Prompt tokens and completion tokens per UTC day over the last 30 days. Every billed request counts, the platform's own paid probe traffic included.

Prompt tokens426.6Mlast 30 days
Completion tokens52.6Mlast 30 days
Quickstart
curl https://api-staging.heimdallm.com/api/v1/chat/completions \  -H "Authorization: Bearer $HEIMDALL_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "google/gemma-4-31b-it",    "messages": [{ "role": "user", "content": "Hello" }]  }'

Set HEIMDALL_API_KEY to a key from your account. See the quickstart for routing suffixes and provider preferences.

About

Gemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on small models) and generating text output. This release includes open-weights models in both pre-trained and instruction-tuned variants. Gemma 4 features a context window of up to 256K tokens and maintains multilingual support in over 140 languages.

Author
Google
Family
google/gemma-4-31b-it
Request parameters
frequency_penalty (-2–2), max_tokens (1–65536), min_p (0–1), presence_penalty (-2–2), reasoning_effort (none, low, medium, high, max), repetition_penalty (0–2), response_format (any value), seed (0–2147483647), stop (list), temperature (0–2), tool_choice (any value), tools (any value), top_k (0–200), top_p (0–1)
Licence
apache-2.0
Size
—
Tokenizer
—
Available until
—

From the model card

What the repository states about these weights, read from unsloth/gemma-4-31B-it-GGUF on Nov 22, 2026.

Languages
—
Papers
—
Datasets
—
Revision
c1ac76eJul 17, 2026
Downloads
495.7K
Likes
692
DiscoverFind your next modelModel libraryAll models, versions, prices and capabilitiesBenchmarksMeasured quality, cost and time by serving configurationModel requestsAsk for a model, and vote on what is listed nextShowcaseImages, video and 3D made on the marketplaceProvidersCompare independent inference providersActivityMarketplace traffic and usageNetwork statusAvailability, latency and endpoint healthChatConversations, model settings and filesImage, video & 3DGenerate images, video and 3D assetsScene studioStage a shot in 3D, direct it and render it as a videoCoding playgroundBuild software with an AI agent on a machine of your ownOverview & routingIdentity, workspaces and routing preferencesBalance & depositsBalance, deposits, ledger and reserved fundsAPI keysKeys scoped to workspaces, limits and expirationOrganizationsTeams, members and shared workspacesRequest historyRequests, receipts, sandbox sessions and account historyReferralsInvitations and referral earningsPrivacyData settings, exports and deletionDocumentationQuickstart, SDKs, pricing and guidesAPI referenceInteractive endpoint referenceList your modelsProvider guide: requirements, the fee, payouts and what is measuredProvider payoutsMonthly statements, the marketplace fee and payout walletsProvider dashboardApply as a provider, add sources and track earnings