首页/GLM-5.1
ChatGLM

GLM-5.1

zai-org/glm-5.1
GLM-5.1 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. While its general capabilities and coding proficiency are on par with Claude Opus 4.6, GLM-5.1 excels particularly in sustained execution, complex engineering optimization, and real-world development scenarios. This makes it the ideal foundational model for powering advanced autonomous agents and long-horizon coding assistants.
价格
输入$1.38/百万 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.jiekou.ai/openai"
6)
7
8response = client.chat.completions.create(
9    model="zai-org/glm-5.1",
10    messages=[
11        {"role": "system", "content": "You are a helpful assistant."},
12        {"role": "user", "content": "Hello, how are you?"}
13    ],
14    max_tokens=131072,
15    temperature=0.7
16)
17
18print(response.choices[0].message.content)

信息

提供商
量化
fp8

支持的功能

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