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.
- Input
- $0.27 / 1M tokens
- Output
- $0.76 / 1M tokens
- Context window
- 131,072 tokens
- Providers
- 1
- Added to LiteLLM
- August 27, 2026
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 features
- 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 sk-1234" \
-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.
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. Provider pricing pages:
LiteLLM docs: DeepInfra.
Provider pages: DeepInfra.
