Z.ai

GLM 5.4

Z.aiToken-based
Alias:glm-5.4
Create API Key

Compare glm-5.4 API pricing, supported endpoints, capabilities and access options on Modelsell.

深度思考多模态长上下文视觉编程工具调用
Starting price
Input / Output · 1M
Context
1M
Maximum input window
Max output
128K
Maximum tokens per response
Modalities
→
Released
Nov 2026

Pricing by Supplier

Compare prices and service performance for this model across suppliers.

Suppliers1
USD · Per 1M tokensPerformance · Last 24 hours
SupplierInput/MOutput/MCache Read/M
official

官方接口直连

$1.1765
$4.1176
$0.294118
Crossed-out amounts are standard prices.Performance over the last 24 hours; actual results vary by request.

Scroll horizontally to compare all prices and performance metrics.

Capabilities / Supported modalities

ReasoningVisionFunction callingStructured outputStreamingPrompt caching
Input
Output

Provider & data privacy

Provider
Zhipu AIDocs
Tokenizer
GLM tokenizer
License
GLM-4 LicenseOpen weights
Data retention55 daysNot used for upstream training by default

Performance

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows

Metrics sourced fromArtificial Analysis 2026-09-30·GLM 5.4

This model is not included in the current benchmark snapshot.

Missing models or measurements are not zero scores.

Benchmark charts preserve the source model selection and reasoning settings. Missing models or measurements are not zero scores, and benchmark cost or speed is not this site’s service commitment.

About GLM 5.4

模型能力

GLM-5.4 通过重复执行一组共享权重的层来增加推理深度,适合跨模块代码修改、根据截图还原界面以及需要多轮调用工具的任务。通过外部工具还能协助处理视频制作、游戏开发和 3D 建模工作。

智谱公布的原生输入为文本、图像、视频和文件,输出为文本。模型支持思考模式、工具调用、结构化输出和上下文缓存。上下文窗口为 1,000,000 Token,360 智脑公布的最大输出为 128,000 Token。各输入类型的传输格式取决于所用 API。

计费与接入

ModelSell 通过 360 智脑接入,按其公开报价设置标准价。每百万 Token 的普通输入为 ¥8,输出为 ¥28,缓存命中为 ¥2。智谱开放平台的标准按量 API 仍待开放。

Use cases and prompting

使用具有 official 分组权限的 ModelSell API Key,向 POST /v1/chat/completions 传入 model: "glm-5.4" 和 messages。对长程任务可通过 max_tokens 设置合理的生成上限。模型可能先生成思考 Token,输出上限过小时可能在生成最终答案前用完额度。

API access

API documentation

Code samples

RequestPOST/v1/chat/completions
Example request
Parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
officialUnlimitedUnlimitedUnlimited

No restriction

Frequently asked questions about glm-5.4

What is glm-5.4?

Compare glm-5.4 API pricing, supported endpoints, capabilities and access options on Modelsell.

How do I call glm-5.4?

Create an API key with access to glm-5.4, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is glm-5.4 priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of glm-5.4?

The model catalog lists a context window of 1000000 tokens. Check the selected endpoint for request limits.

What is the maximum output of glm-5.4?

The model catalog lists a maximum output of 128000 tokens. Your request settings may set a lower limit.

How should I evaluate glm-5.4 for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.