Zhipu AI

GLM 5.2

Built for reasoning, coding, and long-context agent tasks, improving over GLM-5.1 in context length, tool use, and complex multi-step workflows. Compared with Chinese flagship peers such as Qwen, DeepSeek, and Kimi, it fits enterprise automation, project-level code analysis, and knowledge work in Chinese.

  • Suy luận
  • Sử dụng công cụ
  • Gọi hàm
  • Đầu ra có cấu trúc
  • Ngữ cảnh dài

Mô tả chưa có ở ngôn ngữ này nên nội dung tiếng Anh đang được hiển thị.

USD

Bảng giá

default
Giá tiêu chuẩn
Đầu vào$1.19/1M tokensGiá hoàn thiện$4.14001/1M tokensĐọc cache$0.280007/1M tokens

Giá niêm yết bằng USD. Chi phí cuối có thể thay đổi theo nhóm tài khoản và mức sử dụng.

API

Ví dụ mã

import http.client
import json

conn = http.client.HTTPSConnection("api.tokenhot.cn")
payload = json.dumps({
   "model": "glm-5.2",
   "messages": [
      {
         "role": "user",
         "content": "What model are you"
      }
   ]
})
headers = {
   'Authorization': 'Bearer <token>',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/chat/completions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

Zhipu AI

Mô hình liên quan

ZhipuZhipu AIGLM 5.3

A flagship workhorse for complex software engineering and long-horizon agent tasks. It uses the same base model as GLM-5.2, with improvements driven by post-training, delivering a 50% gain on Z.ai Code Bench alongside stronger terminal-operation and vulnerability-discovery capabilities. It offers a 1M-token context window, up to 128K output, always-on reasoning with low, high, and max effort levels, function calling, and structured outputs. It currently accepts text only and is not intended for tasks requiring visual understanding.

$1.19/1M tokens
ZhipuZhipu AIGLM Image

Built for image generation and editing, with a stronger focus than earlier GLM vision capabilities on Chinese prompts, image-text understanding, and controllable generation. Compared with GPT Image, Gemini image models, and Qwen Image, it fits Chinese marketing assets, explanatory visuals, and iterative visual edits.

$0.88/1M tokens
OpenAIOpenAIGPT 5.4 Nano

Built for reasoning, coding, visual understanding, and agent tasks, with stronger long context, tool use, and scalable reliable output than GPT-5.3. Compared with Claude, Gemini, and Qwen flagship models, it is a strong general-purpose base for reliable automation and complex knowledge workflows.

$0.2/1M tokens
XiaomiMiMoXiaomiMiMoXiaomi Mimo V2.5

Built for agents, coding, and long-context tasks, offering more complete multimodal understanding, a million-token context window, and long-horizon reasoning than MiMo V2. Compared with Chinese peers such as Qwen, GLM, and DeepSeek, its strengths are Xiaomi ecosystem fit and engineering automation scenarios.

$75/1M tokens

FAQ

Câu hỏi thường gặp

GLM 5.2 phù hợp nhất với trường hợp nào?

GLM 5.2 phù hợp với các loại đầu vào, đầu ra và khả năng được liệt kê trên trang. Hãy kiểm thử tải thực tế trước khi dùng cho hệ thống quan trọng.

GLM 5.2 được tính phí thế nào?

Giá được hiển thị ở phần trên. Chi phí thực tế phụ thuộc vào lưu lượng, nhóm tài khoản và nội dung yêu cầu.

Làm sao gọi GLM 5.2?

Dùng ID mô hình phía trên với giao thức API được hỗ trợ. Ví dụ mã sẽ hiển thị khi có dữ liệu sử dụng.

Bắt đầu

Xây dựng với GLM 5.2

Dùng trong Console