GLM-5.2

Model Information

Display Name: GLM-5.2

API Model ID: zai-org/glm-5.2

Category: Text To Text

Description: GLM-5.2 is Z.ai (Zhipu AI)'s flagship open-weights model — a 744B-parameter Mixture-of-Experts (~40B active) built for long-horizon, coding-first agentic tasks. It delivers a solid 1M-token context, a major leap over GLM-5.1. **Key Features:** - 1,000,000-token context window (repository-scale) - Up to 131K output tokens - Mixture-of-Experts: 744B total / ~40B active - Adaptive reasoning (thinking) with selectable effort - Function/tool calling and JSON structured outputs - Prompt caching for cheaper repeated context **Best For:** - Long-horizon agentic coding and large-codebase work - Repository-scale analysis and refactors - Complex reasoning and tool-using workflows

Context Window: 1,048,576 tokens

Max Output: 131,072 tokens

How to Use This Model

To use GLM-5.2 via the HInow.ai API, use the model ID: zai-org/glm-5.2

API Request Example (Chat/Text)


POST https://api.hinow.ai/v1/chat/completions
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "model": "zai-org/glm-5.2",
  "messages": [
    {"role": "user", "content": "Your message here"}
  ]
}
              

Pricing

  • input: $2.10
  • output: $6.60
  • cached: $0.375

Available Parameters

  • temperature: Controls randomness (0-2). Higher = more creative, lower = more deterministic. Default: 0.7 (Options: 0, 0.3, 0.5, 0.7, 1.0, 1.5, 2.0)
  • top_p: Nucleus sampling threshold (0-1). Default: 0.9 (Options: 0.1, 0.5, 0.7, 0.9, 0.95, 1.0)
  • top_k: Limits sampling to top K tokens. Default: off (Options: 10, 20, 40, 50, 100)
  • max_tokens: Maximum tokens to generate. Default: 4096 (Options: 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072)
  • thinking: Toggle adaptive reasoning. Omit for the model default (adaptive). (Options: on, off)
  • response_format: Output format for structured responses (Options: text, json_object, json_schema)
  • tools: Function/tool definitions for agentic workflows
  • stop: Up to 4 sequences where the API stops generating further tokens

Quick Reference

To use this model, set: "model": "zai-org/glm-5.2"

Featured: No

Documentation: https://hinow.ai/models/zai-org/glm-5.2

API Endpoint: https://api.hinow.ai/v1

Back to Models
GLM-5.2

GLM-5.2

zai-org/glm-5.2

$2.10 / $6.60
per 1M tokens (in/out)

About

GLM-5.2 is Z.ai (Zhipu AI)'s flagship open-weights model — a 744B-parameter Mixture-of-Experts (~40B active) built for long-horizon, coding-first agentic tasks. It delivers a solid 1M-token context, a major leap over GLM-5.1.

Key Features:

  • 1,000,000-token context window (repository-scale)
  • Up to 131K output tokens
  • Mixture-of-Experts: 744B total / ~40B active
  • Adaptive reasoning (thinking) with selectable effort
  • Function/tool calling and JSON structured outputs
  • Prompt caching for cheaper repeated context

Best For:

  • Long-horizon agentic coding and large-codebase work
  • Repository-scale analysis and refactors
  • Complex reasoning and tool-using workflows

Capabilities

Text To Text
Context1049K tokens
Max Output131K tokens

Parameters

temperature

Controls randomness (0-2). Higher = more creative, lower = more deterministic. Default: 0.7

00.30.50.71.01.52.0
top_p

Nucleus sampling threshold (0-1). Default: 0.9

0.10.50.70.90.951.0
top_k

Limits sampling to top K tokens. Default: off

10204050100
max_tokens

Maximum tokens to generate. Default: 4096

2565121024204840968192163843276865536131072
thinking

Toggle adaptive reasoning. Omit for the model default (adaptive).

onoff
response_format

Output format for structured responses

textjson_objectjson_schema
tools

Function/tool definitions for agentic workflows

stop

Up to 4 sequences where the API stops generating further tokens

Code Examples

curl -X POST https://api.hinow.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HINOW_API_KEY" \
  -d '{
    "model": "zai-org/glm-5.2",
    "messages": [
      {"role": "user", "content": "Hello! How are you?"}
    ],
    "parameters": {
      "temperature": "0",
      "top_p": "0.1",
      "top_k": "10",
      "max_tokens": "256",
      "thinking": "on",
      "response_format": "text",
      "tools": "",
      "stop": ""
    }
  }'