返回模型列表
Z.ai

GLM-5.1

GLM-5.1 在编码能力方面实现了重大飞跃,尤其在处理长周期任务方面表现突出。与以往以微小交互为基础的模型不同,GLM-5.1 可以独立且持续地完成单一任务超过8小时,在整个过程中自主规划、执行并不断优化自身,最终交付完整且达到工程级标准的结果。 GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on a single task for more than 8 hours, autonomously planning, executing, and improving itself throughout the process, ultimately delivering complete, engineering-grade results.

快速参数

上下文

203K

最大输出

出品方

Z.ai

规格数

1

模态

输入 text输出 text

规格与刊例价(每百万 tokens)

高质量
输入 $0.895522输出 $3.58209缓存读取 $0.19403

推荐套餐

GLM-5.1 体验套餐

充值即用,按量计费;新用户享 $1 体验额度。

购买套餐

API 接入

Model IDz-ai/glm-5.1

cURL

curl https://intertoken.ai/v1/chat/completions \
  -H "Authorization: Bearer $TOKENPORTAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://intertoken.ai/v1",
    api_key="$TOKENPORTAL_API_KEY",
)

resp = client.chat.completions.create(
    model="z-ai/glm-5.1",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

立即使用此模型

免费注册,获取 API Key,30 秒接入