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
| Metric | Claude Opus 5 (Anthropic) | Gemma 4 31B (Google) |
|---|---|---|
| Security Resilience Index | 95.2 | 86.2 |
| Prompt-Boundary Integrity | 95.8 | 84.4 |
| Agentic Tool-Safety Score | 95.6 | 82.1 |
| Benign Prompt Pass Rate | 95.3% | 96.8% |
| Benign Over-Refusal % | 4.7% | 3.2% |
| Net Usable Safety | 90.5 | 83.0 |
| Intelligence Index | 90.1 | 83.2 |
| Coding Index | 90.5 | 83.8 |
| Reasoning Index | 91.6 | 84.9 |
| Math Index | 89.4 | 84.5 |
| Output Speed (tok/s) | 64 | 118 |
| Time to First Token (TTFT) | 1.24s | 0.33s |
| Blended Price ($/1M, 3:1) | $10.00 | $0.15 |
| Context Window | 1M tokens | 262.14K tokens |
| Weights & License | Closed weights · Proprietary API | Open weights · Apache-2.0 |
| Guardrail Architecture | Weights + Constitutional Stream Monitor | Open 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
- AML.T0015 · Evade AI Model
- AML.T0024 · Exfiltration via AI Inference API
- AML.T0029 · Denial of AI Service
- AML.T0043 · Craft Adversarial Data
- AML.T0051 · LLM Prompt Injection
- AML.T0053 · AI Agent Tool Invocation
- AML.T0054 · LLM Jailbreak
- AML.T0069.002 · System Prompt
- AML.T0135 · Outputs from AI Models
- AML.T0044 · Full AI Model Access
- AML.T0043.000 · White-Box Optimization
- AML.T0086 · Exfiltration via AI Agent Tool Invocation
- Recommended defensive controls
- AML.M0004 · Limit AI Service Query Volume and Rate
- AML.M0010 · Predictive AI Input Restoration
- AML.M0015 · Predictive AI Adversarial Input Detection
- AML.M0019 · Control Access to AI Models and Data in Production
- AML.M0020 · Generative AI Guardrails
- AML.M0021 · Generative AI Guidelines
- AML.M0024 · AI Telemetry Logging and Monitoring
- AML.M0026 · Manage AI Agent Service Access
- AML.M0028 · Enforce Access Controls for AI Agent Tools
- AML.M0029 · Human In-the-Loop for AI Agent Actions
- AML.M0030 · Restrict AI Agent Tool Invocation on Untrusted Data
- AML.M0033 · Input and Output Validation for AI Agent Components