---
title: "Gemma 4 31B"
id: "gemma-4-31b"
lab: "Google"
canonical: https://www.requesty.ai/model/google/gemma-4-31b
generated: 2026-11-29T08:02:21.964Z
---

# Gemma 4 31B (gemma-4-31b)

> NVFP4-quantized Gemma 4 31B IT, NVIDIA's efficient quantization of Google's open multimodal model, at lower cost than the BF16 checkpoint. Served via Sail Research.

## Facts

- **Lab:** Google
- **Weights:** open ([google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it))
- **Context window:** 262K tokens
- **Max output:** 66K tokens
- **Listed:** April 2026
- **Capabilities:** vision, reasoning, tool calling, prompt caching
- **Providers on Requesty:** 1
- **Cheapest endpoint:** $0.14 per 1M input tokens, $0.40 per 1M output tokens on Sail Research
- **Success rate, last 7 days:** 100.00%

## Which id to call

- Any endpoint id from the table below: one specific deployment, no fallback.

## Base URLs

Same key on every gateway. OpenAI-compatible clients take the /v1 URL; the Anthropic SDK and Claude Code take the host.

- Global: https://router.requesty.ai/v1, or https://router.requesty.ai for the Anthropic SDK. Lands on the gateway nearest the caller.
- EU: https://router.eu.requesty.ai/v1, or https://router.eu.requesty.ai for the Anthropic SDK. Frankfurt, AWS eu-central-1.
- US: https://router.us.requesty.ai/v1, or https://router.us.requesty.ai for the Anthropic SDK. United States.
- AP: https://router.ap.requesty.ai/v1, or https://router.ap.requesty.ai for the Anthropic SDK. Asia Pacific.

## Endpoints

List prices are upstream provider rates per 1M tokens, net of any promotion. Requesty adds 5%, including on your own provider keys.

| Endpoint id | Provider | Region | Data | Context | Max output | Input | Output | Cache read | Cache write | Weights |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `sail/gemma-4-31b-it-nvfp4` | Sail Research | Global | zero retention | 262K | 66K | $0.14 | $0.40 | $0.07 | - | NVFP4 |
| `sail/gemma-4-31b-it` | Sail Research | Global | zero retention | 262K | 66K | $0.40 | $0.60 | $0.20 | - | - |

## Measured on Requesty traffic, last 7 days

Effective price is spend divided by all tokens, input and output, cache hits included. Latency is streaming requests only. A dash is a figure nobody published, not a zero.

| Provider | Share of traffic | Effective $/1M | Cache hit rate | Median TTFT | p95 TTFT | Tokens/s | Success | 5xx | 4xx |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Sail Research | 100.0% | - | - | - | - | - | 100.00% | 0.0% | 0.0% |

Full dataset: [https://www.requesty.ai/rankings/data.md](https://www.requesty.ai/rankings/data.md)

## Quickstart

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.requesty.ai/v1", api_key=os.environ["REQUESTY_API_KEY"])
response = client.chat.completions.create(
    model="sail/gemma-4-31b-it-nvfp4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
```

The Anthropic SDK works too: set base_url to "https://router.requesty.ai" and send the same model id.

## Questions

### Which providers serve Gemma 4 31B?

Requesty lists 1 provider for Gemma 4 31B: Sail Research. The pricing table links to each deployment; you can call any of these endpoints with a Requesty key.

### How much does Gemma 4 31B cost?

The lowest listed input rate is $0.14 per million input tokens on Sail Research. That endpoint charges $0.40 per million output tokens. Rates vary by provider, prompt size and region. Pay as you go includes a 5% Requesty fee, including when you bring your own provider keys.

### Why can effective price differ from list price?

The list quotes each token type separately. Effective price blends what traffic on Requesty paid for input, output and cache usage into a single dollar amount per million tokens. Workloads with different cache hit rates or more output can have a different effective price.

### Is Gemma 4 31B open weights?

Yes. Gemma 4 31B is an open-weights model from Google. The endpoints can differ in price, speed and data retention.

### What is the context window of Gemma 4 31B?

The catalog lists up to 262K context tokens and up to 66K output tokens. Limits vary by endpoint.

### How do I use Gemma 4 31B with the OpenAI SDK?

Set the SDK base URL to "https://router.requesty.ai/v1", pass your Requesty API key, and use "sail/gemma-4-31b-it-nvfp4" or the ID of a specific endpoint. The quickstart includes Python, JavaScript and cURL examples.

Page: https://www.requesty.ai/model/google/gemma-4-31b
