[Google](/ai-gateway/models/labs/google)

# Gemma 4 31B IT

Gemma 4 31B IT is Google's open-weight dense model with 31B parameters, all active during inference. Built on the Gemini 3 architecture, it targets higher output quality than its MoE sibling, with support for function-calling, structured JSON output, native vision, and 140+ languages. Your use is subject to Google's [Terms](https://policies.google.com/terms/generative-ai) & [Privacy](https://policies.google.com/privacy) Policies.

File InputReasoningTool UseVision (Image)

[Use with AI Gateway](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Futm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get+Started+with+Vercel+AI+Gateway) [View docs](https://vercel.com/docs/ai-gateway)

AI SDKChat CompletionsMessagesResponses

```
1import { streamText } from 'ai'
2

3const result = streamText({
4  model: 'google/gemma-4-31b-it',
5  prompt: 'Why is the sky blue?'
6})
```

[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)

[Overview](/ai-gateway/models/gemma-4-31b-it) [API](/ai-gateway/models/gemma-4-31b-it/api) [About](/ai-gateway/models/gemma-4-31b-it/about) [Providers](/ai-gateway/models/gemma-4-31b-it/providers) [Throughput](/ai-gateway/models/gemma-4-31b-it/throughput) [Latency](/ai-gateway/models/gemma-4-31b-it/latency) [Uptime](/ai-gateway/models/gemma-4-31b-it/uptime) [Status](/ai-gateway/models/gemma-4-31b-it/status) [Similar](/ai-gateway/models/gemma-4-31b-it/similar) [FAQ](/ai-gateway/models/gemma-4-31b-it/faq)

## [Copy link to heading](#frequently-asked-questions)Frequently Asked Questions

- What makes Gemma 4 31B IT different from the MoE Gemma 4 26B?

    Gemma 4 31B IT is a dense model, meaning all 31B parameters are active during every forward pass. The MoE Gemma 4 26B activates roughly 4B of its 26B total parameters per pass. Gemma 4 31B IT targets higher output quality; the 26B variant targets lower latency and cost.

- What input modalities does Gemma 4 31B IT support?

    Gemma 4 31B IT accepts text and image inputs within a context window of 1.0M tokens. It does not generate images or audio.

- How does Gemma 4 31B IT relate to Google's Gemini models?

    Gemma 4 31B IT is built on the same architecture as Gemini 3 but with open weights. It shares capabilities like function-calling, structured output, and system instructions. Gemini models remain proprietary; Gemma 4 31B IT lets you inspect or adapt the weights.

- What languages does Gemma 4 31B IT support?

    Over 140 languages. The instruction-tuning covers multilingual conversational and task-oriented use cases.

- How do I use Gemma 4 31B IT on AI Gateway?

    Set the model to `google/gemma-4-31b-it` in the AI SDK. AI Gateway handles provider routing, retries, and failover automatically.

- Does Gemma 4 31B IT support function-calling?

    Yes. It supports function-calling for agentic workflows, structured JSON output, and system instructions natively, inherited from the Gemini 3 architecture.