首页/GLM 5.2
ChatGLM

GLM 5.2

zai-org/glm-5.2
GLM-5.2 is Z.AI's latest flagship model, meticulously engineered for long-horizon autonomous tasks. Capable of working continuously on a single assignment for up to 8 hours, it autonomously manages the entire workflow—from initial planning and execution to iterative optimization and the delivery of production-grade results. With coding and agentic capabilities that rival leading proprietary frontier models, it excels particularly in sustained execution, complex engineering optimization, and real-world development scenarios. Its context window has been expanded from 200K to 1M tokens, making it an ideal foundational model for powering advanced autonomous agents and long-horizon coding assistants.
价格
输入$1.4/百万 tokens
Cached reads$0.26/百万 tokens
输出$4.4/百万 tokens

使用以下代码示例来集成我们的API:

1from openai import OpenAI
2
3client = OpenAI(
4    api_key="<Your API Key>",
5    base_url="https://api.highwayapi.ai/openai"
6)
7
8response = client.chat.completions.create(
9    model="zai-org/glm-5.2",
10    messages=[
11        {"role": "system", "content": "You are a helpful assistant."},
12        {"role": "user", "content": "Hello, how are you?"}
13    ],
14    max_tokens=163840,
15    temperature=0.7
16)
17
18print(response.choices[0].message.content)

信息

提供商
量化
fp8

支持的功能

上下文长度
1048576
最大输出
163840
函数调用
支持
结构化输出
支持
推理
支持
serverless
支持
Input Capabilities
text
Output Capabilities
text
联系我们