Zhipu

Z.ai: GLM 5.1

Chat
z-ai/glm-5.1
コンテキストウィンドウ
200K
最大出力トークン
128K
リリース日
2026-03-27
機能
Function Calling推論プロンプトキャッシュWeb検索
利用可能なプロバイダー
ZhipuZhipuBaiLianAliyun
対応プロトコル
OpenAIopenaiAnthropicanthropic

Providers

BaiLianAliyun
入力トークン
$1.4/M
出力トークン
$4.4/M
キャッシュ読込
$0.26/M
キャッシュ書込
$1.5/M
Web検索
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic
ZhipuZhipu
入力トークン
$1.4/M
出力トークン
$4.4/M
キャッシュ読込
$0.26/M
Web検索
$0.01/R
Protocols
OpenAIopenai/v1/chat/completions
Anthropicanthropic

コード例

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.io/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="z-ai/glm-5.1",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

稼働状況

よくある質問

Ofox.aiでのZ.ai: GLM 5.1の料金は、入力100万トークンあたり$1.4/M、出力100万トークンあたり$4.4/Mです。従量課金制、月額料金なし。