Gemma 4 31B IT is Google's language model with a 262K context window and up to 131K output tokens, available from 6 providers, starting at $0.14 / 1M input and $0.4 / 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
StatusActive
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 · 4 months ago

Capabilities

Input4/5
Text
Image
Audio·
Video
PDF
Output1/5
Text
Image·
Audio·
Video·
Embedding·
Capabilities5/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
ProviderStandard
Input
$ / 1M
Output
$ / 1M
Cache Read
$ / 1M
Hugging Face logo
Hugging Face
novita:google/gemma-4-31b-it
$0.14$0.4N/A
Hugging Face logo
Hugging Face
together_ai:google/gemma-4-31B-it
$0.39$0.97N/A
Hugging Face logo
Hugging Face
together_ai:pearl-ai/gemma-4-31b-it
$0.28$0.86N/A
Libertai
libertai/gemma-4-31b-it
$0.15$0.4N/A
OpenRouter logo
OpenRouter
google/gemma-4-31b-it
$0.22$0.55$0.12
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
Vercel AI Gateway logo
Vercel AI Gateway
google/gemma-4-31b-it
$0.14$0.4N/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/hrwestus2
g7e.2xlargeAWSRTX PRO Server 600096 GB$3.36/hrus-east-1
Standard_NC24ads_A100_v4AzureNVIDIA A10080 GB$3.67/hrwestus2
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.100$0.300Available
Gemma 4 31B IT262K$0.140$0.400Current

Model IDs

accounts/fireworks/models/gemma-4-31b-it
accounts/fireworks/models/gemma-4-31b-it-nvfp4
google-gemma-4-31b-instruct
google/gemma-4-31b-it
google/gemma-4-31B-it
google/gemma-4-31b-it:free
huggingface-vlm-gemma-4-31b-it
libertai/gemma-4-31b-it
sambanova/gemma-4-31B-it
tensormesh/google/gemma-4-31B-it