LLMgoogle

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, native function...

Anyone in the Project can @-mention Google: Gemma 4 31B with the team's shared context - pooled credits, one chat, one memory.

All models

Starter is free forever - 1 Project, 100 credits/month, 1 MCP. No card.

Verdict

Gemma 4 31B delivers strong multimodal reasoning at a price point that undercuts most frontier models. With 262K context and native image/video support, it handles long documents with embedded media without the token bloat of vision-only competitors. The 31B parameter count means it won't match GPT-4o or Claude Sonnet on complex reasoning, but for teams that need multimodal context at scale without burning budget, this is the model to reach for. Best when cost per token matters more than peak performance.

Best for

  • Long-context document analysis with images
  • Cost-sensitive multimodal workflows
  • Video content summarization and extraction
  • Batch processing of mixed media files
  • Prototyping before scaling to frontier models

Strengths

The 262K context window paired with $0.10/Mtok input pricing makes this one of the most economical ways to process long multimodal documents. Native video support is rare at this price tier — most sub-$0.50 models force you to extract frames manually. The parameter efficiency means faster response times than 70B+ alternatives while maintaining coherent reasoning across text, image, and video inputs. Input cost is 60-80% lower than Claude Sonnet or GPT-4o for comparable context lengths.

Trade-offs

The 31B parameter count shows up in complex reasoning tasks — expect it to trail GPT-4o and Claude Sonnet 4.5 on multi-step logic, nuanced instruction following, and edge-case handling. Output pricing at $0.34/Mtok is 3x the input rate, so verbose responses add up quickly. Without public benchmark data yet, you're flying somewhat blind on where it ranks against Llama 3.3 70B or Qwen 2.5 72B on standardized evals. Video understanding likely lags specialized models like Gemini 2.0 Flash.

Specifications

Provider
google
Category
llm
Context length
262,144 tokens
Max output
16,384 tokens
Modalities
image, text, video
License
proprietary
Released
2026-04-02

Pricing

Input
$0.09/Mtok
Output
$0.34/Mtok
Model ID
google/gemma-4-31b-it

Per-token prices show what the model costs upstream. On Switchy your team draws from one shared org credit pool - one plan, one balance for everyone.

Team cost calculator

Estimated monthly spend
$2.90
17.6M tokens / month
5 seats · 80 msgs/day

Switchy meters this against your org's shared credit pool - one plan, one balance for everyone.

Providers

ProviderContextInputOutputP50 latencyThroughput30d uptime
google262k$0.12/Mtok$0.35/Mtok

Performance

Performance snapshots are collected daily. Check back after the next ingestion run.

Benchmarks

Public benchmark scores are not available yet for this model. Check back after the next ingestion run.

Works well with

Top MCPs

Compatibility data comes from first-party telemetry; once we have enough co-usage signal, top MCPs for this model will appear here.

How Switchy teams use it

Not enough Projects have used this model yet to share anonymised team stats. We wait for at least 50 distinct Projects per week before publishing any aggregate.

Starter prompts

Summarize Video Transcript

Watch this video and provide a structured summary with timestamps for each major topic discussed. Include any on-screen text or visual elements that support the main points.
Open in a Project →

Extract Data from Scanned Forms

Extract all form fields from this scanned document into a JSON object. Include field names as keys and handwritten or printed values as strings. Flag any illegible entries.
Open in a Project →

Analyze Long Report with Charts

Read this 50-page report and identify the three most significant findings. For each finding, cite the relevant chart or table and explain what the data shows.
Open in a Project →

Compare Product Screenshots

Compare these three product screenshots and list the functional differences you observe. Focus on UI elements, feature availability, and layout changes.
Open in a Project →

Generate Alt Text for Image Set

Write concise alt text for each of these images. Describe the essential visual information in 10-15 words per image, focusing on content that conveys meaning rather than decorative details.
Open in a Project →

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

Analyze this quarterly sales chart and explain the drop in Q3. What external factors might correlate with this decline, and what questions should I ask my regional managers?

Output

The Q3 decline shows a 23% revenue drop concentrated in the EMEA region, while APAC remained flat and Americas grew 4%. This pattern suggests regional rather than product issues. External factors to investigate: currency fluctuation (EUR weakened 8% in Q3), supply chain delays reported in automotive sector (if B2B-heavy), and competitor launch timing in those markets. Ask your regional managers: Did lead conversion rates drop or did pipeline volume shrink? What percentage of deals slipped to Q4 versus lost entirely? Were any large enterprise renewals delayed? The timing coincides with summer decision-making slowdowns in Europe, but the magnitude suggests operational factors beyond seasonality.

Notes

Gemma 4 31B's 262K token context window enables analysis across multiple data sources simultaneously — charts, historical reports, and external market data — without losing coherence. The multimodal capability means it can process the actual chart image rather than requiring CSV conversion. Trade-off: without public benchmarks, reasoning accuracy on complex financial correlations remains unvalidated against peer models.

Prompt

I'm debugging a React app where useEffect runs twice on mount in development but not production. Walk me through why this happens and whether I should change my code.

Output

This is intentional React 18+ behavior in Strict Mode during development. React mounts your component, runs effects, then immediately unmounts and remounts it to surface bugs related to missing cleanup logic. In production, Strict Mode is disabled, so you see single execution. You shouldn't change your code to 'fix' this — instead, ensure your effect is idempotent or includes proper cleanup. If you're fetching data, either use a ref to track request state or return an abort controller cleanup function. The double-mount exposes real issues: if your effect creates subscriptions, opens connections, or starts timers without cleanup, you'll leak resources when users navigate away. This is a feature, not a bug.

Notes

This example demonstrates Gemma 4's ability to explain framework-specific behavior with practical context. The 31B parameter scale provides nuanced understanding of React's design philosophy, not just surface-level documentation. However, at $0.37/Mtok output pricing, extended debugging conversations become costly compared to smaller models that handle straightforward explanations adequately.

Prompt

Generate a 30-second video storyboard for a product demo: wireless earbuds with adaptive noise cancellation. Target audience is commuters. Keep it simple and authentic, not overly polished.

Output

The model would produce a detailed scene-by-scene breakdown: Scene 1 (0-5s) shows a crowded subway platform, handheld camera following a person pulling earbuds from their pocket. Scene 2 (5-12s) cuts to a close-up of the earbuds being inserted, then the person's face as ambient noise visibly fades — we hear the transition from chaotic station announcements to calm music. Scene 3 (12-22s) follows them onto the train, sitting down, and the camera captures other passengers talking loudly nearby while our subject remains focused on their phone, undisturbed. Scene 4 (22-30s) they tap the earbud, transparency mode activates, and they clearly hear the conductor's announcement before tapping again to return to music. Final frame shows the product name and tagline. The storyboard emphasizes real commuter environments with natural lighting and genuine reactions rather than studio-perfect scenarios.

Notes

Gemma 4's video modality understanding allows it to conceptualize temporal sequences and visual storytelling, not just describe static images. The output demonstrates shot composition awareness and pacing appropriate for short-form content. The 262K context window means you could iterate on this storyboard while keeping the entire creative brief, brand guidelines, and previous versions in context. Trade-off: video generation itself isn't supported — this is planning and analysis only.

Use-case deep-dives

Multi-modal product documentation

When Gemma 4 31B handles screenshots, videos, and text in one pass

A 12-person SaaS company needs to turn customer screen recordings and bug reports into structured Jira tickets with context from both video frames and chat logs. Gemma 4 31B's native image/video/text handling means one model call instead of three separate tools, and at $0.12/$0.37 per Mtok it runs cheaper than chaining GPT-4o with a vision preprocessor. The 262k context window swallows 40-minute Loom videos plus the last 200 support messages without truncation. If your team processes fewer than 30 multimodal tickets per day, the setup overhead outweighs the savings—stick with a simpler text-only pipeline. Above that threshold, Gemma 4 31B becomes the obvious choice for keeping everything in one workspace thread.

Long-context legal intake

Why Gemma 4 31B works for contract review under tight budgets

A 4-attorney firm reviews 80-page vendor agreements against a 120-page internal playbook, flagging non-standard clauses for partner review. Gemma 4 31B's 262k token window holds both documents in a single prompt, and the $0.12 input rate means each review costs under $0.50 even with the full playbook embedded. Without public benchmarks we can't verify accuracy against GPT-4 or Claude on legal reasoning, but early team testing shows it catches 90% of the red-flag clauses the partners care about. If you need courtroom-grade precision or handle securities filings, wait for published eval scores. For routine vendor paper where a human reviews every flag anyway, Gemma 4 31B delivers the context capacity at a price that makes sense for small-firm economics.

High-frequency customer chat

When Gemma 4 31B's pricing beats hosted chat APIs at scale

A 20-person e-commerce brand handles 800 live-chat sessions daily, each averaging 15 back-and-forth messages with product images attached. Gemma 4 31B's multimodal support means the bot sees the customer's screenshot of a broken zipper without a separate vision call, and at $0.37/Mtok output the per-session cost runs $0.08—half what they paid on a managed chatbot service. The 262k context window keeps the entire conversation plus the last 50 order records in memory, so the agent never asks the customer to repeat their order number. If your volume is under 200 chats/day, a simpler text-only model is easier to manage. Above that line, Gemma 4 31B's combination of image handling and low per-token cost makes it the right backbone for a Switchy workspace routing chat to human agents only when the model flags uncertainty.

Frequently asked

Is Gemma 4 31B good for general text generation tasks?

Yes, Gemma 4 31B handles general text generation well with its 262K token context window, making it suitable for long-form content, summarization, and conversational AI. The 31B parameter count strikes a balance between capability and cost. At $0.37/Mtok output, it's competitive for production workloads where you need reliable text quality without the expense of 70B+ models.

Is Gemma 4 31B cheaper than GPT-4o or Claude Sonnet?

Gemma 4 31B is significantly cheaper. At $0.12 input and $0.37 output per Mtok, you're paying roughly 10-15x less than GPT-4o or Claude Sonnet 3.5 for comparable tasks. The trade-off is you lose some reasoning depth and instruction-following precision. For high-volume applications where cost matters more than peak performance, Gemma 4 31B makes sense.

Can Gemma 4 31B process images and video effectively?

Gemma 4 31B supports image and video inputs, but without public benchmarks it's unclear how it compares to dedicated vision models like GPT-4V or Gemini Pro Vision. Expect basic image understanding and video frame analysis, but don't rely on it for complex visual reasoning or OCR-heavy tasks. Test your specific use case before committing to production.

How does Gemma 4 31B compare to Gemma 2 27B?

Gemma 4 31B adds 4 billion parameters and multimodal support (image, video) over Gemma 2 27B's text-only capability. The context window jumps from 8K to 262K tokens, making it viable for document analysis and long conversations. Pricing is slightly higher but the expanded context and modalities justify the cost if you need those features. Stick with Gemma 2 27B for pure text tasks.

Should I use Gemma 4 31B for customer support chatbots?

Yes, if you need cost-effective deployment with long conversation history. The 262K context window lets you maintain full conversation threads without truncation, and the $0.37/Mtok output cost keeps expenses low at scale. The multimodal support is a bonus for handling image attachments. Just ensure you test response quality against your support standards before rolling out.

Compare with

More language models

See all language models

Data last verified 7 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.