GLM 5
VerifiedGLM 5 manages long text contexts with closed-weight precision.
About GLM 5
GLM 5 is structured as a closed-source LLM from Z.AI. Its architecture centers on text modality with a fixed context capacity of 202752 tokens. Parameter details remain unavailable from the provider.
The model handles extended sequences without open-weight access. This design suits scenarios that demand retention of substantial prior text. Typical applications include document analysis and multi-turn text generation.
Users deploy GLM 5 for tasks that benefit from its large context window. It operates exclusively in text mode under proprietary licensing. Integration focuses on environments needing reliable long-context performance.
Capabilities
How GLM 5 compares
GLM 5 (striped bar) vs other language models on intelligence, speed and price.
Price
USD per 1M output tokens · Lower is better · GLM 5 ranks #27 of 36
Sources: Artificial Analysis (intelligence, speed) · OpenRouter (price).
Best for
Long Document Analysis
GLM 5 processes entire books, research papers, or legal contracts within its 202752-token context to extract insights and generate summaries without chunking.
Extended Codebase Review
The model reviews and refactors large multi-file code repositories in a single pass while preserving dependencies and architectural context.
Prolonged Conversation Handling
It sustains coherent multi-turn dialogues spanning thousands of exchanges, retaining earlier details for consistent responses over extended sessions.
Strengths & limitations
Strengths
- +Effective handling of extended documents
- +Strong coding and technical text capabilities
- +Solid bilingual performance in Chinese and English
Limitations
- –Text-only modality with no vision support
- –Standard LLM risks of hallucination
- –No native multimodal or real-time data access
Cost calculator
Estimate what GLM 5 would cost for your usage.
Based on GLM 5's $0.60/1M input · $1.92/1M output. Estimate only — actual cost varies by provider and caching.
Quick start
OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. Only the model slug changes between models.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: "z-ai/glm-5",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(completion.choices[0].message.content);Model slug: z-ai/glm-5
Editor's verdict
GLM 5 is Z.AI's proprietary language models with a 203K-token context window.
At $1.92 per 1M output tokens, it is mid-priced for its class.
It is available through Z.AI's API and aggregators like OpenRouter.
Best suited to effective handling of extended documents and strong coding and technical text capabilities.
Frequently asked questions
GLM 5 supports a context length of 202752 tokens.
User reviews
Real, verified reviews from the community shape this model's rating.
Loading reviews…
Other GLM models
Sibling versions in the GLM family from Z.AI.