← models

Zhipu GLM

Connect to Zhipu GLM's model API.

Website·Docs·Pricing·Sign Up

API Configuration

API Typeopenai-completions
Base URLhttps://open.bigmodel.cn/api/paas/v4
Auth Modeapi_key
Auth Keys
ZHIPU_API_KEY — API key from open.bigmodel.cn console
Regionscn
Default Modelglm-5.3
Statusactive

Pricing

Pay-as-you-go per token (CNY) with tiered pricing by context length. GLM-4.7-Flash is free. New accounts receive 20M free tokens.

Getting Started

Sign up at open.bigmodel.cn, new accounts receive 20M free tokens. Create an API key in the console dashboard.

Models (4)

ModelContextMax OutputPricingFeatures
glm-5.3
glm-5.3
API model; setup uses a conservative output budget.
1.0M131KSee official pricing documentation.
GLM-5-Turbo
glm-5-turbo
Optimized for agentic workflows, tool calling, and long-task stability
128K16KTiered (CNY): Input ¥5/M (≤32K) / ¥7/M (>32K), output ¥22/M (≤32K) / ¥26/M (>32K).
GLM-5
glm-5
New-generation flagship reasoning model for complex tasks
128K16KTiered (CNY): Input ¥4/M (≤32K) / ¥6/M (>32K), output ¥18/M (≤32K) / ¥22/M (>32K).
GLM-4.7
glm-4.7
Enhanced programming, multi-step reasoning, and agent task performance
200K128KTiered (CNY): Input ¥2-4/M, output ¥8-16/M depending on input/output length. See pricing page.

Last verified: 2026-03-19