Gemma 4 31B IT Ultra API Pricing
- Input / output
- $0.27 / $0.76 per 1M tokens
- Context
- 128K tokens
- Max output
- 128K tokens
As of November 24, 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 and returns up to 131,072 tokens per response.
Gemma 4 31B IT Ultra pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| DeepInfra | deepinfra/google/gemma-4-31B-it-Ultra | $0.27 | $0.76 | 128K |
What Gemma 4 31B IT Ultra costs in practice
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 |
Gemma 4 31B IT Ultra cost calculator
At DeepInfra's price ($0.27 input, $0.76 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $6.50 a day, about $195 a month. Change the numbers for your workload, or compare it with other models.
- Per request
- $0.00065
- Per day
- $6.50
- Per month (30 days)
- $195
Gemma 4 31B IT Ultra features
Input: text, image. Output: text.
- Function calling
- Structured output
- Image input
- Reasoning
Use Gemma 4 31B IT Ultra with LiteLLM
Call Gemma 4 31B IT Ultra through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="deepinfra/google/gemma-4-31B-it-Ultra",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: gemma-4-31b-it-ultra
litellm_params:
model: deepinfra/google/gemma-4-31B-it-Ultra
api_key: os.environ/DEEPINFRA_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "gemma-4-31b-it-ultra",
"messages": [{"role": "user", "content": "Hello!"}]
}'Gemma 4 31B IT Ultra 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 and returns up to 131,072 tokens per response.
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.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: DeepInfra.
Provider pages: DeepInfra.