impulse

Gemma 4 31B IT

Open weights

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

API id gemma-4-31b-itReleased 2 Apr 2026 (Apr 2026)
Input / 1M
-
not listed
Output / 1M
-
not listed
Context window
262K
tokens
Max output
33K
tokens per reply
Hosts
14
15 listings
Released
Apr 2026
2 Apr 2026

Where to run it

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

HostIn / out per 1M
gemma-4-31b-it
-
W&B InferenceInference
gemma-4-31B-it
$0.10 / $0.34
AIHubMixGateway
gemma-4-31b-it
$0.14 / $0.40
SailCloud
Gemma-4-31B-IT-NVFP4
$0.14 / $0.40
FriendliAIInference
gemma-4-31B-it
$0.14 / $0.40
GMI CloudInference
gemma-4-31b-it
$0.14 / $0.40
Novita AIInference
gemma-4-31b-it
$0.14 / $0.40
gemma-4-31b-it
$0.15 / $0.40
gemma-4-31B-it
$0.14 / $0.56
DeepInfraInference
gemma-4-31B-it
$0.20 / $0.40
ai&Cloud
gemma-4-31b-it
$0.20 / $0.50
Together AIInference
gemma-4-31B-it
$0.39 / $0.97
SambaNovaInference
gemma-4-31B-it
$0.38 / $1.15
NVIDIA NIMInference
gemma-4-31b-it
-
Show 1 more listings: regions, snapshots and variants
Sail
Alias
gemma-4-31B-it
$0.40 / $0.60

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
Open weights
License: Gemma License
Runtimes: Ollama, llama.cpp, vLLM

Similar models

This model has no listed price, so these are current models with similar capabilities.

Smaller Google models

  • Gemini 4 Carbon
    Google · on Google AI Studio
    $2.00 / $10.00
    Has every key capability
  • Gemini 4 Argon
    Google · on Google AI Studio
    $2.00 / $10.00
    Has every key capability
  • Gemini 4 Hydrogen
    Google · on Google AI Studio
    $1.50 / $7.50
    Has every key capability

Other frontier labs

  • GPT-6.2 Astra
    OpenAI · on OpenAI
    $8.00 / $40.00
    Has every key capability
  • Claude Fable 5.2
    Anthropic · on Anthropic
    $8.00 / $40.00
    Has every key capability
  • Grok 4.7
    xAI · on xAI
    $2.00 / $6.00
    Has every key capability
  • Claude Opus 5.5
    Anthropic · on Anthropic
    $4.00 / $20.00
    Has every key capability

Open-weight picks

  • Command A Plus
    Cohere · on AIHubMix
    $2.50 / $10.00
    Has every key capability
  • Kimi K3.1 Pro
    Moonshot AI · on Databricks
    $2.00 / $10.00
    Has every key capability
  • Qwen4 Max
    Alibaba Qwen · on Alibaba DashScope
    $1.50 / $4.50
    Has every key capability
  • Inkling
    Independent · on DeepInfra
    $0.95 / $4.05
    Has every key capability

Call it

Using Google AI Studio's API.

Python
from google import genai

client = genai.Client()  # reads GEMINI_API_KEY

response = client.models.generate_content(model="gemma-4-31b-it", contents="Hello")
print(response.text)

Quick answers

How much does Gemma 4 31B IT cost?

Its lowest listed price is at W&B Inference: $0.10 per million input tokens and $0.34 per million output tokens.

Which APIs offer Gemma 4 31B IT?

Gemma 4 31B IT runs on 14 APIs: Google AI Studio, W&B Inference, AIHubMix, Sail, FriendliAI, GMI Cloud, Novita AI, LibertAI, Tensormesh and 5 more.

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

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

Is Gemma 4 31B IT being retired?

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

When was Gemma 4 31B IT released?

Google released it on 2 Apr 2026.

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

Use gemma-4-31b-it with Google AI Studio. Other hosts use their own ids: gemma-4-31B-it on W&B Inference, Gemma-4-31B-IT-NVFP4 on Sail, gemma-4-31B-it on FriendliAI, gemma-4-31B-it on Tensormesh.

Sources

Raw catalog entry for gemma-4-31b-it on Google AI Studio
{
  "input_cost_per_token": 0,
  "output_cost_per_token": 0,
  "litellm_provider": "gemini",
  "max_input_tokens": 262144,
  "max_output_tokens": 32768,
  "mode": "chat",
  "supports_function_calling": true,
  "supports_reasoning": true,
  "supports_response_schema": true,
  "supports_system_messages": true,
  "supports_tool_choice": true,
  "supports_vision": true,
  "source": "https://ai.google.dev/gemini-api/docs/pricing"
}