Z.ai文本模型
GLM-5-Turbo
模型介绍
GLM-5-Turbo is a foundation model deeply optimized for the OpenClaw scenario. It has been specifically optimized for the core requirements of OpenClaw tasks since the training phase, enhancing key capabilities such as tool invocation, command following, timed and persistent tasks, and long-chain execution. 通过统一 API 即可完成接入,支持弹性并发、用量监控和团队级密钥管理,适合从快速验证到稳定调用的完整链路。
模型类型文本模型
上下文200K
最大输出128K
起步价格$1.2 / M
API 协议
能力与模态
当前模型版本支持的输入输出能力
输入模态
模型体验
Function Calling
结构化输出
网页搜索
输出模态
前缀续写
Cache
批量推理
模型微调
模型价格
价格与能力以接口实时数据为准
输入价格$1.2 / M
输出价格$4 / M
缓存读取$0.24 / M
网页搜索$0.01 / request
API 接口
当前模型可以使用的调用端点
/v1/messages支持
/v1/chat/completions支持
/v1/responses支持
API 接入示例
选择协议与语言,配置 API Key 后运行
Messages
先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。
POST
https://api.tikway.ai/v1/messages1curl --fail-with-body 'https://api.tikway.ai/v1/messages' \2 -H "x-api-key: $AI_GATEWAY_API_KEY" \3 -H 'anthropic-version: 2023-06-01' \4 -H 'Content-Type: application/json' \5 -d '{6 "model": "z-ai/glm-5-turbo",7 "max_tokens": 1024,8 "messages": [9 {10 "role": "user",11 "content": "用三句话介绍 Tikway"12 }13 ]14}'