zai-org / text-generation Open weights Also via API updated 9 months ago

GLM-4.7-Flash

πŸ‘‹ Join our Discord community. πŸ“– Check out the GLM-4.7 technical blog, technical report(GLM-4.5). πŸ“ Use GLM-4.7-Flash API services on Z.ai API Platform. πŸ‘‰ One click to GLM-4.7.

Params
31.2 B
Context
202,752
Downloads 30d
1.0 M
Likes
1,897
Commercial use: allowed mit Not gated SAFETENSORS 2 languages View on Hugging Face β†—

Download history

daily snapshots Β· 106 days
β–² 423 K in the last 30 days (28.7%)
2.2 M932 K
Jul 28Sep 1Oct 6Nov 10

Can you run it?

Estimated VRAM at 8K context unless noted. Pick your hardware to see the verdict per quantization.

FileQuantSizeEst. VRAMVerdict on RTX 4090 Β· 24 GB
model.safetensors bf16 62.4 GB 73.9 GB ❌ Won’t fit
model.safetensors (bf16, full) bf16 + 198K ctx 62.4 GB 185.1 GB ❌ Won’t fit
Estimate: file size Γ— 1.1 + KV cache at 8K + 0.5 GB overhead. Not a benchmark β€” how we calculate this.

Run it

copy-paste, exact tags checked against the Hub
~ Β· curl Β· api/v1
$ curl -s https://aimodelscomparison.com/api/v1/models/glm-4-7-flash
{
  "hf_id": "zai-org/GLM-4.7-Flash",
  "params_b": 31.22,
  "context_length": 202752,
  "license": { "id": "mit", "commercial": "yes" },
  "downloads_30d": 1049764,
  "vram_estimates": [
    { "quant": "bf16", "gb": 73.9 }
  ],
  "updated_at": "2026-07-28T17:07:57Z"
}
est. VRAM β€”on RTX 4090 Β· 24 GBJSON API β†’

Use via API

via OpenRouter Β· USD per 1M tokens Β· synced 2026-11-10
$0.061
input / 1M
$0.40
output / 1M
β€”
cached input / 1M
$0.46
1M in + 1M out
Context window
131,072 tokens
Max output
117,964 tokens
Providers
2
Cheapest provider
Cloudflare Β· $0.061 / $0.40
Best throughput
β€”
AA Intelligence / Coding / Agentic
β€” / β€” / β€”
βœ“ Tool calling βœ“ Reasoning βœ“ Structured outputs βœ— Image input βœ— File input βœ— Audio input βœ— Prompt caching

Specifications

Architecture
Glm4MoeLiteForCausalLM
Parameters
31.2 B
Tensor type
BF16
Context length
202,752
Vocabulary
154,880
Layers / heads
47 / 20
Licence
mit
First seen on the Hub
2026-01-19
Training datasets
undisclosed
Added to our catalog
2026-07-28
Compare with any text-generation model