[Models](/models)/[Captioning](/models?category=captioning)/google/gemma-4-31B-it

HFScene CaptioningApache-2.0

# gemma-4-31B-it

by google

Top-3 open VLM with 256K context for dense visual document understanding

820Kdl/month

31Bparams

[HuggingFace](https://huggingface.co/google/gemma-4-31B-it)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`google/gemma-4-31B-it`

## Deploy gemma-4-31B-it

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

Gemma 4 31B is Google's dense vision-language model, currently ranked #3 among open models on the Arena AI text leaderboard. Unlike the MoE variant (27B-A4B), this dense model activates all 31B parameters, delivering the highest quality at higher compute cost.

The 256K context window and built-in thinking mode make it particularly strong for complex document understanding tasks where accuracy matters more than throughput.

## Architecture

Dense transformer architecture with 31B parameters. Vision encoder processes image patches. 256K context window. Thinking mode enables chain-of-thought reasoning for complex visual tasks.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so gemma-4-31B-it runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The model produces text, so it lands in payload. Give the
          // collection a text vector index and embed that text to make it
          // searchable rather than only filterable.
          payload: { extracted\_text: modelOutput, source\_key: "archive/2026/asset-00412" },
          vectors: { "multimodal-embedding": embeddingOfModelOutput },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// universal\_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.

## Capabilities

*   Highest-quality open VLM (Arena #3)
*   256K context window
*   Dense architecture for fine-tuning
*   Built-in reasoning mode
*   Apache 2.0 license

## Use Cases on Mixpeek

High-accuracy visual document extraction where quality is critical

Complex chart and diagram understanding

Fine-tuning on domain-specific visual data (dense architecture)

## Benchmarks

Dataset

Metric

Score

Source

MMLU Pro

Accuracy

85.2%

Google, May 2026

AIME 2026

Accuracy

89.2%

Google, May 2026

Arena AI Leaderboard

ELO

Top 3 open

Arena AI, May 2026

## Performance

Input SizeUp to 256K tokens (text + image patches)

GPU Latency~280ms / image (A100)

GPU Throughput~28 images/sec (A100, batch 4)

GPU Memory~62 GB (dense, full activation)

## Common Pipeline Companions

[

google/gemma-4-26B-A4B-it

Compare MoE vs dense quality/cost tradeoff

](/model/google/gemma-4-26B-A4B-it)[

Qwen/Qwen3-Embedding-4B

Embed dense captions for retrieval

](/model/Qwen/Qwen3-Embedding-4B)

## Explore on Mixpeek

[

More Captioning models

Compare alternatives in this category

](/models?category=captioning)[

Best Document AI Platforms

Hand-picked tools & platforms compared

](/curated-lists/best-document-ai-platforms)[

OCR & Document AI Internals

Deep-dive technical guide

](/guides/ocr-document-ai-internals)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationgoogle

FeatureScene Captioning

Outputtext

Modalitiesvideo, image

RetrieverSemantic Search

Parameters31B

LicenseApache-2.0

Downloads/mo820K

[

### Research Paper

Gemma 4: Byte for byte, the most capable open models

arxiv.org](https://deepmind.google/models/gemma/gemma-4/)

### Build a pipeline with gemma-4-31B-it

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

Salesforce/blip2-opt-2.7b

Scene Captioning

](/model/Salesforce/blip2-opt-2.7b)[

microsoft/Florence-2-large

Scene Captioning

](/model/microsoft/Florence-2-large)[

google/paligemma2-3b-mix-448

Scene Captioning

](/model/google/paligemma2-3b-mix-448)[

Qwen/Qwen3-VL-8B-Instruct

Scene Captioning

](/model/Qwen/Qwen3-VL-8B-Instruct)