GLM-5.4 SVG Drawing Test: 2 Hours and 24.59 Million Tokens in zcode

LINUX DO forum thread 3227580 documents a test of generating an SVG illustration with GLM-5.4. The original poster gave zcode a deeply nested Chinese prompt asking the model to draw, in SVG inside HTML, a scene containing more than a dozen elements. The whole run took about 2 hours, and the recorded token consumption was 24,591,275. Other replies in the thread ran the same prompt on Qwen4 Max, DeepSeek v4.1 Flash, and Gemini4 neon, and those results serve as a side-by-side reference.

Test Prompt

The original prompt is below. The elements are linked by layer upon layer of nested modifiers, with riding, carrying, chasing, and collision actions woven together:

在html中用svg画一个骑穿着中世纪铠甲的北极熊的普通夜鹭背着一个骑着黑色涂蜡的氧化的铜制自行车的橘色嘴巴里面刁了只大肥鱼的鹈鹕在梵高的发生了超新星爆发产生的陨石砸中了地面的一个脑袋上有只巨型竹节虫正在发射原子弹的恐龙的星空的背景下飞翔被后面的一个秦始皇站在一架挂载了霹雳12的f14的机翼上面在拿着被锯短的独头弹猎枪追逐时撞到了天上的一个悬空的上面瘫坐了个奥特曼的黄金椅子,画面尽量精美

An approximate English rendering: in HTML, use SVG to draw an ordinary night heron riding a polar bear in medieval armor, carrying on its back a pelican with an orange beak holding a big fat fish and riding a black waxed oxidized copper bicycle. The heron flies against a Van Gogh starry sky in which a supernova explosion produced a meteorite that struck a dinosaur on the ground, with a giant stick insect on the dinosaur’s head launching an atomic bomb. While being chased by Qin Shi Huang, who stands on the wing of an F-14 carrying PL-12 missiles and holds a sawed-off slug shotgun, it crashes into a golden chair floating in the sky with an Ultraman slumped on it. Make the image as refined as possible.

The prompt tests two things at once. The model has to break down long Chinese clauses and work out who rides whom and who carries whom. It also has to draw the dozen-plus resulting objects as SVG paths and arrange them in layers. Several replies said they could not understand the sentence, and one joked that even level-11 Chinese (「中文11级都理解不了」) was not enough to parse it.

Use Cases

  • Readers comparing the code generation ability of Chinese models such as GLM, Qwen, and DeepSeek who want to know the token cost of long tasks.
  • Readers running long agent tasks in AI coding tools such as zcode and Qoder who care about how cache hit rate affects cost.
  • Readers who want to generate illustrations with pure code (HTML + SVG) without calling an image generation model.

Prerequisites

The thread gives no zcode version, configuration file, or API parameters. The usage statistics only show the model identifier as bigmodel-api GLM-5.4. Reproducing the test requires three things: API quota that can call GLM-5.4, a coding client that supports multi-turn tool calls (the thread used zcode), and a browser that can open local HTML files. The specific client settings are not verified.

Reproduction Steps

The thread only describes the process and does not include any commands. Based on the thread, the process is roughly:

  • Select GLM-5.4 as the model in zcode.
  • Send the prompt above to the model unchanged and have it output an HTML file.
  • Wait for the model to finish its multi-turn iterations, then open the generated HTML in a browser to view the SVG result.

The screenshot of the final image posted by the original poster is 1920×1189 pixels and 647 KB. The thread does not publish the generated HTML source, so the size of the SVG code and the file size cannot be checked.

Token Usage

The original poster posted call statistics in a reply:

  • Model calls: 96
  • Total input: 26,653,539, of which 26,277,376 were cache hits (98.6%) and 376,163 were new input
  • Total output: 287,582
  • Maximum context in a single call: 394,230
  • Time span: 14:01 to 16:20, about 2 hours 19 minutes

From these figures, each call averaged about 278,000 input tokens and about 3,000 output tokens. New input was only 376,000 tokens, and the remaining 26.27 million input tokens were repeated context served from cache. The actual cost depends on how the platform discounts cache-hit tokens, and the thread does not state what this task cost.

Another reply gives a total of 24,591,275 tokens, which does not match the 26,941,121 obtained by adding input and output above. The thread does not explain how the two figures were counted, so they should be labeled separately when cited.

Results from Other Models

The following comparison results are all self-reported by the repliers. Model names, run times, and prices have not been checked:

  • Qwen4 Max at the highest effort setting ran in Qoder for about half an hour. Screenshot: 1391×1670.
  • DeepSeek v4.1 Flash took 22 minutes and cost 3 yuan. Screenshot: 1820×1698.
  • Qwen4-Max at default effort, labeled Dsh承载. Screenshot file name: starry-night-brawl-preview, size 1700×1250.
  • The Gemini4 neon result screenshot is 734×407.

DeepSeek v4.1 Flash is the only result in the replies that reports both run time and price. Its 22 minutes can be roughly compared with GLM-5.4’s 2 hours 19 minutes, but the thread does not say whether the two runs used the same number of iterations or the same tool.

Image Evaluation

Opinions in the replies on the GLM-5.4 output are mixed. Positive replies said the image looks good, and one wrote 「没蒸astra 有自己的风格了」 (roughly, it did not distill astra and now has its own style). The thread does not explain what this sentence means. A reply posted right after the Qwen4-Max default-effort screenshot said its style was not as good as GLM’s.

Negative comments focused on details. One reply pointed out that the characters’ facial features were unclear, another felt the background did not resemble the style of Van Gogh’s The Starry Night, and another suspected the riding relationship between the polar bear and the night heron was reversed. If the last point holds, the model did not correctly parse the nested relationships in the prompt.

One reply asked whether 5.4 now has vision (「5.4 这会有视觉了」). The thread does not answer whether GLM-5.4 supports image input or can check its own SVG output from screenshots. This is not verified.

Limitations and Caveats

  • The thread contains only screenshots, with no HTML source or zcode configuration, so the results cannot be directly reproduced and compared.
  • Each model ran in a different environment: GLM-5.4 in zcode, Qwen4 Max in Qoder, and the other replies did not name a tool. Run times and costs are therefore not strictly comparable.
  • The maximum context in a single call reached 394,230 tokens. If the context limit of the platform or plan in use is below this, the same task may be truncated partway through.
  • The thread does not cover GLM-5.4 pricing, plan quotas, or terms of use. Costs for long agent tasks need to be calculated using the billing rules of the reader’s own account.
  • The roughly 2 hours 19 minutes is the total duration of the agent’s multi-turn iterations and does not reflect how long the model takes to generate a single image.

Items to Test

  • Rerun the same prompt in zcode + GLM-5.4 and record whether the call count and cache hit rate come close to 96 calls and 98.6%.
  • Check how each of the two totals, 24,591,275 and 26,941,121, was counted.
  • Calculate the actual cost of this task on a personal account and compare it with the 3 yuan reported for DeepSeek v4.1 Flash.
  • Check the generated HTML file size and SVG element count, and confirm whether the riding relationship between the polar bear and the night heron is correct.
  • Test whether GLM-5.4 can read a browser screenshot and revise the SVG based on it.

Source

Share Telegram X

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *