2026 security & frontier benchmark comparison

Claude Fable 5.2 vs Gemma 4 31B

Compare Claude Fable 5.2 and Gemma 4 31B on security resilience, safe-request refusals, coding, reasoning, response speed, and price per million tokens.

Side-by-side security & benchmark comparison

MetricClaude Fable 5.2 (Anthropic)Gemma 4 31B (Google)
Security Resilience Index97.886.2
Prompt-Boundary Integrity98.484.4
Agentic Tool-Safety Score98.582.1
Benign Prompt Pass Rate96.9%96.8%
Benign Over-Refusal %3.1%3.2%
Net Usable Safety94.783.0
Intelligence Index94.683.2
Coding Index94.883.8
Reasoning Index95.284.9
Math Index93.884.5
Output Speed (tok/s)78118
Time to First Token (TTFT)0.95s0.33s
Blended Price ($/1M, 3:1)$16.00$0.15
Context Window1M tokens262.14K tokens
Weights & LicenseClosed weights · Proprietary APIOpen weights · Apache-2.0
Guardrail ArchitectureWeights + Dual-Stage ClassifierOpen Weights (Pair with ShieldGemma 2)

When to choose Claude Fable 5.2 vs Gemma 4 31B

Choose Claude Fable 5.2 when you prioritize higher security resilience (97.8), stronger prompt-boundary integrity (98.4), and higher agentic tool safety (98.5).

Choose Gemma 4 31B when you prioritize higher output throughput (118 tok/s), faster time to first token (0.33s), and the lower blended price ($0.15 per million tokens).

Guardrail fit: Claude Fable 5.2 uses Weights + Dual-Stage Classifier. Gemma 4 31B uses Open Weights (Pair with ShieldGemma 2). For high-assurance deployments, choose the model whose guardrail architecture you can inspect, audit, and integrate with your existing monitoring stack.

Claude Fable 5.2 · Gemma 4 31B · Open 5-Model Compare Playground · Explore Security Scatter Planes

Verify this comparison

refract scan compare \
  --model-a "anthropic/claude-fable-5.2" \
  --model-b "google/gemma-4-31b-it" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls