Skip to content

Providers / Z.ai (Zhipu GLM)

Z.ai (Zhipu GLM)

Z.ai, also known as Zhipu, makes the GLM family of language models. The current generation is GLM-5.3: the base GLM-5.3 model and a low-cost Flash. GLM-5.2 and GLM-5.1 are earlier flagship models. GLM-5.3 and Flash reason on every request. Z.ai also makes vision models (GLM-5V) and image models (CogView).

Models

USD per 1M tokens · prices as of 2026-11-21

ModelBest forInputOutputContext
GLM-5.1A setup already tuned on GLM-5.1$0.6438$2.575331K
GLM-5.2Long agent runs on an earlier model$0.8584$3.0045128K
GLM-5.3Coding agent, main model$1.3949$4.8823128K
GLM-5.3 FlashSub-agents and quick steps · Screenshots and video in the promptPrice coming soonNot listed

Which model for which job

JobUseInput / output per 1MWhy
Coding agent, main modelGLM-5.3$1.3949 / $4.8823Tool calling with parallel calls
Sub-agents and quick stepsGLM-5.3 FlashPrice coming soonMuch cheaper; accepts image and video input (not yet live on Yunshu)
Long agent runs on an earlier modelGLM-5.2$0.8584 / $3.0045Z.ai lists a 1M-token context; thinking can be switched off
A setup already tuned on GLM-5.1GLM-5.1$0.6438 / $2.5753Z.ai lists a 200K context; text only
Screenshots and video in the promptGLM-5.3 FlashPrice coming soonMultimodal input; GLM-5.3, GLM-5.2 and GLM-5.1 are text only

Data handling

What research shows about Z.ai

What Yunshu does

Pricing notes

Use it in your coding tool

Paste these settings to use GLM-5.1. Swap in any Z.ai model ID from the table above.

export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=glm-5.1
export CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1

Run these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. The last line stops Claude Code sending fields only Anthropic models accept. Full guide →

Questions

Is GLM-5.3 good for coding?
How do I use GLM-5.3 with Claude Code?
Are Z.ai and Zhipu the same company?
Can I turn GLM reasoning off?
Does Z.ai keep my prompts?