Google

Gemma 4 31B

google/gemma-4-31b-it
Model weightsReleased Apr 2, 2026Open Weights
ThinkingToolsVisionopen weights

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Cost / 1M tokens

Low usage

$0.20

input

—

cached input

$0.40

output

Context Window

262K

Up to 16K max output

Modalities

image, text, video → text

Gemma tokenizer

Quickstart & API

google/gemma-4-31b-it
Open the model picker in ChatOSS Desktop (Code, Kanban, or Chat) and select or paste this model ID.

Best for & Strengths

Key Strengths

Open weightsExtended reasoningTool & agent callingMultimodal vision

Recommended Workloads in ChatOSS

  • Coding agents
  • Complex reasoning & debugging
  • Screenshot-to-code workflows
Available in ChatOSS Code, Kanban Orchestrate, and Chat modes via Plus, Max, or BYOK.

Verified Evaluations

Benchmarks & Frontier Comparison

How Gemma 4 31B compares against leading open-weight and proprietary frontier models across independent agentic coding and reasoning suites.

View full Top 40 Leaderboard →
Benchmark (Metric)Gemma 4 31BDeepSeek V4.1 FlashGLM 5.3Kimi K3.1 ProClaude Opus 5.5
Agentic & Software Engineering
ChatOSS Agentic Coding Index (%)—63.2%58.3%65%74.1%
SWE-Bench Verified (%)—91.5%95.4%94.8%97%
DeepSWE v1.1 (Pass@1 %)—77%69%73.5%74.2%
Vibe Code Bench v1.1 (%)—87.7%78.1%88.4%90.3%
Terminal-Bench 4.0 (%)—42.3%42%46.2%65.2%
Code Migration (%)—45.6%44.2%52%66.7%
Intelligence & Token Economics
Artificial Analysis Intelligence Index (0–100)14.739.544.855.157.6
Input Price (/ 1M tokens)$0.20$0.15$1.40$2.00$4.00
Output Price (/ 1M tokens)$0.40$0.60$4.40$10.00$20.00

Artificial Analysis Intelligence Index

Artificial Analysis

14.7

Active Provider Endpoints (15)

Upstream inference providers serving Gemma 4 31B, with per-provider pricing, context limits, quantization, and 24-hour uptime.

ProviderInput / 1MOutput / 1MCache Read / 1MContextMax OutputQuantizationUptime (24h)
CoreWeavecache
coreweave/fp4
$0.10$0.34$0.10262K236Kfp499.6%
Venicecache
venice/fp4
$0.12$0.36$0.09256K8Kfp4100.0%
Chutescache
chutes/fp4
$0.12$0.37$0.012131K66Kfp498.7%
DeepInfracache
deepinfra/turbo
$0.135$0.51$0.075262K16Kfp499.9%
Crusoecache
crusoe/bf16
$0.14$0.40$0.14262K262Kbf1699.4%
Friendli
friendli
$0.14$0.40—262K8K—100.0%
Novita
novita/bf16
$0.14$0.40—262K131Kbf1693.0%
Parasailcache
parasail/fp8
$0.15$0.40$0.06262K236Kfp899.9%
DeepInfra
deepinfra/fp8/flex
$0.16$0.32—262K236Kfp8100.0%
DeepInfra
deepinfra/fp8
$0.20$0.40—262K16Kfp8100.0%
DeepInfra
deepinfra/fp8/priority
$0.30$0.60—262K236Kfp899.7%
Io Netcache
io-net
$0.361$1.09$0.18262K16K—99.5%
SambaNova
sambanova
$0.38$1.15—131K118K—95.5%
ModelRuncache
modelrun/fp4
$0.75$1.00$0.20262K236Kfp4100.0%
SiliconFlowcache
siliconflow/fp8
$0.75$1.00$0.25262K236Kfp899.0%

Supported API Parameters

Parameters accepted by this model when called through ChatOSS or OpenRouter.

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Compare Similar Models

Browse all models →