Alternatives to GLM 5.1

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

The target model

SWE-bench
74.2%
Cheapest input
$0.91
Cheapest output
$2.86
Hosts
44
AlternativeSWE-benchInput $/MTokOutput $/MTokHostsContextTradeoff
MiniMax M2.574.2%$0.15$0.5931197klower input price
MiniMax M2.773.8%$0.24$0.9621197klower input price
MiniMax M2.174.8%$0.29$0.958197klower input price
Gemini 3.5 Flash-Lite75.0%$0.15$1.254lower input price
MiniMax M375.0%$0.23$0.9628262klower input price
Claude Sonnet 4.675.2%$3.00$15.00101.0Mhigher input price
GPT-5.4 Mini73.0%$0.75$4.504400klower input price
Gemini 3 Flash Preview75.4%$0.25$1.504lower input price
Gemini 3.1 Pro Preview Custom Tools75.6%$2.00$12.0021.0Mhigher input price
gpt-5.275.8%$1.75$14.004higher input price
GPT-5.2-Codex72.4%$1.75$14.003400khigher input price
GLM 572.1%$0.60$1.9231203klower 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.