AIFeed

GLM-5.4 API 现已在 Z.ai API 平台上线

Translation(model translation, not the source's own text)

Overview

Input Modality

Output Modality

Context Length

Maximum Output Tokens

How to Use

Model API

  • Model Code:glm-5.4
  • API Documentation:Chat Completion API
  • Parameter Settings:文本参数与 GLM-5.3 一致,支持 1M token 的上下文窗口。
  • Image Parameters:在 messages[].content[] 中添加一个 type: image_url 的内容块,并通过 image_url.url 传入图片 URL(推荐)或 Base64 Data URL。可以通过包含多个 image_url 内容块来添加多张图片。
  • Recommended Settings: temperature: 1、top_p: 0.95 和 reasoning_effort: max。thinking.type 仅支持 enabled;我们建议设置 thinking.clear_thinking: false。对于流式请求,我们建议同时启用 stream: true 和 tool_stream: true。

GLM Coding Plan

Capability Support

  • Thinking Mode:支持思考模式以实现更深层推理;借助 Loop Transformer,模型在不增加参数的情况下进行更深层推理,部分推理从显式输出 token 转移到循环的隐式深度中
  • Streaming Messages:支持实时流式响应,提升用户交互体验,非高峰时段最高可达 200 tokens/s,高峰负载时为 70–80 tokens/s
  • Function Calling:提供强大的工具调用能力,支持与广泛的外部工具集成
  • Context Caching:使用智能缓存机制优化长上下文对话中的性能
  • Structured Output:支持 JSON 等结构化输出格式,实现无缝系统集成

Key Advancements

GLM-5.4 Win Rate
GLM-5.4 Win Rate

The Loop Architecture

  • 更长的推理链获益更多。最大的提升出现在数学、科学推理和长上下文任务中,这些是 Generalized Coding 的核心。
  • 用于思考的 token 更少。在 GPQA-Diamond 和 MMLU-Pro 等大多数基准测试中,平均输出长度下降 10–14%,主要来自更短的思维链。实际上,部分推理从显式输出 token 转移到循环的隐式深度中。

Generalized Coding

Looking Ahead

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗