2026 security & frontier benchmark comparison

Claude Sonnet 5 vs Gemini 3.8 Flash

Compare Claude Sonnet 5 and Gemini 3.8 Flash 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.8 Flash (Google)
Security Resilience Index94.789.6
Prompt-Boundary Integrity95.390.2
Agentic Tool-Safety Score95.087.6
Benign Prompt Pass Rate95.1%95.2%
Benign Over-Refusal %4.9%4.8%
Net Usable Safety89.884.8
Intelligence Index89.386.2
Coding Index90.286.9
Reasoning Index90.887.8
Math Index88.688.5
Output Speed (tok/s)89248
Time to First Token (TTFT)0.88s0.52s
Blended Price ($/1M, 3:1)$4.00$1.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.8 Flash

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.8 Flash when you prioritize the lower benign over-refusal rate (4.8%), higher output throughput (248 tok/s), and faster time to first token (0.52s).

Guardrail fit: Claude Sonnet 5 uses Weights + Constitutional Stream Monitor. Gemini 3.8 Flash 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.8 Flash · 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.8-flash" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls