Public model route · Google

Gemma 4 31B security profile

Google model route with a 262,144-token context window. Open weights. Maps to 10 MITRE ATLAS techniques.

Model record

Provider
Google
Record ID
google/gemma-4-31b-it
Version label
google/gemma-4-31b-it-20260402
Input modalities
image, text, video
Output modalities
text
Context window
262,144 tokens
First listed
Tool calling
Advertised
Reasoning
Advertised
Input per million tokens
$0.09
Output per million tokens
$0.34
Inventory snapshot

Company marketplace metadata, not an intelligence or security evaluation. First-listed date is not asserted to be the model's release date. Advertised parameters concern this route; price is per million tokens and excludes non-token fees.

Inspect Gemma 4 31B in Interactive Model Observatory

Frontier security, capability, speed & price scorecard

Security resilience index
86.2 / 100
Security tier
Tier 2 — Balanced
Prompt-boundary integrity
84.4 / 100
Agentic tool safety
82.1 / 100
Benign prompt pass rate
96.8% (3.2% over-refusal)
Net usable safety
83 / 100
Coding / Reasoning index
83.8 / 84.9
Output speed / TTFT
118 tok/s · 0.33s TTFT
Blended price (3:1)
$0.15 / 1M tokens
Guardrail architecture
Open Weights (Pair with ShieldGemma 2)
License / parameters
Apache-2.0 · 30.7B dense

Head-to-head comparisons: Claude Fable 5.2 vs Gemma 4 31B · Claude Opus 5.5 vs Gemma 4 31B · Claude Sonnet 5.5 vs Gemma 4 31B · Claude Opus 5 vs Gemma 4 31B · Claude Sonnet 5 vs Gemma 4 31B · Gemma 4 31B vs GPT-6.2 Sol

Open Gemma 4 31B interactive scorecard · View on Security Scatter Planes

Weight provenance

Open weights

Official release card verifies downloadable open weights for Gemma 4 31B under Apache-2.0 (30.7B dense); open weights permit local fine-tuning and require runtime guardrails.

Reference URI: https://huggingface.co/google/gemma-4-31b-it · Checked

ATLAS attack surface

Google: Gemma 4 31B maps to 10 MITRE ATLAS techniques and 19 mitigations across 6 surface vectors. Profiles are derived from model metadata (modalities, tool calling, reasoning, context window, and weight access). They show where techniques apply, not measured weaknesses.

Deployment posture
Open-weights (self-hostable)
ATLAS techniques in scope
10
Mitigations to review
19
Framework
MITRE ATLAS 2026.10

Test with Refract

Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. The command below runs the packs that match this route's attack-surface vectors through OpenRouter's OpenAI-compatible API.

refract scan \
  --target "openai_compat:google/gemma-4-31b-it" \
  --base-url https://openrouter.ai/api/v1 \
  --api-key "$OPENROUTER_API_KEY" \
  --battery baseline,system_prompt_extraction,mcp_tool_schema_boundary,reasoning_trace_leak
refract report

Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.

Primary source & citation record

Common questions

Which MITRE ATLAS techniques apply to Gemma 4 31B?
Gemma 4 31B maps to 10 MITRE ATLAS techniques through 6 attack-surface vectors derived from its listed capabilities: Evade AI Model (AML.T0015), Denial of AI Service (AML.T0029), Craft Adversarial Data (AML.T0043), Craft Adversarial Data: White-Box Optimization (AML.T0043.000), Full AI Model Access (AML.T0044), LLM Prompt Injection (AML.T0051), AI Agent Tool Invocation (AML.T0053), LLM Jailbreak (AML.T0054), Discover LLM System Information: System Prompt (AML.T0069.002), and Outputs from AI Models (AML.T0135). The mapping shows where techniques apply, not measured weaknesses.
Does Gemma 4 31B support tool calling?
Yes. The Nov 24, 2026 OpenRouter inventory snapshot lists tool calling as advertised for this route, which adds the tool-calling and confused-deputy attack surface (LLM Prompt Injection (AML.T0051) and AI Agent Tool Invocation (AML.T0053)).
Does Gemma 4 31B have open weights?
Yes. Official release card verifies downloadable open weights for Gemma 4 31B under Apache-2.0 (30.7B dense); open weights permit local fine-tuning and require runtime guardrails.
What is the context window of Gemma 4 31B?
262,144 tokens, according to the Nov 24, 2026 OpenRouter inventory snapshot. At 128K tokens or more, many-shot jailbreaking and context-stuffing techniques apply.
How can I test Gemma 4 31B for prompt injection and jailbreaks?
Run Refract against the OpenRouter route: refract scan --target "openai_compat:google/gemma-4-31b-it" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery baseline,system_prompt_extraction,mcp_tool_schema_boundary,reasoning_trace_leak, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.