OpenModelsHQ

GLM-5.2

GLM-5.2 is an open-weight language model from Z.ai (Zhipu) with 753B parameters (mixture of experts). At 4-bit it needs about 531.7 GB of memory, more than any single device in our directory has.

Overview

Estimated memory at 4-bit
531.7GB

Includes room for an 8k context and runtime overhead. More context needs more memory.

Total parameters
753B
Mixture of experts, all weights counted
Context window
1024K
1,048,576 tokens
Cheapest API, blended / 1M
$0.2903
₹27 · Baidu · 3:1 input to output
All Z.ai (Zhipu) API prices

Key information

Lab
Z.ai (Zhipu)
Released
16 Jun 2026
Parameters
753B · MoE
Type
Language
Context
1,048,576 tokens
License
MIT
HF downloads, 30 days
316,008
Repository
zai-org/GLM-5.2
View all

Will it run on your hardware?

How we estimate
Memory needed vs devices
GLM-5.2 needs about 531.7 GB at 4-bit, 912.9 GB at 8-bit and 1691.9 GB at 16-bit. At 4-bit it fits none of the reference devices. Dashed lines are usable memory on each device; a model fits when its estimate stays within 90% of it. Log scale. 8k context.
Memory needed vs devices: data
Estimate or deviceMemory
Q4531.7 GB
Q8912.9 GB
BF161691.9 GB
RTX 5060 Ti 16 GB16 GB usable
RTX 5090 32 GB32 GB usable
DGX Spark 128 GB108.8 GB usable
Mac Studio M5 Ultra 256 GB192 GB usable

Single-device memory estimate. Pick a device to update the On your device column.

36 GB usable memory

FormatMemory neededOn your deviceExample hardware
4-bit (Q4)≈ 531.7 GBToo big 1477%No single device in our directory has enough memory
8-bit (Q8)≈ 912.9 GBToo big 2536%No single device in our directory has enough memory
16-bit (BF16)≈ 1691.9 GBToo big 4700%No single device in our directory has enough memory

Fits means the estimate stays within 90% of usable memory. Tight is above 90% and up to 100%. Too big is above 100%. These are memory checks, not speed or compatibility tests.

Mac allowances are 66% of total RAM up to 36 GB, and 75% above. AI boxes allow 85% because their memory is shared with the operating system.

Where to run it

On a Mac

Start with the MLX files, built for Apple Silicon.

mlx-community/GLM-5.2-mxfp4Check your Mac

With GGUF

Choose a file for llama.cpp or a compatible app.

unsloth/GLM-5.2-GGUFFind compatible hardware

Through an API

Baidu (fp8) is the cheapest provider we found.

$0.189 / $0.594

Input / output per 1M tokens
₹18 / ₹56 at ₹94.29 per $1

Blended: $0.2903 (₹27) per 1M. Ranked by a 3:1 mix of input and output tokens.

MLX on Apple SiliconView repository
mlx_lm.generate --model mlx-community/GLM-5.2-mxfp4 \
  --prompt "Explain how a transformer works."
GGUF with llama.cppView repository
llama-cli -hf unsloth/GLM-5.2-GGUF \
  -c 8192 -p "Explain how a transformer works."

Example commands built from the repository ids above. They need a working install of MLX or llama.cpp. We have not run them; check each repository for available files.

Hosted API 26

USD and INR per million tokensAll Z.ai (Zhipu) API prices
Precision
BaiduCheapest$0.2903₹27$0.189₹18$0.594₹561,048,576FP8
StreamLake$0.43₹41$0.28₹26$0.88₹831,024,000FP8
DeepInfra$0.6975₹66$0.45₹42$1.44₹1361,048,576FP4
Morph$0.904₹85$0.595₹56$1.831₹1731,048,576FP8
Ambient$0.95₹90$0.60₹57$2.00₹189202,752FP8
Novita$0.9976₹94$0.6496₹61$2.0416₹1931,048,576FP8
SiliconFlow$0.9997₹94$0.651₹61$2.046₹1931,048,576FP8
CoreWeave$1.07₹101$0.62₹58$2.42₹2281,048,576FP4
DigitalOcean$1.075₹101$0.70₹66$2.20₹2071,048,576Not listed
AtlasCloud$1.4405₹136$0.938₹88$2.948₹2781,048,576FP8
Alibaba$1.4835₹140$0.966₹91$3.036₹2861,000,000FP8
Wafer$1.7052₹161$0.007₹0.66$6.80₹6411,048,576FP4
Relace$2.0008₹189$0.0066₹0.62$7.9833₹7531,048,576FP4
Cloudflare$2.1425₹202$0.19₹18$8.00₹754262,144Not listed
BaseTen$2.15₹203$1.40₹132$4.40₹4151,048,576FP8
Friendli$2.15₹203$1.40₹132$4.40₹4151,048,576Not listed
GMICloud$2.15₹203$1.40₹132$4.40₹4151,048,576FP8
Inceptron$2.15₹203$1.40₹132$4.40₹4151,048,576FP4
Mistral$2.15₹203$1.40₹132$4.40₹4151,048,576NVFP4
Nebius$2.15₹203$1.40₹132$4.40₹4151,048,576FP4
Parasail$2.15₹203$1.40₹132$4.40₹415262,144FP4
Together$2.15₹203$1.40₹132$4.40₹4151,048,575Not listed
Venice$2.15₹203$1.40₹132$4.40₹4151,000,000FP8
Z.AI$2.15₹203$1.40₹132$4.40₹4151,048,576FP8
Mistral$2.365₹223$1.54₹145$4.84₹4561,048,576Not listed
Baidu$3.6575₹345$2.25₹212$7.88₹7431,048,576FP4
View on OpenRouterEndpoint sourceSorted by the blended price: 3 parts input to 1 part output. Context limits differ by provider.

INR at ₹94.29 per $1. Prices fetched 14 Nov 2026.

More about this model

Frequently asked questions

How much memory does GLM-5.2 need? At an 8k context, about 531.7 GB at 4-bit, 912.9 GB at 8-bit and 1691.9 GB at 16-bit (BF16). A longer context needs more.

Can I run GLM-5.2 on a Mac? No Mac in our directory has enough usable memory for the 4-bit estimate of 531.7 GB. An MLX build is available: mlx-community/GLM-5.2-mxfp4.

Does the full context fit? GLM-5.2 supports up to 1,048,576 tokens of context. Our memory estimates use 8k, so long prompts need more memory than shown.

What does it cost through an API? The cheapest provider we found is Baidu, at $0.19 per 1M input tokens and $0.59 per 1M output tokens (₹18 and ₹56 at 94.29 rupees per dollar). Ranked by a 3:1 mix of input and output tokens.

License in plain English

MIT. This license permits commercial use, modification and redistribution, as long as the copyright and license notice are kept. This summary is not legal advice.

Read MIT

Read about this license

OMHQ RigBench

Not yet tested. We show no speed or quality score without a measurement.

Revision history and sources