Z.ai(Zhipu)

GLM-5.2

glm-5.2Available

GLM-5.2。テキスト生成モデル。

Context
1M tokens

Pricing (USD per 1M tokens)

How prices are calculated
Prices (USD per 1M tokens)
ItemOfficialBasic
Input$1.40≈ ¥222$1.40≈ ¥223
Output$4.40≈ ¥698$4.40≈ ¥701
Cache read$0.26≈ ¥41.2$0.26≈ ¥41.4

Cost per task vs. models at a similar price

Compare them

How to call

POST/v1/chat/completions

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://token.echohub.io/v1",
    api_key=os.environ["ECHO_API_KEY"],
)

res = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)
its developer docs