Google: Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, na…

google/gemma-4-31b-it-20260402

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.

Specifications & capabilities

Input
image, text, video
Output
text
Context window · tokens
262144
Published model ID
gemma4@gemma-4-31b-it
Capabilities
multimodal, promptCaching, reasoning, structuredOutputs, toolCalling, visionInput
Description source ↗

Evaluations

41–44 / 44

OpenRouter Benchmarks

82.251%

source id
openRouterBenchmarks
leaderboard name
GPQA Diamond · Accuracy · auto-routing
dimension
knowledge
metric
GPQA Diamond · Accuracy
rank
70
sample size
1386
aggregation scope
status
published
harness
url
https://github.com/OpenRouterTeam/benchmark-harness
name
OpenRouter benchmark harness
direction
higherIsBetter
run_count
7
conditions
window
newest 90 days; successful visible nonzero runs
dataset
benchmark-leaderboard
benchmark
id
gpqa_diamond
name
GPQA Diamond
record_kind
aggregate
provider_name
auto-routing
attribution
Source: OpenRouter (openrouter.ai), licensed under CC BY 4.0: reuse and republish with attribution to OpenRouter.
last_run_at
2026-10-31T16:13:09.863Z
license_url
https://creativecommons.org/licenses/by/4.0/
methodology
Rows aggregate the benchmark-runs dataset exactly as the leaderboard pages do, over each benchmark's non-zero-score runs from the newest 90 days: accuracy is the task-weighted mean of per-run accuracy, accuracy_std_dev is the population standard deviation of per-run accuracy (null with a single run), and the per-task averages divide summed cost, generation time, and output tokens by summed tasks. Rows are ordered by accuracy descending, then model name.
metric_kind
GPQA Diamond · Accuracy
rank_method
competition rank among reported evaluations in identical conditions, including unlinked observations
sample_size
1386
source_file
benchmark-leaderboard.json
source_page
https://openrouter.ai/benchmarks/gpqa-diamond
measurements
accuracy
0.8225107142857142
accuracy_std_dev
0.013731671521541366
cost_per_task_usd
0.007629560606060605
output_tokens_per_task
18615.266233766233
latency_seconds_per_task
439.13809451659455
published_at
2026-11-16T01:46:02.653Z
snapshot_date
2026-11-16
source_revision
7ccaf17664252a3053dcb7df8ad0a46e72954a3b4524ddc1c8a7ef8a41b15568
transformations
TensorTrace preserves source results, converts latency to seconds and derives ranks within matching conditions. Individual runs have no derived rank.
metric_population
132
benchmark_evaluation
true
openrouter_permaslug
google/gemma-4-31b-it-20260402
source model id
google/gemma-4-31b-it-20260402
Original result ↗

Published prices

1–20 / 21

gemma-4-31b-it ↗

$0.16

Inference provider
cheaperInference
Platform
Cheaper Inference
Unit
input_tokens_per_million
Currency
USD
Billing conditions
zdr
false
protocol
chat_completions
service_tier
standard
Billing label
Input tokens (per 1M)

gemma-4-31b-it ↗

$0.49

Inference provider
cheaperInference
Platform
Cheaper Inference
Unit
output_tokens_per_million
Currency
USD
Billing conditions
zdr
false
protocol
chat_completions
service_tier
standard
Billing label
Output tokens (per 1M)

google/gemma-4-31b-it ↗

$0.20

Inference provider
openRouter
Platform
OpenRouter
Unit
input_tokens_per_million
Currency
USD
Billing conditions

google/gemma-4-31b-it ↗

$0.40

Inference provider
openRouter
Platform
OpenRouter
Unit
output_tokens_per_million
Currency
USD
Billing conditions

google/gemma-4-31B-it ↗

$0.25

Inference provider
siliconFlow
Platform
SiliconFlow
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
Billing label
Cached input tokens (per 1M)

google/gemma-4-31B-it ↗

$0.75

Inference provider
siliconFlow
Platform
SiliconFlow
Unit
input_tokens_per_million
Currency
USD
Billing conditions
Billing label
Input tokens (per 1M)

google/gemma-4-31B-it ↗

$1.00

Inference provider
siliconFlow
Platform
SiliconFlow
Unit
output_tokens_per_million
Currency
USD
Billing conditions
Billing label
Output tokens (per 1M)

google/gemma-4-31b-it ↗

$0.14

Inference provider
vercelAIGatewayCatalog
Platform
friendli
Unit
input_tokens_per_million
Currency
USD
Billing conditions
endpoint
friendli | google/gemma-4-31b-it
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.40

Inference provider
vercelAIGatewayCatalog
Platform
friendli
Unit
output_tokens_per_million
Currency
USD
Billing conditions
endpoint
friendli | google/gemma-4-31b-it
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.10

Inference provider
vercelAIGatewayCatalog
Platform
gmicloud
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
endpoint
gmicloud | google/gemma-4-31b-it
model_type
language
quantization
fp8
billing_scope
via Vercel AI Gateway
Billing label
Cached input / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.14

Inference provider
vercelAIGatewayCatalog
Platform
gmicloud
Unit
input_tokens_per_million
Currency
USD
Billing conditions
endpoint
gmicloud | google/gemma-4-31b-it
model_type
language
quantization
fp8
billing_scope
via Vercel AI Gateway
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.40

Inference provider
vercelAIGatewayCatalog
Platform
gmicloud
Unit
output_tokens_per_million
Currency
USD
Billing conditions
endpoint
gmicloud | google/gemma-4-31b-it
model_type
language
quantization
fp8
billing_scope
via Vercel AI Gateway
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.14

Inference provider
vercelAIGatewayCatalog
Platform
novita
Unit
input_tokens_per_million
Currency
USD
Billing conditions
endpoint
novita | google/gemma-4-31b-it
model_type
language
quantization
bf16
billing_scope
via Vercel AI Gateway
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.40

Inference provider
vercelAIGatewayCatalog
Platform
novita
Unit
output_tokens_per_million
Currency
USD
Billing conditions
endpoint
novita | google/gemma-4-31b-it
model_type
language
quantization
bf16
billing_scope
via Vercel AI Gateway
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.06

Inference provider
vercelAIGatewayCatalog
Platform
parasail
Unit
cache_read_tokens_per_million
Currency
USD
Billing conditions
endpoint
parasail | google/gemma-4-31b-it
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Cached input / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.15

Inference provider
vercelAIGatewayCatalog
Platform
parasail
Unit
input_tokens_per_million
Currency
USD
Billing conditions
endpoint
parasail | google/gemma-4-31b-it
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.40

Inference provider
vercelAIGatewayCatalog
Platform
parasail
Unit
output_tokens_per_million
Currency
USD
Billing conditions
endpoint
parasail | google/gemma-4-31b-it
model_type
language
billing_scope
via Vercel AI Gateway
Billing label
Output tokens / 1M
Pricing via
Vercel AI Gateway

google/gemma-4-31b-it ↗

$0.14

Inference provider
vercelAIGatewayCatalog
Platform
Vercel AI Gateway
Unit
input_tokens_per_million
Currency
USD
Billing conditions
model_type
language
quote_scope
gateway_catalog
billing_scope
Vercel public catalog; endpoint prices may differ
varies_by_provider
true
Billing label
Input tokens / 1M
Pricing via
Vercel AI Gateway

Provider specifications & access

1–14 / 14

google/gemma-4-31B-it ↗

source model id
azure-huggingface/google--gemma-4-31b-it@1
hosting
foundry-managed-compute
platforms
  • Microsoft Foundry
license
apache-2.0
context length
262144
architecture
input_modalities
  • text
  • image
  • video
output_modalities
  • text
capabilities

    google/gemma-4-31B-it ↗

    source model id
    azure-huggingface/google--gemma-4-31b-it@2
    hosting
    foundry-managed-compute
    platforms
    • Microsoft Foundry
    license
    apache-2.0
    context length
    262144
    architecture
    input_modalities
    • text
    • image
    • video
    output_modalities
    • text
    capabilities

      google/gemma-4-31B-it ↗

      source model id
      azure-huggingface/google--gemma-4-31b-it@3
      hosting
      foundry-managed-compute
      platforms
      • Microsoft Foundry
      license
      apache-2.0
      context length
      262144
      architecture
      input_modalities
      • text
      • image
      • video
      output_modalities
      • text
      capabilities

        google/gemma-4-31B-it ↗

        source model id
        azure-huggingface/google--gemma-4-31b-it@4
        hosting
        foundry-managed-compute
        platforms
        • Microsoft Foundry
        license
        apache-2.0
        context length
        262144
        architecture
        input_modalities
        • text
        • image
        • video
        output_modalities
        • text
        capabilities

          google/gemma-4-31B-it ↗

          source model id
          azure-huggingface/google--gemma-4-31b-it@5
          hosting
          foundry-managed-compute
          platforms
          • Microsoft Foundry
          license
          apache-2.0
          context length
          262144
          architecture
          input_modalities
          • text
          • image
          • video
          output_modalities
          • text
          capabilities

            google/gemma-4-31B-it ↗

            source model id
            azure-huggingface/google--gemma-4-31b-it@6
            hosting
            foundry-managed-compute
            platforms
            • Microsoft Foundry
            license
            apache-2.0
            context length
            262144
            architecture
            input_modalities
            • text
            • image
            • video
            output_modalities
            • text
            capabilities

              google/gemma-4-31B-it ↗

              source model id
              azure-huggingface/google--gemma-4-31b-it@7
              hosting
              foundry-managed-compute
              platforms
              • Microsoft Foundry
              license
              apache-2.0
              context length
              262144
              architecture
              input_modalities
              • text
              • image
              • video
              output_modalities
              • text
              capabilities

                gemma-4-31b-it ↗

                source model id
                gemma-4-31b-it
                hosting
                gateway
                platforms
                • Cheaper Inference
                context length
                262144
                max output tokens
                262144
                architecture
                input_modalities
                • text
                • image
                output_modalities
                • text
                capabilities
                • reasoning
                • structuredOutputs
                • toolCalling
                • visionInput

                gemma-4-31b-it ↗

                source model id
                google/gemma-4-31b-it
                hosting
                nvidia-catalog
                platforms
                • NVIDIA Build / NIM
                context length
                262144
                architecture
                input_modalities
                • text
                • image
                • video
                output_modalities
                • text
                capabilities
                • toolCalling
                • reasoning

                Gemma 4 31B IT ↗

                source model id
                google/gemma-4-31b-it
                hosting
                vercel-gateway
                platforms
                • Vercel AI Gateway
                context length
                262144
                max output tokens
                131072
                architecture
                input_modalities
                • text
                • image
                • pdf
                output_modalities
                • text
                capabilities
                • reasoning
                • structuredOutputs
                • toolCalling
                • visionInput

                gemma-4-31B ↗

                source model id
                google/gemma-4-31B-it
                hosting
                siliconflow-hosted
                platforms
                • SiliconFlow
                max output tokens
                262144
                architecture
                input_modalities
                • text
                • image
                output_modalities
                • text
                capabilities
                • promptCaching
                • reasoning
                • structuredOutputs
                • toolCalling

                google/gemma-4-31B-it ↗

                source model id
                HuggingFace/google-gemma-4-31b-it@2
                hosting
                foundry-managed-compute
                platforms
                • Microsoft Foundry
                license
                apache-2.0
                architecture
                input_modalities
                • text
                output_modalities
                • text
                capabilities

                  gemma-4-31B-it ↗

                  source model id
                  publishers/google/models/gemma4@gemma-4-31b-it
                  hosting
                  vertex-self-deployed
                  platforms
                  • Google Cloud Vertex AI
                  architecture
                  input_modalities
                  • text
                  output_modalities
                  • text
                  capabilities

                    google/gemma-4-31B-it ↗

                    source model id
                    publishers/hf-google/models/gemma-4-31b-it@001
                    hosting
                    vertex-self-deployed
                    platforms
                    • Google Cloud Vertex AI
                    architecture
                    input_modalities
                    • image
                    • text
                    output_modalities
                    • text
                    capabilities
                    • multimodal
                    • visionInput

                    Safety assessments

                    1–1 / 1

                    Foundation Model Transparency Index 2025 ↗

                    41 / 100

                    source id
                    stanfordFMTI
                    canonical model id
                    google/gemma-4-31b-it-20260402
                    taxonomy
                    transparency
                    hazard category
                    transparency
                    hazard name
                    Organization transparency
                    policy area
                    Google
                    assessment type
                    organization-level disclosure
                    metric
                    disclosure_score
                    result label
                    41 / 100
                    sample size
                    100
                    updated at
                    2026-11-09T18:08:05.227Z

                    Source specification observations

                    1–16 / 16

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    nvidiaNim ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    nvidiaNim
                    confidence
                    1

                    openRouter ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    openRouter ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    siliconFlow ↗

                    field
                    context_length
                    value
                    262K
                    scope
                    source-model
                    source id
                    siliconFlow
                    confidence
                    1

                    vercelAIGatewayCatalog ↗

                    field
                    context_length
                    value
                    262144
                    normalized value
                    262144
                    scope
                    source-model
                    source id
                    vercelAIGatewayCatalog
                    confidence
                    1

                    openRouter ↗

                    field
                    max_output_tokens
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    openRouter ↗

                    field
                    max_output_tokens
                    value
                    32768
                    normalized value
                    32768
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    siliconFlow ↗

                    field
                    max_output_tokens
                    value
                    262K
                    scope
                    source-model
                    source id
                    siliconFlow
                    confidence
                    1

                    vercelAIGatewayCatalog ↗

                    field
                    max_output_tokens
                    value
                    131072
                    normalized value
                    131072
                    scope
                    source-model
                    source id
                    vercelAIGatewayCatalog
                    confidence
                    1

                    Original sources

                    1–20 / 32

                    SiliconFlow · Model page ↗

                    Hugging Face · Model repository ↗

                    Google Cloud · Model page ↗

                    Google Cloud · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    NVIDIA · Model page ↗

                    OpenRouter · Model page ↗

                    OpenRouter · Model page ↗

                    SiliconFlow · Playground ↗

                    Vercel AI Gateway · Model page ↗

                    Microsoft Foundry · Model documentation ↗

                    NVIDIA · Documentation ↗

                    SiliconFlow · API documentation ↗

                    Source links

                    1–12 / 12

                    Hugging Face model card

                    1–1 / 1

                    Explore more models

                    Models

                    Loading
                    EVIDENCE / COMPARISON

                    Benchmarks

                    Explore every benchmark

                    Loading

                    These charts contain model-linked results. The charts above also include unlinked source profiles. Compare scores within each evaluation. Model quality, usage, transparency and system performance measure different things.

                    Install TensorTrace