impulse

Gemma 4 31B IT Turbo

Open weights
API id gemma-4-31B-it-turbo
Input / 1M
$0.09
at DeepInfra
Output / 1M
$0.34
at DeepInfra
Context window
262K
tokens
Max output
262K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at DeepInfra, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.09$0.34
Cached input
44% off input
$0.05

What it costs a month

At DeepInfra list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$48.90
  • RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$45.84
  • Coding agent1,000 requests a day, 40K in / 2K out, cached$94.80
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$298
Use your own numbers

Where to run it

1 host serve Gemma 4 31B IT Turbo. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
DeepInfraInference
gemma-4-31B-it-turbo
$0.09 / $0.34

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
TextImages
Produces
Text
Features
Prompt caching
Open weights
License: Gemma License
Runtimes: Ollama, llama.cpp, vLLM

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than DeepInfra.

Smaller Google models

No cheaper Google model keeps its key capabilities.

Other frontier labs

No cheaper match from another frontier lab.

Open-weight picks

  • DeepSeek V4.1 Flash
    DeepSeek · on Sail
    $0.09 / $0.30
    Has every key capability
    7% less
  • MiMo V2.6 Flash
    Xiaomi · on GMI Cloud
    $0.112 / $0.224
    Has every key capability
    8% less
  • Qwen3.6 35B A3B
    Alibaba Qwen · on Sail
    $0.05 / $0.40
    Has every key capability
    10% less
  • MiniMax M3.1 Flash
    MiniMax · on Refuseless
    $0.05 / $0.25
    Has every key capability
    34% less

Call it

Using DeepInfra's API.

Python
from litellm import completion

response = completion(
    model="deepinfra/gemma-4-31B-it-turbo",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Gemma 4 31B IT Turbo cost?

On DeepInfra, Gemma 4 31B IT Turbo costs $0.09 per million input tokens and $0.34 per million output tokens. Cached input costs $0.05 per million tokens.

Which APIs offer Gemma 4 31B IT Turbo?

Gemma 4 31B IT Turbo runs on 1 API: DeepInfra.

What is Gemma 4 31B IT Turbo's context window?

262K tokens, with up to 262K tokens in one reply.

Is Gemma 4 31B IT Turbo being retired?

No retirement date is scheduled for it on any API we track.

What are cheaper alternatives to Gemma 4 31B IT Turbo?

Models that cost less and keep most of what it can do: DeepSeek V4.1 Flash on Sail (7% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Gemma 4 31B IT Turbo's API model id?

Use gemma-4-31B-it-turbo with DeepInfra.

Sources

Raw catalog entry for gemma-4-31B-it-turbo on DeepInfra
{
  "max_output_tokens": 262144,
  "max_input_tokens": 262144,
  "input_cost_per_token": 9e-8,
  "output_cost_per_token": 3.4e-7,
  "cache_read_input_token_cost": 5e-8,
  "supports_prompt_caching": true,
  "litellm_provider": "deepinfra",
  "mode": "chat",
  "supports_function_calling": true,
  "supports_tool_choice": true,
  "supports_reasoning": true,
  "supports_vision": true,
  "source": "https://deepinfra.com/pricing"
}