Back to models
Z.ai

GLM-5

GLM-5 是智谱最新模型,专为编程与智能体场景打造,擅长复杂系统工程与长程任务,支持 200K 上下文。

Quick Stats

Context

203K

Max Output

Provider

Z.ai

Specs

1

Modalities

in textout text

Specs & List Price (per 1M tokens)

Quality
Input $0.597015Output $2.686567

Recommended Plan

GLM-5 Starter Plan

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

Buy Plan

API Endpoint

Model IDz-ai/glm-5

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",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (openai SDK)

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",
    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.