GLM 4.7 Flash
GLM 4.7 Flash is Z.ai's lightweight 30B-A3B open-weight model. The GLM 4.7 Flash API is listed free by Z.ai, or run the MIT weights with Ollama or vLLM. glm5.app does not host it; chat here with GLM 4.7 or GLM 5.3 Flash.
Chat with GLM 5.3 Flash or GLM 4.7 on glm5.app
What Is GLM 4.7 Flash?
GLM 4.7 Flash is the small, free member of Z.ai's GLM-4.7 family, released as open weights in January 2026.
30B-A3B Mixture of Experts
About 30B parameters, about 3B active per token.
MIT open weights
BF16 weights on Hugging Face. MIT allows commercial use.
200K context, 128K output
Per Z.ai's docs. Text in, text out.
Built for light deployment
Z.ai calls GLM 4.7 Flash the strongest model in the 30B class.
GLM 4.7 Flash Specs and Size
GLM 4.7 Flash has about 30B parameters, about 3B active per token. Checked 2026-12-04.
Model card & config
Model weights
- Architecture
- 30B-A3B MoE
- Parameters (files)
- 31.2B
- Layers
- 47
- Experts
- 64 + 1 shared
- Max positions
- 202,752
Glm4MoeLiteForCausalLM
31,221,488,576 in safetensors
4 routed per token
Z.ai docs & model card
Service, license & release
- Context / max output
- 200K / 128K
- Modality
- Text → text
- Languages
- English, Chinese
- Z.ai API price
- Free
- License
- MIT
- Released
- 2026-01-19
Official scores
GLM 4.7 Flash Benchmarks
On Z.ai's published GLM 4.7 Flash benchmarks, it leads 5 of 7 tests; Qwen3-30B-A3B-Thinking-2507 is higher on LCB v6 and GPT-OSS-20B on AIME 25. These are Z.ai's own results.
| Benchmark | GLM-4.7-Flash | Qwen3-30B-A3B-Thinking-2507 | GPT-OSS-20B |
|---|---|---|---|
| AIME 25 | 91.6 | 85.0 | 91.7 |
| GPQA | 75.2 | 73.4 | 71.5 |
| LCB v6 | 64.0 | 66.0 | 61.0 |
| HLE | 14.4 | 9.8 | 10.9 |
| SWE-bench Verified | 59.2 | 22.0 | 34.0 |
| τ²-Bench | 79.5 | 49.0 | 47.7 |
| BrowseComp | 42.8 | 2.29 | 28.3 |
GLM-4.7 family
GLM 4.7 Flash vs GLM 4.7 FlashX vs GLM-4.7
GLM 4.7 Flash is free, GLM 4.7 FlashX is the cheap high-speed tier, GLM-4.7 is the flagship.
| Model | Z.ai positioning | Input / cached input / output (per 1M tokens) |
|---|---|---|
| GLM-4.7 | Full flagship | $0.6 / $0.11 / $2.2 |
| GLM 4.7 FlashX | Lightweight, high-speed, affordable | $0.07 / $0.01 / $0.4 |
| GLM 4.7 Flash | Lightweight, completely free | Free |
Z.ai list prices, checked 2026-12-04, not glm5.app prices.
Z.ai API
Is the GLM 4.7 Flash API Free?
Yes, per Z.ai's pricing page. The API belongs to Z.ai, not glm5.app.
- Create an API key in your Z.ai account.
- Base URL: https://api.z.ai/api/paas/v4/ (OpenAI-compatible). If your client adds /chat/completions itself, paste only the base URL.
- Set the model to the GLM 4.7 Flash model code shown in Z.ai's docs or console.
- Z.ai's API reference lists only newer flagship models, so confirm GLM 4.7 Flash is available before building on it.
glm5.app does not proxy this model.
Run locally
How to Run GLM 4.7 Flash Locally
Run GLM 4.7 Flash with one Ollama command, or serve the MIT weights with vLLM, SGLang or transformers.
01
Pick a runtime
Ollama for a quick local run, vLLM or SGLang for an API server.
02
Check GLM 4.7 Flash VRAM
RAM or VRAM must hold the file and its context cache. GLM 4.7 Flash Ollama files: q4_K_M 19GB, q8_0 32GB, bf16 60GB. Unsloth says FP8 needs about 32GB.
03
GLM 4.7 Flash GGUF and Ollama
Run ollama run glm-4.7-flash (published by Ollama, not Z.ai; 198K context). Community GGUF files work in llama.cpp.
04
Or serve with vLLM
Use the GLM-4.7 tool-call and reasoning parsers, then connect any OpenAI-compatible client.
# Ollama library (default tag q4_K_M, 19GB)
ollama run glm-4.7-flash
# vLLM, from the Hugging Face model card
vllm serve zai-org/GLM-4.7-Flash \
--tensor-parallel-size 4 \
--speculative-config.method mtp \
--speculative-config.num_speculative_tokens 1 \
--tool-call-parser glm47 \
--reasoning-parser glm45 \
--enable-auto-tool-choice \
--served-model-name glm-4.7-flashOfficial sampling settings
- Default: temperature 1.0, top-p 0.95, max new tokens 131072.
- Coding benchmarks: temperature 0.7, top-p 1.0.
- Agent tasks: turn on Preserved Thinking.
Community tips (not Z.ai)
- Looping or repeated output usually means repeat penalty is on. Set it to 1.0.
- In llama.cpp, set min-p to 0.01.
Comparison
GLM 4.7 Flash vs GLM 5.3 Flash
GLM 5.3 Flash is the newer, much larger Flash model, and the one you can use on glm5.app.
Z.ai API or self-host
GLM 4.7 Flash
- Parameters
- 30B / ~3B active
- Context
- 200K tokens
- Input
- Text only
- Where to use it
- Z.ai API or local
- On glm5.app
- Not available
MIT weights
Ollama lists 198K
Listed Free by Z.ai
On glm5.app
GLM 5.3 Flash
- Parameters
- 320B / 18B active
- Context
- 1M tokens
- Input
- Text + images
- Where to use it
- glm5.app chat and API
- On glm5.app
- Free daily messages
MIT weights
Official spec
API ID glm-5.3-flash
Default for free accounts
As of 2026-12-04.
Using glm5.app? What You Can Use Instead
glm5.app does not offer GLM 4.7 Flash. These models are live here in chat and API.
GLM 4.7, the full model
Same generation, text only. API ID glm-4.7 at $2.40 / $10.50 per 1M tokens.
GLM 5.3 Flash, free every day
Free daily messages for free accounts, with image input. API ID glm-5.3-flash at $0.075 / $0.25 per 1M tokens.
One API for both
Send OpenAI-style requests to /api/v1/chat/completions with your glm5.app API key.
GLM 4.7 Flash FAQ
What people search for and ask on Reddit.
Is GLM 4.7 Flash free?
Yes. Z.ai's pricing page lists GLM 4.7 Flash as Free (checked 2026-12-04); confirm it in your Z.ai console, since its API reference lists only newer models. The MIT weights are free to run yourself.
How do I use the GLM 4.7 Flash API?
Use Z.ai's OpenAI-compatible base URL https://api.z.ai/api/paas/v4/, your Z.ai API key, and the GLM 4.7 Flash model code from Z.ai's docs or console.
How much VRAM does GLM 4.7 Flash need?
Enough RAM or VRAM to hold the file and its context cache. GLM 4.7 Flash Ollama files are 19GB (q4_K_M), 32GB (q8_0) and 60GB (bf16). Z.ai publishes no GLM 4.7 Flash VRAM table.
Is there a GLM 4.7 Flash GGUF or Ollama model?
Yes. Run ollama run glm-4.7-flash from Ollama's official library (published by Ollama, not Z.ai). Unsloth and others publish community GLM 4.7 Flash GGUF files for llama.cpp.
What is the GLM 4.7 Flash context length?
200K context and 128K output on the Z.ai API; Ollama lists 198K.
GLM 4.7 Flash vs GLM 5.3 Flash: which should I use?
Pick GLM 4.7 Flash for a 30B model on your own hardware. Pick GLM 5.3 Flash (320B total, 18B active, 1M context, images) for a larger hosted model, free daily on glm5.app.
What is the difference between GLM 4.7 Flash and FlashX?
Z.ai lists GLM 4.7 Flash as Free and GLM 4.7 FlashX as a high-speed tier at $0.07 input / $0.4 output per 1M tokens. Both have 200K context.
Can I use GLM 4.7 Flash commercially?
Yes. The MIT license allows commercial use if you keep the license notice.
Why does GLM 4.7 Flash loop or repeat itself?
Usually sampling. Unsloth says repeat penalty 1.0 fixes most loops (community advice, not Z.ai).
Can I use GLM 4.7 Flash on glm5.app?
No. glm5.app does not host GLM 4.7 Flash. Use GLM 4.7 or GLM 5.3 Flash instead.
Start here
Try a GLM Model on glm5.app
Start free with GLM 5.3 Flash or switch to the full GLM 4.7.
