Back to models
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.

Quick Stats

Context

203K

Max Output

Provider

Z.ai

Specs

1

Modalities

in textout text

Specs & List Price (per 1M tokens)

Quality
Input $0.895522Output $3.58209Cache read $0.19403

Recommended Plan

GLM-5.1 Starter Plan

Pay-as-you-go after top-up; $1 free credit for new users.

Buy Plan

API Endpoint

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)

Start using this model

Sign up free, get an API key, and make your first call in 30 seconds.

GLM-5.1 · TokenPortal