Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

GLM-5.1 vs GPT-4o mini

Z.ai · released

Wins 5 of 5 areas

Coding · Agents · Reasoning · Facts · Following instructions

OpenAI · released

Wins 0 of 5 areas

—

GLM-5.1 is the stronger all-rounder.GPT-4o mini is cheaper.

Scores updated · 12 tests both models report · How we compare

Where each one wins

Tests won in each of the five areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Facts and following instructions rest on a single test each.

What it costs

Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.

GLM-5.1$1.38 to read · $4.40 to write$5.78Price from Artificial Analysis
GPT-4o mini$0.15 to read · $0.60 to write$0.75Price from Artificial Analysis

GPT-4o mini costs 87% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where GLM-5.1 pulls ahead

  • Fixes real GitHub issues in Python projectsSWE-bench Verified+67.5points aheadGLM-5.176.2GPT-4o mini8.7
  • Command-line tasks in a real terminalTerminal-Bench 2.1+56.2points aheadGLM-5.161.8GPT-4o mini5.6
  • Follows unfamiliar, precisely checkable instructionsIFBench+45.3points aheadGLM-5.176.3GPT-4o mini31

Where GPT-4o mini pulls ahead

No clear win on a test scored out of 100.

Every test, side by side

All 12 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingGLM-5.1

Full coding ranking

AgentsGLM-5.1

Full agents ranking

ReasoningGLM-5.1

Full reasoning ranking

FactsGLM-5.1

Full facts ranking

Following instructionsGLM-5.1

Full following instructions ranking

Other results3 tests, not counted

Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.

Questions people ask

Which is better, GLM-5.1 or GPT-4o mini?

GLM-5.1 wins all five areas where both have results: coding, agents, reasoning, facts and following instructions. GPT-4o mini wins none, but costs 87% less.

Which is better for coding?

GLM-5.1. It wins 3 of the 3 coding tests both models report; GPT-4o mini wins none.

Which is cheaper?

GLM-5.1 costs $1.38 per million input tokens and $4.40 per million output tokens; GPT-4o mini costs $0.15 and $0.60. That makes GPT-4o mini about 87% cheaper for the same work.

How do you compare the two?

We use the 12 benchmark tests both models have published scores on. The verdict counts the 9 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 3 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.