AIFeed

GLM-5.4 API Now Available on Z.ai API Platform

Original text(via HN AI)

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:Text parameters are consistent with GLM-5.3, with support for a 1M-token context window.
  • Image Parameters:Add a content block with type: image_url to messages[].content[], and pass the image URL (recommended) or a Base64 Data URL through image_url.url. Multiple images can be added by including multiple image_url content blocks.
  • Recommended Settings: temperature: 1, top_p: 0.95, and reasoning_effort: max. thinking.type only supports enabled; we recommend setting thinking.clear_thinking: false. For streaming requests, we recommend enabling both stream: true and tool_stream: true.

GLM Coding Plan

Capability Support

  • Thinking Mode:Supports thinking mode for deeper reasoning; with the Loop Transformer, the model reasons more deeply without adding parameters, and part of the reasoning shifts from explicit output tokens into the implicit depth of the loop
  • Streaming Messages:Supports real-time streaming responses for an enhanced user interaction experience, with up to 200 tokens/s during off-peak hours and 70–80 tokens/s at peak load
  • Function Calling:Provides powerful tool-calling capabilities and supports integration with a wide range of external tools
  • Context Caching:Uses an intelligent caching mechanism to optimize performance in long-context conversations
  • Structured Output:Supports structured output formats such as JSON for seamless system integration

Key Advancements

GLM-5.4 Win Rate
GLM-5.4 Win Rate

The Loop Architecture

  • Longer reasoning chains benefit more. The largest gains show up in math, scientific reasoning, and long-context tasks, which are core to Generalized Coding.
  • Fewer tokens spent on thinking. Across most benchmarks like GPQA-Diamond and MMLU-Pro, average output length drops by 10–14%, mostly from shorter chains of thought. In effect, part of the reasoning shifts from explicit output tokens into the implicit depth of the loop.

Generalized Coding

Looking Ahead

The text above was extracted automatically from the source page and may miss images, tables or code blocks. 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 ↗