Open weights · MIT · GLM 4.7 Flash free on Z.ai

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.

01

30B-A3B Mixture of Experts

About 30B parameters, about 3B active per token.

02

MIT open weights

BF16 weights on Hugging Face. MIT allows commercial use.

03

200K context, 128K output

Per Z.ai's docs. Text in, text out.

04

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

Glm4MoeLiteForCausalLM

Parameters (files)
31.2B

31,221,488,576 in safetensors

Layers
47
Experts
64 + 1 shared

4 routed per token

Max positions
202,752

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.

GLM 4.7 Flash Benchmarks
BenchmarkGLM-4.7-FlashQwen3-30B-A3B-Thinking-2507GPT-OSS-20B
AIME 2591.685.091.7
GPQA75.273.471.5
LCB v664.066.061.0
HLE14.49.810.9
SWE-bench Verified59.222.034.0
τ²-Bench79.549.047.7
BrowseComp42.82.2928.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.

GLM 4.7 Flash vs GLM 4.7 FlashX vs GLM-4.7
ModelZ.ai positioningInput / cached input / output (per 1M tokens)
GLM-4.7Full flagship$0.6 / $0.11 / $2.2
GLM 4.7 FlashXLightweight, high-speed, affordable$0.07 / $0.01 / $0.4
GLM 4.7 FlashLightweight, completely freeFree

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.

  1. 01

    Pick a runtime

    Ollama for a quick local run, vLLM or SGLang for an API server.

  2. 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.

  3. 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.

  4. 04

    Or serve with vLLM

    Use the GLM-4.7 tool-call and reasoning parsers, then connect any OpenAI-compatible client.

Ollama and vLLM (from the model card)
# 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-flash

Official 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

MIT weights

Context
200K tokens

Ollama lists 198K

Input
Text only
Where to use it
Z.ai API or local

Listed Free by Z.ai

On glm5.app
Not available

On glm5.app

GLM 5.3 Flash

Parameters
320B / 18B active

MIT weights

Context
1M tokens

Official spec

Input
Text + images
Where to use it
glm5.app chat and API

API ID glm-5.3-flash

On glm5.app
Free daily messages

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.

01

GLM 4.7, the full model

Same generation, text only. API ID glm-4.7 at $2.40 / $10.50 per 1M tokens.

02

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.

03

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.