GLM-5.4 vs. other models
The answer will appear here
Choose models and send one question below.The answer will appear here
Choose models and send one question below.Model capabilities and task selection
The comparison starts with GLM-5.4 and the standard GLM-5.3. Sending requires access to glm-5.3 on your account. For screenshot-to-interface work, check that the selected route accepts the image. For a renderer built from a written storyboard, all four routes can take the same text. The limits below belong to the QVeris routes. The last column proposes a task for each.
| Model | Gateway input | Context | Max output | Task to try |
|---|---|---|---|---|
| GLM-5.4 | Text | 1,000,000 | 128,000 | Convert shot lists into timelines or revise code. Use the native API for source images. |
| Gemini 4 Carbon | Image, text | 1,048,576 | 943,718 | Pair a reference image with a long spec and check whether the plan preserves visual constraints. |
| Qwen4-Max | Image, text | 1,000,000 | 262,144 | Turn a UI screenshot into a component inventory and check positions and missing states. |
| GPT-6.2 Sol | Image, text | 1,050,000 | 128,000 | Use one job log to compare code revisions, tool selection and error recovery. |
QVeris model parameters
| GLM-5.4 route field | Published value |
|---|---|
| Model ID / provider | glm-5.4 / zhipu |
| Input → output | Text → text, with streaming chat |
| Supported operations | chat.completions · messages · responses |
| Context / maximum output | 1,000,000 / 128,000 Token |
The native model also accepts images, videos and files. For a visual comparison, choose an endpoint that publishes support for the same input type on each candidate, and record the route name. QVeris · GLM-5.4 BigModel GLM-5.4 specification
Connecting to the QVeris Model Gateway
Use a server-side QVeris API key with https://aigateway.qveris.ai/v1. Check the model ID available to your account with GET /v1/models. The example sends a text storyboard through the OpenAI-compatible Chat Completions interface. QVeris Model Gateway documentation
curl -sS https://aigateway.qveris.ai/v1/chat/completions \
-H "Authorization: Bearer $QVERIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.4",
"messages": [{"role": "user", "content": "Split 12 seconds into 3 equal shots at 24 fps. Give half-open frame ranges."}],
"max_tokens": 1024
}' The three expected frame ranges are [0, 96), [96, 192) and [192, 288). Save the X-QVeris-Call-ID header and actual usage to reconcile Credits. For streaming, read the qveris.billing event. Native endpoints use their own account credentials and billing. QVeris · GLM-5.4
API pricing and cost per request
All rates are per million tokens. Each example assumes one successful request with 10,000 uncached input tokens, 2,000 billed output tokens and no additional tools. Multiply the input rate by 0.01 and the output rate by 0.002, then add the two charges.
| QVeris route | Uncached input | Cache hit | Output | Example (Credits) |
|---|---|---|---|---|
| GLM-5.4 | 583.333333 | 145.833333 | 2,041.666667 | ≈ 9.9167 |
| Qwen4-Max | 741.825 | 37.09125 | 2,226 | 11.87025 |
| Gemini 4 Carbon | 1,050 | 52.5 | 5,250 | 21 |
| GPT-6.2 Sol < 272K | 1,050 | 52.5 | 5,250 | 21 |
| GPT-6.2 Sol ≥ 272K | 2,100 | 105 | 7,875 | Outside example tier |
All gateway rates above are in Credits. GPT-6.2 Sol changes tiers at 272,000 total input tokens. Both sides of a comparison are billed separately. With the sample usage on each side, GLM-5.4 plus Gemini 4 Carbon comes to about 30.9167 Credits. QVeris · GPT-6.2 Sol
Native BigModel and Z.ai API pricing
| Platform / currency | Uncached input | Cache hit | Output | Example cost |
|---|---|---|---|---|
| BigModel pricing in CNY | ¥8 | ¥2 | ¥28 | ¥0.136 |
| Z.ai pricing in USD | $1.40 | $0.26 | $4.40 | $0.0228 |
If 8,000 of those input tokens hit the cache on BigModel, the same request costs 0.002 × 8 + 0.008 × 2 + 0.002 × 28 = CNY 0.088, a saving of CNY 0.048. Both native price lists currently waive cache storage fees for a limited time. Cache hits carry the listed input rate. BigModel pricing in CNY Z.ai pricing in USD
GLM-5.4 strengths and use cases
GLM-5.4 uses a Loop Transformer. A block of 28 base-model layers runs twice with shared weights, giving the second pass a chance to refine the first representation. For iterative coding work, track whether the model still honors the original constraints after each tool result. Zhipu release notes and creator cases
Native multimodal inputs and tool use
For a reference-image implementation, put text instructions and an image_url block in messages[].content[] on the native API. Ask for measurable layout constraints before generating code. The application executes tools, runs the code and exports the resulting video, 3D scene or design file. Z.ai GLM-5.4 developer guide
Choosing a reasoning effort
The native API keeps thinking enabled and offers low, high and max through reasoning_effort, with max as the default. Compare low and max on a timing problem with a known answer, then on a multi-turn code revision. Record the first complete answer, time and actual bill to decide whether extra deliberation reduces rework. BigModel migration settings
GLM-5.4 evaluations and real projects
What did the official evaluation cover?
Zhipu reports strong visual coding, interface reproduction and long-horizon work in an internal evaluation across 200 real coding scenarios. A separate experiment compared 30B variants. Average output length on GPQA and MMLU-Pro fell 10–14% in that experiment. The percentage applies to the 30B study and does not predict a production API bill. Zhipu release notes and creator cases
From shots and shaders to 3D animation
| Published project | What the model and tools did | What to inspect |
|---|---|---|
| Mike Luan · Hello world | Frontend code draws the visuals. An external music model generates music from iterated scene prompts. | Inspect visual rendering and audio generation separately, then check cuts against the beat. |
| Yesen Midnight’s interactive long-tailed tit | The creator built the bird with geometry and GLSL shaders and published an interactive browser scene. | Open the original to inspect the silhouette, feather layers and blinking motion. |
| Six-axis robotic arm animation | The official showcase uses FreeCAD for modeling and Blender for motion, then combines audio and visuals. | Inspect joint axes, motion continuity and grasp timing in the digital simulation. |
Zhipu documents all three projects. The long-tailed tit entry also links directly to the creator’s interactive work. Zhipu release notes and creator cases Yesen Midnight’s interactive long-tailed tit
How to check the five comparison tasks
The comparison box contains five original text tasks. Use the expected checks below when recording a new run. They are answer keys for the exercises.
| Task | Acceptance check |
|---|---|
| Turn a storyboard into frame ranges | The boundaries are 0, 48, 204 and 288. Frame 287 is the last frame. |
| Check a responsive card layout | At 960px the cards are 284px wide and start at 36, 338 and 640px. At 390px each card is 318px wide and starts at 36px. |
| Correct a virtual turntable pivot | A ends at (2,2,0) and B at (0,1,1). Subtract the pivot, rotate, then add the pivot back. |
| Recover a render from its job log | The next call is export(J7). Poll while running, record failures, and export only a completed job. |
| Reconcile a cached conversation bill | The charges are CNY 0.016, 0.016 and 0.056. Total CNY 0.088, savings CNY 0.048. |
GLM-5.4 usage guide and FAQ
Output budgets and context limits
The 1M context is a shared window, and 128K is the output ceiling for one request. Budget for instructions, history, tool definitions and attachments before reserving space for reasoning and the answer. On the QVeris route, 950,000 input tokens leave at most about 50,000 tokens in the window. For long scripts, generate and validate one scene at a time. QVeris · GLM-5.4
How do I send a reference image to the native API?
Use this JSON body with the native Chat Completions API and replace the example URL with a reference image the service can fetch. Use one image_url block per image. Save the returned text as implementation notes or code. BigModel GLM-5.4 specification
{
"model": "glm-5.4",
"messages": [{"role": "user", "content": [
{"type": "text", "text": "List the visible UI components and their relative positions."},
{"type": "image_url", "image_url": {"url": "https://example.com/reference.png"}}
]}],
"thinking": {"type": "enabled", "clear_thinking": false},
"reasoning_effort": "high",
"max_tokens": 4096
}When are streamed tool arguments ready to execute?
Enable both stream and tool_stream on the native API. Accumulate argument fragments by tool-call index. Once complete, parse the JSON, validate the tool and fields, execute it, and return the result in the conversation so the model can revise its next step. BigModel migration settings
How does the Coding Plan quota relate to API cost?
The Coding Plan has subscription quotas. The documented 1.5× figure compares GLM-5.4 with GLM-5.3 for users on weekly-quota plans. For standalone API work, use the token prices on the target platform together with actual cache hits and billed output. Z.ai GLM-5.4 developer guide
Official documentation and further reading
- BigModel GLM-5.4 specification
- Z.ai GLM-5.4 developer guide
- Z.ai Model API platform
- BigModel migration settings
- BigModel pricing in CNY
- Z.ai pricing in USD
- Zhipu release notes and creator cases
- Yesen Midnight’s interactive long-tailed tit
- QVeris Model Gateway documentation
- QVeris · GLM-5.4
- QVeris · Gemini 4 Carbon
- QVeris · Qwen4-Max
- QVeris · GPT-6.2 Sol
