[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](#providers)Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the [docs](/docs/ai-gateway/provider-options) for more info. Using a provider means you agree to their terms, listed under Legal.

| Provider |
| --- |

| Context | Max Output | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | ZDR | No Training | Free Tier | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![novita logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fnovita.png&w=48&q=75) [Novita AI](/ai-gateway/models/providers/novita) Legal:[Terms](https://novita.ai/legal/terms-of-service)•[Privacy](https://novita.ai/legal/privacy-policy) | 262K | 131K | 1.3s | 70tps | $0.14/M | $0.40/M |  | — | +1 |  |  |  | 04/02/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| ![parasail logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fparasail.png&w=48&q=75) [Parasail](/ai-gateway/models/providers/parasail) Legal:[Terms](https://www.parasail.io/legal/terms)•[Privacy](https://www.saas.parasail.io/assets/privacy-policy.html) | 262K | 131K | 0.6s | 18tps | $0.14/M | $0.40/M |  | — |  |  |  |  | 04/02/2026 |  |
| ![togetherai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Ftogetherai.png&w=48&q=75) [Together AI](/ai-gateway/models/providers/togetherai) Legal:[Terms](https://www.together.ai/terms-of-service)•[Privacy](https://www.together.ai/privacy) | 256K | 131K | 0.5s | 21tps | $0.39/M | $0.97/M |  | — | +1 |  |  |  | 04/02/2026 |  |
| ![cerebras logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fcerebras.png&w=48&q=75) [Cerebras](/ai-gateway/models/providers/cerebras) Legal:[Terms](https://www.cerebras.ai/terms-of-service)•[Privacy](https://www.cerebras.ai/privacy-policy) | 131K | 40K | 0.3s | 2197tps | $0.99/M | $1.49/M |  | — | +1 |  |  |  | 04/02/2026 |  |
| ![friendli logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Ffriendli-256.png%3Fv%3D1785192529792&w=48&q=75) [Friendli AI](/ai-gateway/models/providers/friendli) Legal:[Terms](https://friendli.ai/service)•[Privacy](https://friendli.ai/privacypolicy) | 256K | 131K | 0.2s | 145tps | $0.14/M | $0.40/M |  | — | +1 |  |  |  | 04/02/2026 |  |
| ![gmicloud logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fgmicloud.png%3Fv%3D1785888489595&w=48&q=75) [GMICloud](/ai-gateway/models/providers/gmicloud) Legal:[Terms](https://www.gmicloud.ai/en/terms-and-conditions)•[Privacy](https://www.gmicloud.ai/en/privacy-policy) | 1M | 1M | 1.1s | 84tps | $0.14/M | $0.40/M | Read:$0.10/M Write:— | — | +1 |  |  |  | 04/02/2026 |  |