⚡ New — Kimi K3 is live: bring your own Moonshot key →

← Blog

Can a GLM consensus replace a frontier model?

"Open models are cheaper" is easy to say. So we measured it — openGLM (single and Sangam consensus) againstClaude Opus 4.8 and GPT-5.5 on quality, costand speed. 14 coding tasks, scored by running the code,100 runs each (1,400 results per system) with Wilson 95% confidence intervals. The twist: served on Baseten, GLM isfaster than the frontier and a fraction of the price — at parity accuracy. Every script, price and raw result ison GitHub — re-run it yourself.

Benchmark scoreboard: GLM-5.2 and GLM-4.7 on Baseten match Opus 4.8 and GPT-5.5 on accuracy (99–100%) while running faster (~1.4s vs ~2.8s) at roughly one-tenth the cost per task.

How we scored it (no vibes)

Each task ships with assert-based tests. A run "passes" only if the model's code passes every assert in a fresh subprocess — accuracy is real correctness, not a judge's opinion. 8 standard tasks (is_prime, binary_search,roman_to_int…) plus 6 hard ones (edit_distance,regex_match, min_window, trap…), 100 runs each — 1,400 results per system. We report a Wilson 95% confidence interval on every accuracy, and exclude infrastructure errors (a provider 429 is not a model mistake) from the denominator. Cost comes from a dated, sourcedprice sheet (FX ₹96/$), computed from the real measured tokens. Each model runs on the host it's meantto run on — GLM on Baseten, the fast first-party GLM host.

Frontier tier — can open GLM keep up?

SystemAccuracy (95% CI)std / hard₹ / taskLatency
Claude Opus 4.8100%
[99.7–100]
100 / 100₹0.3952.9s
GPT-5.5100%
[99.7–100]
100 / 100₹0.4402.5s
GLM-4.7 open · Baseten99.9%
[99.5–100]
98 / 98₹0.0331.5s
GLM-5.2 open · Baseten99.4%
[98.9–99.7]
100 / 99₹0.0551.4s
GLM-Sangam consensus · N=14097.1%
[92.9–98.9]
98 / 97₹0.1436.2s

Three findings, all in the numbers above:

Where does Sangam fit? The GLM consensus held 97.1% — a touch behind a single fast GLM here, and its value isn't raw speed or price but robustness: a panel plus a verifier so one bad draft doesn't sink the answer. (N=140 so far — we're topping it to 1,400; the interval will tighten.)

Budget tier — the cheap-and-good frontier

SystemAccuracy (95% CI)std / hard₹ / taskLatency
gpt-oss-120B open · Baseten99.6%
[99.1–99.8]
98 / 99₹0.0145.7s
GPT-5.4-nano99.8%
[99.4–99.9]
100 / 100₹0.0182.0s
GPT-5.4-mini100%
[99.7–100]
100 / 100₹0.0521.6s
GLM-4.7-flash open · N=14099.3%
[96.1–99.9]
100 / 98₹0.04917.8s
GLM-4.5-air open98.5%
[94.8–99.6]
100 / 92₹0.09516.7s
Open-Sangam consensus · N=70099.3%
[98.3–99.7]
100 / 98₹0.91811.0s
Claude Sonnet 4.6100%
[99.7–100]
100 / 100₹0.3183.9s
Claude Haiku 4.583.4%
[81.4–85.3]
98 / 64₹0.2243.6s
Nemotron-Super open · Baseten75.8%
[73.5–78.0]
73 / 79₹0.0231.8s

Field notes: what we hit, and how we handled it

A real benchmark has real hiccups — worth telling, because how you handle them isthe product. Running the GLM legs at concurrency, Zhipu's free tier started returningHTTP 429 · "Rate limit reached" — a single host capping requests per minute.

The production answer is exactly whatthe host showdown is about: don't lean on one host — put a failover chain behind one model id and let BharatRouter's circuit-breaker roll a rate-limited host over to the next:

{
  "model": "glm-4.7",
  "fallbacks": [
    { "model": "glm-4.7", "provider": "baseten" },
    { "model": "glm-4.7", "provider": "zhipu" },
    { "model": "glm-4.7", "provider": "openrouter" }
  ]
}

For clean per-system numbers we instead pinned each host and added backoff (we want to measure hosts in isolation, not the router). But in a live agent, the 429 never reaches your users — the breaker handles it. The incident is the argument for routing.

So — should you switch?

The headline isn't "open beats frontier" or the reverse — it's that on the right host theaccuracy gap closes, the price gap stays an order of magnitude, and GLM even wins on speed. The right answer is workload-specific — which is the whole point of a gateway: route per request, measure, and switch without a rewrite. These are interim results on 14 tasks; a broader benchmark is coming.

Reproduce it: scripts, dated prices and raw results →github.com/bharatrouter/cookbook → ·  Start here: Zero to a GLM coding agent ·  The host showdown

Go live in a few clicks. Install a governed GLM coding agent in one command — Codex- or Claude-Code-style, routed & metered through your own key.BharatRouter Code →
Was this helpful?