pick GLM-5.4 if
- need Z.ai file input and structured output
model comparison
Zhipu AI against MiniMax, compared on listed price, real workload cost, context and capabilities.
MiniMax documents a longer maximum output for M4 than Z.ai lists for GLM-5.4. both accept image and video input; GLM-5.4 also documents file input and structured output support.
checked 2026-12-05. sources: MiniMax chat completion API,Z.ai docs: GLM-5.4
| spec | GLM-5.4 | MiniMax M4 |
|---|---|---|
| provider | Zhipu AI | MiniMax |
| input price | $1.4/M | $0.8/M |
| output price | $4.4/M | $3.1/M |
| cached input | $0.26/M | $0.05/M |
| blended price (3:1) | $2.15/M | $1.375/M |
| context window | 1M tokens | 1M tokens |
| max output | 128k tokens | 262.144k tokens |
| input | text, images, video | text, images, video |
| structured output | yes | no |
| weights | closed | closed |
| released | November 23, 2026 | December 3, 2026 |
| workload | GLM-5.4 | MiniMax M4 |
|---|---|---|
| one chat reply3,000 tokens in, 500 outGLM-5.4 costs 1.6× as much as MiniMax M4 | $0.0064 | $0.004 |
| summarise a 100-page report50,000 tokens in, 1,500 out, one requestGLM-5.4 costs 1.7× as much as MiniMax M4 | $0.08 | $0.04 |
| 1,000 classification calls500 tokens in, 20 out, per call | $0.79 | $0.46 |
| coding-agent session2M tokens in across ~60 turns, 60,000 out, no cache | $3.06 | $1.79 |
| same session, cached85% of input read from the prompt cache, the rest written to itGLM-5.4 costs 2.2× as much as MiniMax M4 | $1.13 | $0.51 |
at listed rates. token counts are typical sizes, not measurements.
GLM-5.4 is Z.ai's flagship and its first model built on a Loop Transformer, which runs 28 layers of the GLM-5 base twice. it reads video, images, text and files across a 1M-token context.
MiniMax M4 is a multimodal mixture-of-experts model for coding and agent work, with 2.74T total parameters and 66B active per token. weights are planned for release after safety evaluations and are not downloadable yet.
MiniMax M4 lists lower input and output prices. on a coding-agent session (2M tokens in, 60,000 out) GLM-5.4 costs $3.06 and MiniMax M4 $1.79.
yes. in an octomind session, /model octohub:glm-5.4 and /model octohub:minimax-m4 switch models without losing the conversation, so you can draft on one and review on the other.
switch between models inside the same octomind session.
prices from the catalog of 2026-12-05