Login
Back to Blog
Tiếng ViệtComparison

GLM-5.2 vs Claude Fable 5: ngân sách đầu ra, reasoning_tokens và mức discount 0.8

Bài kiểm thử thực tế qua Crazyrouter OpenAI-compatible API, so sánh glm-5.2 và claude-fable-5 trên bài toán toán học, vật lý và HTML Canvas animation, kèm ghi chú về discount 0.8 hiện tại của glm-5.2.

C
Crazyrouter Team
July 6, 2026 / 86 views
Share:
GLM-5.2 vs Claude Fable 5: ngân sách đầu ra, reasoning_tokens và mức discount 0.8

GLM-5.2 vs Claude Fable 5: khác biệt lớn nằm ở ngân sách đầu ra#

Đây không phải là một bảng xếp hạng mô hình chung chung. Trong lần gọi API thực tế này, GLM-5.2 giải đúng các bài suy luận sau khi tăng ngân sách đầu ra, nhưng ở ngân sách thấp phần nội dung nhìn thấy có thể rỗng. Claude Fable 5 ổn định hơn với ngân sách thấp và tốt hơn trong bài tạo HTML animation dài.

GLM-5.2 vs Claude Fable 5 benchmark

Vì sao bài test này đáng chú ý#

The test used the Crazyrouter OpenAI-compatible API rather than a chat UI. That matters because the result was not judged only by prose quality. Each response was checked with operational metadata:

text
Base URL: https://cn.crazyrouter.com/v1
Endpoint: POST /v1/chat/completions
Models: glm-5.2, claude-fable-5
temperature: 0.2
Test date: 2026-07-06

The important fields were max_tokens, completion_tokens, reasoning_tokens, finish_reason, visible content length, whether the generated HTML was closed, and whether the animation actually moved in a browser.

Thiết kế bài test#

The benchmark deliberately mixed three task types:

TaskPurposeReference result
MATH-003State-based expectation reasoningExpected flips until HH = 6
PHYS-003Momentum plus energy accountingV = 3.0 m/s, x ≈ 0.148 m
CODE-003-ANIMLong runnable artifact generationComplete 800x500 Canvas animation HTML

The first two tasks measured reasoning. The third task measured whether a model can produce a complete artifact, not merely a convincing partial code block.

Kết quả quan sát#

Taskglm-5.2claude-fable-5
Math, original budgetfinish_reason=length, completion_tokens=1601, reasoning_tokens=1600, visible body emptyfinish_reason=stop, complete and correct
Math, retestCorrect after max_tokens=3200Retest not needed
Physics, original budgetfinish_reason=length, visible body emptyComplete and correct
Physics, retestCorrect after max_tokens=8000Retest not needed
Animation, original budgetEmpty visible HTML at max_tokens=3200Partial HTML, truncated
Animation, retestStill truncated at max_tokens=8000Complete HTML; browser validation passed

The most important observation is that GLM-5.2 was not failing the reasoning itself. In the math and physics tasks, it produced correct answers after a larger output budget. The problem was visibility and completion: a request could return HTTP 200 while the user-facing content was empty or incomplete.

For the long Canvas animation, the difference was sharper. GLM-5.2 produced a visible HTML fragment at max_tokens=8000, but it stopped inside JavaScript and did not close the file. Claude Fable 5 completed the HTML at max_tokens=8000; browser validation showed no console errors, an 800x500 canvas, controls, a speed slider, and changedPixels=55090 after 700 ms.

Góc nhìn chi phí#

Tại thời điểm viết bài, pricing API của Crazyrouter trả về discount: 0.8 cho glm-5.2. Vì vậy GLM-5.2 có lợi thế chi phí rõ ràng nếu bạn theo dõi kỹ reasoning_tokens, finish_reason và đặt max_tokens phù hợp.

This is the practical tradeoff:

WorkloadBetter fit from this test
Short reasoning with enough output budgetGLM-5.2 can be a cost-effective option
Low-budget reasoning responsesClaude Fable 5 was steadier
Long single-file code generationClaude Fable 5 was stronger in this run
Batch evaluations where metadata is loggedGLM-5.2 becomes easier to operate safely

Do not treat the 0.8 multiplier as a permanent universal price. It is a pricing-data snapshot from Crazyrouter at publication time and should be checked again before a large deployment.

Ghi chú tích hợp#

Minimal request:

bash
curl https://cn.crazyrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [
      {
        "role": "user",
        "content": "Solve the HH expected-flips problem with state equations."
      }
    ],
    "temperature": 0.2,
    "max_tokens": 3200
  }'

To compare Claude Fable 5, keep the same payload and change only the model:

json
{
  "model": "claude-fable-5"
}

For production-style evaluations, log this shape for every request:

json
{
  "model": "glm-5.2",
  "max_tokens": 3200,
  "finish_reason": "length",
  "completion_tokens": 3200,
  "reasoning_tokens": 3178,
  "visible_content_chars": 0,
  "html_closed": false,
  "browser_validation": "not_run_incomplete_html"
}

API endpoints should stay clean. Do not add UTM parameters to https://cn.crazyrouter.com/v1. Use tracking only on human-facing article or registration links.

Bạn có thể chạy cùng kiểu request OpenAI-compatible trên Crazyrouter để so sánh hai mô hình bằng prompt thật của mình.

https://crazyrouter.com/register?utm_source=crazyrouter_blog&utm_medium=article&utm_campaign=glm52_fable5_budget_cost_20260706&utm_content=crazyrouter_blog_glm-52-vs-claude-fable-5-output-budget-cost-vi_20260706__bottom&utm_term=glm-5.2+claude+fable+5+benchmark

FAQ#

Did GLM-5.2 fail the reasoning tasks?#

No. In this run, GLM-5.2 solved the math task after max_tokens=3200 and the physics task after max_tokens=8000. The issue was that lower budgets were consumed mostly by reasoning tokens before visible content appeared.

Why not score HTTP 200 as success?#

Because HTTP 200 only means the API call returned. A benchmark answer can still be unusable if finish_reason=length, visible content is empty, or generated code is incomplete.

Why was the animation task included?#

Long code generation exposes a different failure mode. A model can write a convincing first half of a file and still fail if the HTML or JavaScript is cut off.

Is GLM-5.2 still worth testing?#

Yes. The current 0.8 discount multiplier makes it attractive for workloads where you can allocate enough output budget and monitor response metadata.

What should be recorded in future comparisons?#

At minimum: max_tokens, completion_tokens, reasoning_tokens, finish_reason, visible output length, artifact completeness, and runtime validation.

Final verdict#

Kết luận thực tế: GLM-5.2 hấp dẫn về chi phí và có thể suy luận tốt, nhưng cần kiểm soát ngân sách đầu ra. Claude Fable 5 ổn định hơn cho câu trả lời ngắn và file HTML hoàn chỉnh trong lần thử này.

Implementation Guides

Topics

Comparison

Related Posts

Kimi K3 so với GPT-5.6-SOL: Thử nghiệm độ khó cao về toán, vật lý và lập trìnhComparison

Kimi K3 so với GPT-5.6-SOL: Thử nghiệm độ khó cao về toán, vật lý và lập trình

Trong cùng một API tương thích OpenAI và cùng một prompt, tiến hành kiểm tra kimi-k3 và gpt-5.6-sol với các bài toán về thời gian dừng ở chế độ, vật lý có mô-men quán tính của ròng rọc và bài lập trình Python dùng closure lồng nhau, đồng thời ghi nhận độ chính xác, hiện tượng cắt ngắn, độ trễ và xác thực mã cục bộ.

Jul 18
Kimi K3 so với Claude Fable 5: mô hình nào phù hợp hơn cho tác vụ cần kiểm chứng?Comparison

Kimi K3 so với Claude Fable 5: mô hình nào phù hợp hơn cho tác vụ cần kiểm chứng?

Bài kiểm thử API thực tế trên toán học, vật lý, Python chạy được và suy luận ràng buộc, đồng thời đo finish_reason, reasoning tokens và độ trễ.

Jul 17
Kimi K3 so với Claude Opus 4.8: Thử nghiệm thực tế về toán, vật lý và lập trình cấp độ sau đại họcComparison

Kimi K3 so với Claude Opus 4.8: Thử nghiệm thực tế về toán, vật lý và lập trình cấp độ sau đại học

Trên cùng một Crazyrouter OpenAI-compatible API, so sánh kimi-k3 và claude-opus-4-8 bằng các bài toán cấp độ sau đại học về thời gian chạm đầu tiên của chuỗi Markov, phổ đáp ứng của dao động tử ghép có suy giảm và thuật toán lập lịch phụ thuộc, đồng thời ghi lại độ đầy đủ của đầu ra, độ chính xác, độ trễ và kết quả thẩm định độc lập.

Jul 19
Kimi K3 đã đạt tới mức Claude Opus 4.8 chưa? Thử nghiệm API qua 7 chiềuComparison

Kimi K3 đã đạt tới mức Claude Opus 4.8 chưa? Thử nghiệm API qua 7 chiều

So sánh Kimi K3 và Claude Opus 4.8 qua bảy chiều: toán học chính xác, mô hình hóa vật lý, suy luận ràng buộc, chống dẫn dụ thống kê, rà soát mã, JSON nghiêm ngặt và hiệu chuẩn độ bất định; tập trung vào độ đúng, câu trả lời hiển thị đầu tiên, tổng độ trễ và hiệu quả reasoning token.

Jul 19
Cổng API AI Tốt Nhất Cho Nhà Phát Triển Năm 2026: 9 Nền Tảng Được Kiểm TraComparison

Cổng API AI Tốt Nhất Cho Nhà Phát Triển Năm 2026: 9 Nền Tảng Được Kiểm Tra

Chúng tôi đã kiểm tra 9 cổng API AI về phạm vi mô hình, giá cả, hỗ trợ đa phương tiện và trải nghiệm nhà phát triển.

Mar 27
Clawdbot trong Chưa Đầy 2 Phút (HOSTING 24/7 MIỄN PHÍ)

Clawdbot trong Chưa Đầy 2 Phút (HOSTING 24/7 MIỄN PHÍ)

Tìm hiểu cách triển khai Clawdbot (Claude.bot) trong chưa đầy hai phút với hosting 24/7 miễn phí trên AWS. Hướng dẫn này chỉ cho bạn cách thiết lập, tích hợp kênh (WhatsApp, Discord, Telegram), kỹ năng như tìm kiếm web Exa, và các trường hợp sử dụng thực tế như trợ lý mua sắm thông qua kính thông minh Meta Ray-Ban.

Jan 26