Alternatives to Claude Sonnet 5

These models are alternatives by measurable coding evidence: they share the current closed-model classificationand are closest to Claude Sonnet 5's SWE-bench score. Similarity here does not mean identical capabilities, licence terms, or output quality.

The target model

SWE-bench
79.6%
Cheapest input
$2.00
Cheapest output
$10.00
Hosts
10
AlternativeSWE-benchInput $/MTokOutput $/MTokHostsContextTradeoff
Gemini 3.6 Flash79.6%$0.38$1.884lower input price
Gemini 3.5 Flash78.8%$0.75$4.504lower input price
Gemini 3.1 Pro Preview78.8%$1.00$6.0041.0Mlower input price
Claude Opus 4.678.7%$5.00$25.00101.0Mhigher input price
GLM 5.278.7%$0.50$2.0066203klower input price
Gemini 3.7 Flash80.8%$0.19$0.944lower input price
gpt-5.4 (<272K context length)78.2%$2.50$15.006higher input price
GPT-5.3-Codex78.0%$1.75$14.004400klower input price
Muse Spark 1.182.0%$1.25$4.2521.0Mlower input price
gpt-5.5 (<272K context length)82.6%$5.00$30.006higher input price
Claude Opus 4.576.4%$5.00$25.0010200khigher input price
gpt-5.275.8%$1.75$14.004lower input price

How alternatives are selected

Alternatives must have a benchmark score and the same current open/closed classification as the target. They are sorted by score distance, then by price/performance. The table compares hosted API economics; it does not establish licence compatibility or self-hosting rights.

Check the model licence, provider Terms, context limits, tool support, and output quality before switching a production workload.