Back to Blog
EnglishComparison

GLM-5.4 vs. DeepSeek V4.1 Flash: Chinese Tasks and Strict JSON

Across 10 types of everyday tasks in Chinese, with three runs per task, GLM-5.4 got 25/25 shared objective answers right versus DeepSeek’s 21/25. DeepSeek was more reliable at strict JSON output. Here’s how they compared on accuracy, formatting, availability, and latency.

B
Brian J
November 24, 2026 / 2 views
Share:
GLM-5.4 vs. DeepSeek V4.1 Flash: Chinese Tasks and Strict JSON

By Brian J · Test date: November 24, 2026

Does order B still count as a valid order if it received 80 yuan and then had the full 80 yuan refunded? The prompt explicitly says it does not. In one run, DeepSeek V4.1 Flash calculated total revenue correctly but still included B in the list of valid orders. GLM-5.4 got it right in all three runs. But ask a different question—whose response can go straight to a JSON parser?—and DeepSeek comes out ahead.

Same tasks, two different winners#

Crazyrouter gave both models the same prompts across 10 types of everyday tasks in Chinese, with three runs per task. Start with the fairest comparison: across the 25 objective task runs both models answered, GLM got 25 right and DeepSeek got 21. This measures answer content, not whether the model wrapped its JSON in Markdown.

What we measuredGLM-5.4DeepSeek V4.1 Flash
Shared objective tasks, correct answers25/2521/25
All valid objective answers from each model, correct25/2523/27
Explicit JSON requests, raw output directly parseable3/1916/21
Chinese customer notices meeting both factual and length requirements3/30/3
Tasks completed on the first attempt25/3029/30
Tasks completed after one retry for failed runs28/3030/30
Median completion time for successful tasks4.28 seconds5.24 seconds

Content accuracy on nine types of objective tasks; denominators are the number of answers each model actually returned

Four content errors came down to three business judgments#

Refunds: getting the total right doesn’t mean the ledger is right. The correct answer was net revenue of 167.50 yuan, with orders A and D as the two valid orders. In one run, DeepSeek also returned 167.50 yuan, but listed A, B, and D. A downstream check that verifies only the total would miss the extra order.

Rule lookup: finding the maximum isn’t enough—you must return all and only the tied rules. Among 180 rules, both models found the maximum value of 117 days. The matching rules were R087 and R177. In two runs, DeepSeek also listed R117 and R147; GLM returned the correct set in all three runs.

Support tickets: the reporter’s identity doesn’t determine the scope of an outage. A free-tier user reported that “all users are unable to log in.” The rules classify an issue affecting everyone as P1, but DeepSeek labeled it P2 in one run. Other tasks showed no difference: both models passed all three runs for meeting notes, cross-time-zone scheduling, and merging Python half-open intervals.

Writing for customers and writing for software are different tasks#

The customer notice prompt required 80–120 Chinese characters and asked the model to preserve the impact window, the slowdown affecting some requests, the fact that service had been restored, and a progress update by 18:00 that day. Both models included all those facts, and neither promised compensation. GLM’s three notices were 100, 98, and 90 characters; DeepSeek’s were 71, 68, and 72. DeepSeek fell short of the minimum length, not on the underlying facts. If your use case calls only for a brief notice, with no minimum length, there’s no reason to mark it down here.

Software is less forgiving about formatting. Content scoring allowed us to strip code fences before checking fields and values; format scoring parsed the raw response as-is. Among successful responses to prompts explicitly requesting pure JSON, DeepSeek returned 16/21 responses that could be parsed directly, compared with 3/19 for GLM. The test did not use JSON Schema or enforce JSON mode, so these results should not be extrapolated to applications that enable those features.

Strict JSON passes and median end-to-end latency for successful tasks

Which model to choose—and what this test didn’t cover#

For checking orders, applying multiple Chinese-language rules, and drafting notices with hard requirements, GLM-5.4 was the pick in this test. For raw JSON that can be parsed without extra text cleanup, DeepSeek V4.1 Flash was the pick. Even in the latter case, validate the business conditions—for example, whether every order in the list actually has a net amount greater than zero. Valid JSON is not necessarily a correct answer.

Both models used the same chat interface, with a fixed service route for each. They received the same system instructions, had an output limit of 2,048 token, were asked not to think, and had no temperature specified. Tool tasks first called a read-only simulated order lookup, then answered based on its results, so 60 task runs did not mean 60 API requests. GLM still had one field-extraction run and one tool-lookup run that failed to return an answer because of rate limits. These were not content errors, but they were incomplete tasks.

Latency includes network and upstream service time, but not the wait before a retry after a failure. The test did not include an itemized cost audit, large codebases, multimodal tasks, or long-running agent workflows. GLM-5.4 led this sample of everyday tasks in Chinese; that does not establish it as the top model across all Chinese models.

Testing and data review were performed by an AI execution agent; Brian J is credited as the article editor.

Implementation Guides

Podcast

AI Dev Tools: The Crazyrouter Podcast

Short episodes for developers on AI APIs, gateways, cost control and coding tools.

Latest episodes

  • EP196 · Oct 29, 2026 · 6:53

    AI API Security Posture — Turn Controls Into Continuous Evidence

    A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.

  • EP195 · Oct 28, 2026 · 7:21

    AI API Policy Drift — Detect When Production Rules Stop Matching Intent

    A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.

Episodes with written show notes →

Topics

ComparisonsComparison

Related Articles

Kimi K3 vs GPT-5.6-SOL: High-Difficulty Tests in Math, Physics, and ProgrammingComparison

Kimi K3 vs GPT-5.6-SOL: High-Difficulty Tests in Math, Physics, and Programming

Using the same OpenAI-compatible API and the same prompt, we test kimi-k3 and gpt-5.6-sol on mode-stopping time, a physics problem with a pulley and moment of inertia, and a Python programming task involving dependent closures, recording correctness, truncation, latency, and local code verification.

Jul 17
gpt-6-astra vs Claude Fable 5.1: 60% Fewer Output Characters — But Part of That Is Answering LessComparison

gpt-6-astra vs Claude Fable 5.1: 60% Fewer Output Characters — But Part of That Is Answering Less

29 graded items, real API calls. claude-fable-5-1 scored 29/29, gpt-6-astra 16/29. astra emits 0.38-0.77x the output characters, but much of that gap is incompleteness rather than concision — on a three-way tie it named one answer in 5 of 6 runs, and 2 of those named a rule that is factually wrong. On a planted false premise it went along with the premise 5 times out of 6. Includes the three preconditions for valid cross-family comparison.

Sep 5
GPT-4.1 Mini vs Qwen3 VL Plus Vision API Benchmark 2026: User-Centric Image Understanding ComparisonComparison

GPT-4.1 Mini vs Qwen3 VL Plus Vision API Benchmark 2026: User-Centric Image Understanding Comparison

A practical, user-centric benchmark comparing gpt-4.1-mini and qwen3-vl-plus for vision API workloads: real image recognition accuracy, latency, tail latency, cost per successful image, usage signals, failure modes, and production routing advice.

Jun 22
Claude Sonnet 5 vs GPT-5.4: API Behavior, JSON Output, and Production Routing TestedComparison

Claude Sonnet 5 vs GPT-5.4: API Behavior, JSON Output, and Production Routing Tested

A production-focused Claude Sonnet 5 vs GPT-5.4 comparison using live Crazyrouter API evidence from July 2, 2026, including model availability, response IDs, JSON output behavior, token usage, and routing advice.

Jul 2
GPT-6.2 Sol vs. GPT-6 Sol: Is Better Accuracy Worth the Extra Cost? 32 Test RunsComparison

GPT-6.2 Sol vs. GPT-6 Sol: Is Better Accuracy Worth the Extra Cost? 32 Test Runs

32 same-route tests: GPT-6.2 Sol 16/16, GPT-6 Sol 13/16. Three failures, per-task latency, discounts, actual charges, and reasoning_effort migration.

Nov 20
Open Source vs Commercial AI Models 2026: Which Should You Use?Comparison

Open Source vs Commercial AI Models 2026: Which Should You Use?

Comprehensive comparison of open source and commercial AI models in 2026. Covers performance, cost, privacy, deployment options, and when to choose each approach.

Feb 20