# Gemma 4 31B IT Ultra API Pricing

As of October 10, 2026, Gemma 4 31B IT Ultra costs $0.27 per 1M input tokens and $0.76 per 1M output tokens on DeepInfra. It has a 131,072-token context window.

- Page: https://models.litellm.ai/models/gemma-4-31b-it-ultra
- Lab: Google
- LiteLLM model name: `deepinfra/google/gemma-4-31B-it-Ultra`
- Context window: 131,072 tokens
- Added to LiteLLM: August 27, 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| DeepInfra | `deepinfra/google/gemma-4-31B-it-Ultra` | $0.27 | $0.76 | – | – | – | 128K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- DeepInfra: $0.92

100 long-document requests with 100,000 input and 2,000 output tokens each:

- DeepInfra: $2.852

## Features

Supported: Function calling, Structured output, Image input, Reasoning.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="deepinfra/google/gemma-4-31B-it-Ultra",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

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

Gemma 4 31B IT Ultra costs $0.27 per 1M input tokens and $0.76 per 1M output tokens on DeepInfra.

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

Gemma 4 31B IT Ultra has a 131,072-token context window.

### Which providers offer Gemma 4 31B IT Ultra?

Gemma 4 31B IT Ultra is available from DeepInfra through LiteLLM, using the model name deepinfra/google/gemma-4-31B-it-Ultra.

### How do I call Gemma 4 31B IT Ultra with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="deepinfra/google/gemma-4-31B-it-Ultra", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does Gemma 4 31B IT Ultra support?

Gemma 4 31B IT Ultra supports function calling, structured output, image input and reasoning.

### When did LiteLLM add Gemma 4 31B IT Ultra?

Gemma 4 31B IT Ultra was added to LiteLLM's model price file on August 27, 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
