2026 security & frontier benchmark comparison

Claude Opus 5 vs Gemma 4 31B

Compare Claude Opus 5 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 Opus 5 (Anthropic)Gemma 4 31B (Google)
Security Resilience Index95.286.2
Prompt-Boundary Integrity95.884.4
Agentic Tool-Safety Score95.682.1
Benign Prompt Pass Rate95.3%96.8%
Benign Over-Refusal %4.7%3.2%
Net Usable Safety90.583.0
Intelligence Index90.183.2
Coding Index90.583.8
Reasoning Index91.684.9
Math Index89.484.5
Output Speed (tok/s)64118
Time to First Token (TTFT)1.24s0.33s
Blended Price ($/1M, 3:1)$10.00$0.15
Context Window1M tokens262.14K tokens
Weights & LicenseClosed weights · Proprietary APIOpen weights · Apache-2.0
Guardrail ArchitectureWeights + Constitutional Stream MonitorOpen Weights (Pair with ShieldGemma 2)

When to choose Claude Opus 5 vs Gemma 4 31B

Choose Claude Opus 5 when you prioritize higher security resilience (95.2), stronger prompt-boundary integrity (95.8), and higher agentic tool safety (95.6).

Choose Gemma 4 31B when you prioritize the lower benign over-refusal rate (3.2%), higher output throughput (118 tok/s), and faster time to first token (0.33s).

Guardrail fit: Claude Opus 5 uses Weights + Constitutional Stream Monitor. 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 Opus 5 · Gemma 4 31B · Open 5-Model Compare Playground · Explore Security Scatter Planes

Verify this comparison

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

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls