Skip to main content
MindStudio
Pricing
BlogAbout
My Workspace
Text Generation Model

GLM 5

GLM 5 is a text generation model from Z.ai with a 200,000-token context window and configurable reasoning effort.

PublisherZ.ai
TypeText
Context Window200,000 tokens
ReleasedFebruary 2026
Input$0.80/MTok
Output$2.56/MTok
ProviderDeepInfra

Long-context text generation with adjustable reasoning

GLM 5 is a large language model developed by Z.ai (formerly Zhipu AI) and made available through DeepInfra. It belongs to the GLM (General Language Model) family, which has been developed through ongoing research at Zhipu AI, and this release was added to the catalog in February 2026. The model supports a 200,000-token context window and a maximum response size of 16,384 tokens, making it suited for tasks that involve long documents or extended conversations.

A notable feature of GLM 5 is its configurable reasoning effort, which allows users to adjust how much computational reasoning the model applies to a given prompt. This makes it flexible for use cases ranging from quick text generation to more deliberate, multi-step reasoning tasks. Developers working with long-form content, document analysis, or tasks that benefit from tunable inference behavior are the primary audience for this model.

What GLM 5 supports

Long Context Window

Processes up to 200,000 tokens in a single context, enabling analysis of lengthy documents, codebases, or extended conversation histories.

Adjustable Reasoning

Exposes a reasoning effort toggle that lets users dial the depth of inference up or down depending on task complexity and latency requirements.

Text Generation

Generates coherent, multi-turn chat responses with a maximum output size of 16,384 tokens per response.

Instruction Following

Handles structured prompts and system instructions, supporting chat-style interactions typical of the llm_chat model type.

Ready to build with GLM 5?

Get Started Free

Benchmark scores

Scores represent accuracy — the percentage of questions answered correctly on each test.

BenchmarkWhat it testsScore
GPQA DiamondPhD-level science questions (biology, physics, chemistry)82.0%
HLEQuestions that challenge frontier models across many domains27.2%
SciCodeScientific research coding and numerical methods46.2%
SWE-bench VerifiedReal GitHub issues requiring multi-file code fixes77.8%
BrowseCompComplex web browsing and information retrieval75.9%

Common questions about GLM 5

What is the context window size for GLM 5?

GLM 5 supports a context window of 200,000 tokens, allowing it to process very long documents or extended multi-turn conversations in a single request.

What is the maximum response length GLM 5 can produce?

The model has a maximum response size of 16,384 tokens per generation.

What does the reasoning effort toggle do?

The reasoning effort input is a toggle group that lets you control how much reasoning the model applies before generating a response. Higher effort may improve accuracy on complex tasks, while lower effort can reduce latency.

Who publishes GLM 5 and where is it hosted on MindStudio?

GLM 5 is published by Z.ai and is provided through DeepInfra as the underlying infrastructure provider on MindStudio.

Does GLM 5 support image or video inputs?

Based on the available metadata, GLM 5 does not have confirmed support for image or video analysis inputs — it is listed as a text generation model.

What people think about GLM 5

Community reception on r/LocalLLaMA was broadly positive at launch, with users highlighting GLM-5's strong benchmark scores in software engineering and math reasoning as well as its MIT license enabling open commercial use. The thread about Z.ai's GPU constraints attracted significant attention, with many users noting the significance of training a model of this scale entirely on Huawei Ascend hardware.

Some community members raised questions about real-world performance relative to benchmark numbers, and a later thread on r/singularity pointed to GLM-5's ARC-AGI 2 results as underwhelming compared to its other reported scores. Discussions also covered availability on platforms like OpenRouter ahead of the official release.

View more discussions →

Parameters & options

Max Temperature1
Max Response Size16,384 tokens
Reasoning EffortToggle Group
Default: medium
NoneLowMediumHigh

Start building with GLM 5

No API keys required. Create AI-powered workflows with GLM 5 in minutes — free.