Gemma 4 31B IT is Google's language model with a 262K context window and up to 131K output tokens, available from 13 providers, starting at $0.1 / 1M input and $0.34 / 1M output. Instruction-tuned 31B Gemma 4 model with multimodal capabilities including vision, tool use, and file input.
Specifications
Canonical IDgoogle-gemma-4-31b-instruct
TypeLanguage
StatusDeprecated
CreatorGoogleGoogle
Providers
Context Window262K tokens
Max Output131K tokens
Input ModalitiesImagePDFTextVideo
Output ModalitiesText
Reasoning Effortsdefault
Parameters31B
HuggingFace Likes2,208
HuggingFace Downloads (30d)4,237,068
HuggingFace Downloads (all-time)4,242,482
Release Date · 7 months ago
Deprecation Date

Capabilities

Input4/5
Text✓
Image✓
Audio·
Video✓
PDF✓
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities6/13
Reasoning✓
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling✓
Structured Outputs✓
Native JSON Schema✓
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching✓
Assistant Prefill·

Pricing by Provider

US Dollar ($)
Per 1M tokens
ProviderStandardFreeFlex
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Input
$ / 1M
Output
$ / 1M
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Aihubmix
aihubmix/gemma-4-31b-it
$0.14$0.4N/A—————
DeepInfra logo
DeepInfra
deepinfra/google/gemma-4-31B-it
$0.13$0.38N/A—————
FriendliAI logo
FriendliAI
friendliai/google/gemma-4-31B-it
$0.14$0.4N/A—————
Hugging Face logo
Hugging Face
novita:google/gemma-4-31b-it
$0.14$0.4N/A—————
Libertai
libertai/gemma-4-31b-it
$0.15$0.4N/A—————
Novita logo
Novita
novita/google/gemma-4-31b-it
$0.14$0.4N/A—————
OpenRouter logo
OpenRouter
google/gemma-4-31b-it
$0.2$0.4N/AN/AN/A———
OpenRouter logo
OpenRouter
google/gemma-4-31b-it:free
———$N/A$N/A———
Sail
sail/google/gemma-4-31B-it
$0.4$0.6$0.2——$0.06$0.3$0.02
Sail
sail/nvidia/Gemma-4-31B-IT-NVFP4
$0.14$0.4$0.07——$0.07$0.2$0.04
SambaNova logo
SambaNova
sambanova/gemma-4-31B-it
$0.38$1.15N/A—————
Tensormesh
tensormesh/google/gemma-4-31B-it
$0.14$0.56N/A—————
Together AI logo
Together AI
together_ai/google/gemma-4-31B-it
$0.39$0.97N/A—————
Vercel AI Gateway logo
Vercel AI Gateway
google/gemma-4-31b-it
$0.14$0.4N/A—————
Weights & Biases logo
Weights & Biases
wandb/google/gemma-4-31B-it
$0.1$0.34N/A—————

Cost Calculator

US Dollar ($)
Preset:

Cheapest Instances to Run It

Cloud GPU instances that can host Gemma 4 31B IT, ranked by cheapest on-demand price. The model needs about 74 GB of GPU memory at FP16 precision (estimated from its parameter count), so treat the fit as guidance rather than a guarantee.

All clouds
FP16 (full precision)
US Dollar ($)
Instance
Cloud
GPU
VRAM
Price
Cheapest region
Standard_NP20sAzure2× AMD Alveo U250 FPGA (64GB)128 GB$3.30/hr
g7e.2xlargeAWSRTX PRO Server 600096 GB$3.36/hr
Standard_NC24ads_A100_v4AzureNVIDIA A10080 GB$3.67/hr
7 more instances can run Gemma 4 31B IT
Unlock the full ranked list and FP8 / INT4 quantization with a CloudPrice subscription.

Versions

VersionReleasedContextInput / 1MOutput / 1MStatus
Gemma 4 26B A4B IT262K$0.070$0.300Available
Gemma 4 31B IT262K$0.100$0.340Current

Model IDs

accounts/fireworks/models/gemma-4-31b-it
accounts/fireworks/models/gemma-4-31b-it-nvfp4
aihubmix/gemma-4-31b-it
deepinfra/google/gemma-4-31B-it
friendliai/google/gemma-4-31B-it
gemini/gemma-4-31b-it
google-gemma-4-31b-instruct
google/gemma-4-31b-it
google/gemma-4-31B-it
google/gemma-4-31b-it:free
huggingface-llm-gemma-4-31b-it-nvfp4
huggingface-vlm-gemma-4-31b-it
huggingface-vlm-gemma-4-31b-it-fp8-block
libertai/gemma-4-31b-it
novita/google/gemma-4-31b-it
openrouter/google/gemma-4-31b-it
openrouter/google/gemma-4-31b-it:free
sail/google/gemma-4-31B-it
sail/nvidia/Gemma-4-31B-IT-NVFP4
sambanova/gemma-4-31B-it
tensormesh/google/gemma-4-31B-it
together_ai/google/gemma-4-31B-it
together_ai/pearl-ai/gemma-4-31b-it
wandb/google/gemma-4-31B-it