2026 security & frontier benchmark comparison

Claude Sonnet 5 vs Gemini 3.1 Pro

Compare Claude Sonnet 5 and Gemini 3.1 Pro on security resilience, safe-request refusals, coding, reasoning, response speed, and price per million tokens.

Side-by-side security & benchmark comparison

MetricClaude Sonnet 5 (Anthropic)Gemini 3.1 Pro (Google)
Security Resilience Index94.790.4
Prompt-Boundary Integrity95.391.0
Agentic Tool-Safety Score95.088.5
Benign Prompt Pass Rate95.1%94.5%
Benign Over-Refusal %4.9%5.5%
Net Usable Safety89.884.9
Intelligence Index89.386.9
Coding Index90.287.8
Reasoning Index90.889.1
Math Index88.689.4
Output Speed (tok/s)89126
Time to First Token (TTFT)0.88s1.15s
Blended Price ($/1M, 3:1)$4.00$4.50
Context Window1M tokens1.05M tokens
Weights & LicenseClosed weights · Proprietary APIClosed weights · Proprietary API
Guardrail ArchitectureWeights + Constitutional Stream MonitorWeights + Synchronous Stream Filter

When to choose Claude Sonnet 5 vs Gemini 3.1 Pro

Choose Claude Sonnet 5 when you prioritize higher security resilience (94.7), stronger prompt-boundary integrity (95.3), and higher agentic tool safety (95.0).

Choose Gemini 3.1 Pro when you prioritize higher output throughput (126 tok/s), and the larger context window (1.05M tokens).

Guardrail fit: Claude Sonnet 5 uses Weights + Constitutional Stream Monitor. Gemini 3.1 Pro uses Weights + Synchronous Stream Filter. For high-assurance deployments, choose the model whose guardrail architecture you can inspect, audit, and integrate with your existing monitoring stack.

Claude Sonnet 5 · Gemini 3.1 Pro · Open 5-Model Compare Playground · Explore Security Scatter Planes

Verify this comparison

refract scan compare \
  --model-a "anthropic/claude-sonnet-5" \
  --model-b "google/gemini-3.1-pro-preview" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls