2026 security & frontier benchmark comparison

Claude Sonnet 5 vs GPT-5.4 Mini

Compare Claude Sonnet 5 and GPT-5.4 Mini 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)GPT-5.4 Mini (OpenAI)
Security Resilience Index94.787.9
Prompt-Boundary Integrity95.388.5
Agentic Tool-Safety Score95.087.6
Benign Prompt Pass Rate95.1%95.9%
Benign Over-Refusal %4.9%4.1%
Net Usable Safety89.883.8
Intelligence Index89.379.8
Coding Index90.280.6
Reasoning Index90.881.9
Math Index88.682.2
Output Speed (tok/s)89152
Time to First Token (TTFT)0.88s0.51s
Blended Price ($/1M, 3:1)$4.00$1.69
Context Window1M tokens400K tokens
Weights & LicenseClosed weights · Proprietary APIClosed weights · Proprietary API
Guardrail ArchitectureWeights + Constitutional Stream MonitorInstruction Hierarchy + Lightweight Policy Router

When to choose Claude Sonnet 5 vs GPT-5.4 Mini

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 GPT-5.4 Mini when you prioritize the lower benign over-refusal rate (4.1%), higher output throughput (152 tok/s), and faster time to first token (0.51s).

Guardrail fit: Claude Sonnet 5 uses Weights + Constitutional Stream Monitor. GPT-5.4 Mini uses Instruction Hierarchy + Lightweight Policy Router. For high-assurance deployments, choose the model whose guardrail architecture you can inspect, audit, and integrate with your existing monitoring stack.

Claude Sonnet 5 · GPT-5.4 Mini · Open 5-Model Compare Playground · Explore Security Scatter Planes

Verify this comparison

refract scan compare \
  --model-a "anthropic/claude-sonnet-5" \
  --model-b "openai/gpt-5.4-mini" \
  --output json

Mapped MITRE ATLAS attack surface & defensive controls

ATLAS techniques in scope
Recommended defensive controls