GLM

GLM

Open Source

Bilingual open-weight LLMs from Tsinghua and Zhipu AI — free API Flash tier, self-hostable 9B–32B models.

LLM
Open-weight

Scores

Popularity
3/5
Learning Curve
3/5
Flexibility
4/5
Performance
4/5
Portability
4/5

About

GLM (General Language Model) is a family of large language models developed jointly by Zhipu AI and Tsinghua University's Knowledge Engineering Group (THUDM). The series spans from the original open-source ChatGLM research models to a rapidly evolving commercial product line that in January 2026 made Zhipu AI — rebranded internationally as Z.ai — China's first major LLM company to complete a Hong Kong Stock Exchange IPO.

Dual identity: research origin and commercial product

GLM has always straddled academia and industry. The THUDM research group at Tsinghua University developed the foundational GLM architecture, and the ChatGLM-6B repository (41k+ GitHub stars) established GLM as a leading open-source bilingual model in the Chinese AI ecosystem. Zhipu AI commercialised the research into a product API and later rebranded to Z.ai internationally, while continuing to publish open-weight checkpoints under Apache 2.0.

Model families

  • ChatGLM series (2023): The original open-weight bilingual dialogue models. ChatGLM-6B (6.2B params, 2K context) and ChatGLM2-6B (extended to 32K) established the series. ChatGLM3 added tool-calling and code capabilities with a 128K context variant.
  • GLM-4 / GLM-4-9B (2024): The flagship generation introduced with the ChatGLM paper. GLM-4-9B offers 128K context (chat) and an experimental 1M context variant; GLM-4-9B-Chat is the primary open-weight deployment target. The GLM-4 All Tools variant integrates web browsing, Python code interpreter, and text-to-image generation — benchmarked against GPT-4 All Tools. Larger closed variants (GLM-4-Air, GLM-4-Plus) are API-only.
  • GLM-4-32B-0414 (April 2025): A 32B parameter chat model, part of the April 2025 refresh alongside the Z1 reasoning line.
  • GLM-Z1 (2025): The reasoning model branch. GLM-Z1-9B-0414 and GLM-Z1-32B-0414 are trained from the GLM-4 base using cold-start reinforcement learning targeting math, code, and logic. GLM-Z1-Rumination-32B-0414 uses extended deliberation — revisiting intermediate steps — for more open-ended complex tasks.
  • GLM-4V-9B / CogVLM (vision): GLM-4V-9B is the open-weight vision-language model for image understanding. CogVLM (17B — 10B visual + 7B language, ~6.7k GitHub stars) is the multimodal research model for visual question answering, image captioning, and visual grounding.
  • GLM-4.5 (July 2025): A Mixture-of-Experts model (355B total / 32B active parameters) targeting reasoning, coding, and agentic tasks. Released alongside GLM-4.5 Air (a smaller, cheaper variant). GLM-4.5-Flash is free on the API.
  • GLM-4.6 (September 2025): A notable release built using Chinese domestic AI chips (Cambricon Technologies), demonstrating Zhipu's hardware independence from Nvidia.
  • GLM-4.7 (2025): Subsequent iteration with 200K context window; available on Ollama (ollama run glm-4.7). GLM-4.7-Flash is free on the API.
  • GLM-5 (February 2026): Major scale-up: 744B total / 44B active parameters (MoE, 256 experts with 8 active per token), 200K context window, pre-trained on 28.5T tokens. Benchmarked on SWE-bench and hard reasoning tasks.
  • GLM-5.1 (April 2026, open-sourced): Formally known as GLM-Z1-Rumination, the open-weight reasoning model released in April 2026 that reportedly matched GPT-5.4 on coding benchmarks.

Access methods

Self-hosting: Open-weight models are published on Hugging Face under zai-org/ (formerly THUDM/). GLM-4-9B, GLM-Z1-9B/32B, GLM-4-32B, GLM-4V-9B, and GLM-5.1 can be run locally via Ollama (ollama run glm-4.7), vLLM, SGLang, llama.cpp/GGUF, and the Hugging Face transformers library. The 9B models fit on a single consumer GPU; the 32B models require 24GB+ VRAM. Weights are Apache 2.0 licensed for commercial use.

Zhipu AI API (open.bigmodel.cn / docs.z.ai): The OpenAI-compatible REST API provides access to all model tiers — open-weight and proprietary. Free tier: GLM-4.7-Flash and GLM-4.5-Flash are available at no cost to all registered users with no daily quota caps. Paid tier: GLM-4.7 and GLM-4.5 cost approximately $0.60/million input tokens and $2.20/million output tokens. Premium models (GLM-5, GLM-5.1, GLM-5-Turbo) are available via subscription plans. The API is primarily hosted in China; Z.ai also maintains international developer documentation at docs.z.ai.

Third-party: GLM-4.7 is available on OpenRouter; GLM models appear on select aggregator APIs including LiteLLM-compatible providers.

License: Apache 2.0 for all published open-weight models (GLM-4-9B, GLM-Z1 series, GLM-4-32B, GLM-4V-9B, GLM-5.1). Closed proprietary variants (GLM-4-Air, GLM-4-Plus, GLM-5, GLM-5-Turbo) are API-only.

Key Features

  • Strong Chinese/English bilingual capability — trained on Chinese + English corpus across all generations
  • Open-weight models from 6B to 32B on Hugging Face — run via Ollama, vLLM, GGUF/llama.cpp, or transformers
  • Apache 2.0 licence for all open-weight checkpoints — commercial use, fine-tuning, and redistribution permitted
  • GLM-Z1 reasoning line — reinforcement-learning-trained models for math, code, and logic (9B and 32B variants)
  • GLM-4 All Tools — web browsing, Python code interpreter, and text-to-image generation in a single model
  • GLM-4V-9B / CogVLM — open-weight vision-language models for image understanding and visual grounding
  • Free API tier — GLM-4.7-Flash and GLM-4.5-Flash available at no cost via open.bigmodel.cn
  • GLM-5.1 open-source reasoning model — competitive with frontier closed models on coding benchmarks
  • OpenAI-compatible API endpoint at open.bigmodel.cn / docs.z.ai — minimal migration friction
  • Up to 1M token context (GLM-4-9B-Chat-1M); 128K–200K on standard models

Pros

  • Best-in-class open-weight bilingual Chinese/English models — leading choice for products targeting Chinese-speaking users
  • Apache 2.0 licence — fully permissive for commercial products without royalties or usage restrictions
  • Free Flash-tier API (GLM-4.7-Flash, GLM-4.5-Flash) — no-cost access for prototyping and lighter workloads
  • 9B and 32B open-weight variants run on consumer/prosumer hardware — low barrier to self-hosting
  • GLM-Z1 reasoning models bring structured chain-of-thought to a small (9B) open-weight form factor
  • Dual access model — self-host the open weights or use the managed API with the same model architecture
  • Backed by Tsinghua University research (THUDM) — academically rigorous lineage with strong benchmark culture
  • OpenAI-compatible API means near-zero migration effort for teams already using OpenAI SDKs

Cons

  • Lower global mindshare than DeepSeek or Qwen — less community tooling, tutorials, and third-party integrations outside China
  • API hosted primarily in China — potential data residency and latency concerns for EU/US enterprises
  • English documentation lags behind Chinese — some releases are documented in Chinese first
  • Closed proprietary frontier models (GLM-5, GLM-5-Turbo) are API-only — no self-hosting option for the largest models
  • Limited availability on major Western cloud platforms (AWS Bedrock, Azure) compared to DeepSeek or Qwen
  • Rapid model versioning (GLM-4 → 4.5 → 4.6 → 4.7 → GLM-5 within ~18 months) can complicate version pinning
  • Repository reorganisation from THUDM/ to zai-org/ org on GitHub adds confusion for developers following older docs

Pricing

Open Source
Self-hosted (open weights)Free
  • · Apache 2.0 weights on Hugging Face under zai-org/
  • · Run via Ollama, vLLM, SGLang, llama.cpp, or transformers
  • · 9B models fit on a single consumer GPU; 32B require 24GB+ VRAM
API — Free Flash tierFree
  • · GLM-4.7-Flash and GLM-4.5-Flash available at no cost
  • · No daily quota caps for registered users
  • · OpenAI-compatible API at open.bigmodel.cn / docs.z.ai
API — GLM-4.7 / GLM-4.5Contact sales
  • · ~$0.60 per million input tokens
  • · ~$2.20 per million output tokens
  • · Full-quality non-Flash models
  • · OpenAI-compatible endpoint
API — Premium (GLM-5 / GLM-5.1)Contact sales
  • · GLM-5, GLM-5.1, GLM-5-Turbo available via subscription plans
  • · Frontier reasoning and coding models
  • · Pricing on request — see docs.z.ai

Learning Resources

No resources yet — check back soon.

Vendor

Tags

Open SourceSelf-hostableWeb

Details

Maintained
Yes