Skip to content
GLM 5 logo

GLM 5

Verified

GLM 5 manages long text contexts with closed-weight precision.

Z.AILanguage ModelsClosed
Model page
Updated 2026-06-14

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

Long-context reasoning
Text generation and summarization
Code generation and analysis
Logical and multi-step reasoning
Multilingual text processing
Instruction following and tool use

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

$0.95
MiniMax M2.1
$1.0
MiniMax M2.7
$1.2
KAT-Coder-Pro V2
$1.2
MiniMax M2-her
$1.3
Relace Apply 3
$1.8
GLM 4.7
$1.9
GLM 5
$2.2
GLM 4.5
$2.5
Nemotron 3 Ultra
$2.5
Kimi K2 0905
$3.0
Relace Search
$3.3
Qwen3 Coder Plus
$3.8
Qwen3.7 Max

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.

$0.00156
per request
$15.6
estimated / month

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.

JavaScript · openai
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

Our take on GLM 5

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.

Did you find this helpful?

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…

Sign in to review

Other GLM models

Sibling versions in the GLM family from Z.AI.

Promote GLM 5

Add this badge to your website, or share the tool.

DFeatured on DhanasviGLM 5 1