Model comparison
GLM-5 vs GPT-4.1 mini
Head-to-head evidence from 16 shared benchmark results across 7 categories. Overall scores shown here use the public BenchAlign v5 ranking lane.
Public leaderboard positions: GLM-5 #30 (Supported); GPT-4.1 mini #160 (Estimated). Intervals and evidence labels describe ranking uncertainty, not a guarantee for a specific workload.
Evidence parity. GLM-5 and GPT-4.1 mini share 16 comparable benchmark results. 4 of 8 categories are comparable. 33 results are unique to GLM-5; 6 to GPT-4.1 mini.
Updated July 24, 2026- Shared results
- 16
- GLM-5 only
- 33
- GPT-4.1 mini only
- 6
- Comparable categories
- 4 / 8
Pick GLM-5 if you want the stronger benchmark profile. GPT-4.1 mini only becomes the better choice if you want the cheaper token bill or you need the larger 1M context window.
Confidence note. This is a partial-evidence comparison with 16 shared benchmark results across 7 evidence categories; 4 of 8 categories currently have scoreable aggregates for both models. Treat the verdict as directional until coverage is more balanced.
Why this result
GLM-5 is clearly ahead on the BenchAlign aggregate, 65.29 to 43.1. The gap is large enough that you do not need to squint at the spreadsheet to see the difference.
GLM-5's sharpest advantage is in mathematics, where it averages 56.3 against 4.5. The single biggest benchmark swing on the page is SWE-bench Verified, 77.8% to 23.6%.
GLM-5 is also the more expensive model on tokens at $1.00 input / $3.20 output per 1M tokens, versus $0.40 input / $1.60 output per 1M tokens for GPT-4.1 mini. That is roughly 2.0x on output cost alone. GPT-4.1 mini gives you the larger context window at 1M, compared with 200K for GLM-5.
Category breakdown
Exact category averages are shown below. Not measured means BenchLM does not have enough sourced public coverage for that model and category.
| Category | GLM-5 | Δ | GPT-4.1 mini |
|---|---|---|---|
| Math | GLM-556.3 | Margin← 51.8 | GPT-4.1 mini4.5 |
| Coding | GLM-566.3 | Margin← 42.7 | GPT-4.1 mini23.6 |
| Inst. Following | GLM-592.6 | Margin← 4.1 | GPT-4.1 mini88.5 |
| Knowledge | GLM-566.4 | Margin← 2.2 | GPT-4.1 mini64.2 |
| Agentic | GLM-556.2 | MarginNo overlap | GPT-4.1 miniNot measured |
| Reasoning | GLM-560.8 | MarginNo overlap | GPT-4.1 miniNot measured |
| Multilingual | GLM-583.1 | MarginNo overlap | GPT-4.1 miniNot measured |
Decisive benchmark drivers
The largest measured benchmark gaps in this matchup, with exact reported values.
More
- Source ↗
SWE-bench Verified
CodingA 77.8%B 23.6%Winner: GLM-5Δ 54.2SWE-bench Verified: GLM-5 scored 77.8%; GPT-4.1 mini scored 23.6%. GLM-5 wins this benchmark. - Source ↗
GPQA
KnowledgeA 86%B 64.2%Winner: GLM-5Δ 21.8GPQA: GLM-5 scored 86%; GPT-4.1 mini scored 64.2%. GLM-5 wins this benchmark. - Source ↗
FrontierMath v2 (Tiers 1-3)
MathA 16.434%B 4.483%Winner: GLM-5Δ 12FrontierMath v2 (Tiers 1-3): GLM-5 scored 16.434%; GPT-4.1 mini scored 4.483%. GLM-5 wins this benchmark. - Source ↗
IFEval
Inst. FollowingA 92.6%B 88.5%Winner: GLM-5Δ 4.1IFEval: GLM-5 scored 92.6%; GPT-4.1 mini scored 88.5%. GLM-5 wins this benchmark.
Operational comparison
Runtime and commercial metrics are compared only when both models have a complete sourced value.
| Metric | GLM-5 | GPT-4.1 mini | Comparison |
|---|---|---|---|
| Input / output priceUSD per 1M tokens | GLM-5$1 input / $3.2 output | GPT-4.1 mini$0.4 input / $1.6 output | GPT-4.1 mini has the lower combined listed price. |
| Generation speedtokens per second | GLM-574 tok/s | GPT-4.1 mini80 tok/s | GPT-4.1 mini has the higher measured throughput. |
| First-answer latencyseconds to first token | GLM-51.64 s | GPT-4.1 mini0.76 s | GPT-4.1 mini reaches the first token sooner. |
| Context windowmaximum listed tokens | GLM-5200K | GPT-4.1 mini1M | GPT-4.1 mini lists the larger context window. |
Benchmark Deep Dive
Agentic16 benchmarks
| Benchmark | GLM-5 | GPT-4.1 mini | Result |
|---|---|---|---|
| Terminal-Bench 2.0Source | 56.2% | — | Not comparable |
| Claw-EvalSource | 57.7% | — | Not comparable |
| QwenClawBenchSource | 54.1% | — | Not comparable |
| τ³-bench resultsSource | 65.6% | — | Not comparable |
| DeepPlanningSource | 14.6% | — | Not comparable |
| ToolathlonSource | 38% | — | Not comparable |
| MCP AtlasSource | 31.1% | — | Not comparable |
| MCP-TasksSource | 60.8% | — | Not comparable |
| WideResearchSource | 69.8% | — | Not comparable |
| τ²-bench resultsSource | 98.2% | 52.9% | GLM-5 leads |
| CyberGymSource | 43.2% | — | Not comparable |
| APEX-Agents-AASource | 14.5% | — | Not comparable |
| Gert LabsSource | 50.99% | — | Not comparable |
| AA Agentic IndexSource | — | 1.7% | Not comparable |
| GDPval-AASource | — | 0.4% | Not comparable |
| GDPval-AASource | — | 508 | Not comparable |
CodingGLM-5 wins8 benchmarks
| Benchmark | GLM-5 | GPT-4.1 mini | Result |
|---|---|---|---|
| SWE-bench VerifiedSource | 77.8% | 23.6% | GLM-5 leads |
| SWE-bench Verified*Source | 72.8% | — | Not comparable |
| SWE-bench ProSource | 55.1% | — | Not comparable |
| SWE MultilingualSource | 73.3% | — | Not comparable |
| SWE-RebenchSource | 62.8% | — | Not comparable |
| React Native EvalsSource | 74.8% | — | Not comparable |
| AA-SciCodeSource | 46.2% | 40.4% | GLM-5 leads |
| AA Coding IndexSource | — | 20.2% | Not comparable |
Reasoning4 benchmarks
KnowledgeGLM-5 wins13 benchmarks
| Benchmark | GLM-5 | GPT-4.1 mini | Result |
|---|---|---|---|
| GPQASource | 86% | 64.2% | GLM-5 leads |
| GPQA-DSource | 86.0% | — | Not comparable |
| SuperGPQASource | 66.8% | — | Not comparable |
| MMLU-ProSource | 85.7% | — | Not comparable |
| MMLU-Pro (Arcee)Source | 85.8% | — | Not comparable |
| HLESource | 50.4% | — | Not comparable |
| Artificial Analysis Intelligence IndexSource | 39.5% | 14.8% | GLM-5 leads |
| AA-GPQA DiamondSource | 82.0% | 66.4% | GLM-5 leads |
| AA-HLESource | 27.2% | 4.6% | GLM-5 leads |
| AA-Omniscience IndexSource | 2.0% | -50.1% | GLM-5 leads |
| AA-Omniscience AccuracySource | 26.9% | 17.5% | GLM-5 leads |
| AA-Omniscience Hallucination RateSource | 34.0% | 82.0% | GLM-5 leads |
| MMLUSource | — | 87.5% | Not comparable |
MathGLM-5 wins8 benchmarks
| Benchmark | GLM-5 | GPT-4.1 mini | Result |
|---|---|---|---|
| AIME26Source | 95.8% | — | Not comparable |
| AIME25 (Arcee)Source | 93.3% | — | Not comparable |
| HMMT Feb 2025Source | 97.5% | — | Not comparable |
| HMMT Nov 2025Source | 96.9% | — | Not comparable |
| HMMT Feb 2026Source | 86.4% | — | Not comparable |
| MMAnswerBenchSource | 82.5% | — | Not comparable |
| FrontierMath v2 (Tiers 1-3)Source | 16.434% | 4.483% | GLM-5 leads |
| FrontierMath v2 (Tier 4)Source | 2.100% | — | Not comparable |
Multilingual2 benchmarks
Multimodal2 benchmarks
Frequently Asked Questions (5)
Which is better, GLM-5 or GPT-4.1 mini?
GLM-5 is ahead on BenchLM's BenchAlign leaderboard, 65.29 to 43.1. The biggest single separator in this matchup is SWE-bench Verified, where the scores are 77.8% and 23.6%.
Which is better for knowledge tasks, GLM-5 or GPT-4.1 mini?
GLM-5 has the edge for knowledge tasks in this comparison, averaging 66.4 versus 64.2. Inside this category, AA-Omniscience Index is the benchmark that creates the most daylight between them.
Which is better for coding, GLM-5 or GPT-4.1 mini?
GLM-5 has the edge for coding in this comparison, averaging 66.3 versus 23.6. Inside this category, SWE-bench Verified is the benchmark that creates the most daylight between them.
Which is better for math, GLM-5 or GPT-4.1 mini?
GLM-5 has the edge for math in this comparison, averaging 56.3 versus 4.5. Inside this category, FrontierMath v2 (Tiers 1-3) is the benchmark that creates the most daylight between them.
Which is better for instruction following, GLM-5 or GPT-4.1 mini?
GLM-5 has the edge for instruction following in this comparison, averaging 92.6 versus 88.5. Inside this category, AA-IFBench is the benchmark that creates the most daylight between them.