GLM-5

deprecatedmit355B / 32B

GLM-5 is Z.AI's new-generation foundation model, designed for Agentic Engineering, capable of providing reliable productivity in complex system engineering and long-range Agent tasks. In terms of Coding and Agent capabilities, GLM-5 has achieved state-of-the-art (SOTA) performance in open source, with its usability in real programming scenarios approaching that of Claude Opus 4.5.

Context
200K
Max output
128K
Input price
$1/1M tokens
Output price
$3.2/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming
Prompt Caching
Fine-tuning

Details

Creator zai
Familyglm-5
Licensemit
Statusdeprecated
Typechat
Input modalitiestext
Output modalitiestext
Open weightYes
Parameters355B / 32B
Architecture—
Context window200K tokens
Max input—
Max output128K tokens
Reasoning tokens—
Knowledge cutoff—
Release date—
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Pricing

Input
$1
Output
$3.2
Cache write
—
Cache read
$0.2
Batch in
—
Batch out
—

Family Comparison: glm-5

ModelContextMax outPricing
GLM-5200K128K$1$3.2
GLM-5-TURBO200K128K$1.2$4
GLM-5V-TURBO200K128K$1.2$4

API

GET/v1/models/zai/glm-5