GLM-5-Turbo
输入$1.2/M
输出$4/M
缓存读取$0.24/M
上下文205K
对比 GPT-4o便宜约 76%
厂商牌价,无平台加价,按量付费。 以下为官方 list 价。登录客户可在 /console/pricing 查看含工作空间折扣的实际价格。 按 70% 缓存命中率计算的等效输入价:$0.528/M. 自动提示词缓存:重复的提示词前缀按价格表所示的缓存命中费率计费,无需改代码。
30 秒用上 GLM-5-Turbo
OpenAI 兼容:换掉 base_url,SDK 不用改。POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="glm-5-turbo",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "glm-5-turbo",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5-turbo",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "glm-5-turbo",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("glm-5-turbo")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));关于 GLM-5-Turbo
为 OpenClaw 智能体场景深度优化
工具调用与指令拆解更精准
时间感知处理定时与持久任务
GLM-5-Turbo 是 Z.AI 针对 OpenClaw 智能体场景深度优化的基础模型。
- 与基础版 GLM-5 相比,官方文档强调四项针对性升级:更精准的工具调用、更强的复杂指令拆解、对定时与持久任务的时间感知处理,以及长逻辑链上的更高吞吐。
- 它提供 200K 上下文窗口和最高 128K 输出 token,支持思考模式、流式输出、函数调用、上下文缓存、结构化 JSON 输出和 MCP 工具集成。
- 在 Synthorai 上,GLM-5-Turbo 可通过标准 OpenAI 兼容 API 调用。
规格与限制
| 最大输出(厂商规格) | 131,072 |
| 模态 | text → text |
| 特性 | tools · structured_output · streaming · reasoning · caching |
| 备注 | API-only speed-optimized GLM-5 variant tuned for the OpenClaw agent scenario: more reliable tool invocation and long-running task stability; 200K context / 128K max output. |
| 提示词缓存 | 自动 |
依据 Z.ai 官方文档 ↗
常见问题
GLM-5-Turbo API 可以免费试用吗?
可以。新账号可获得 10 次试用调用和最高 $1 的免费额度,无需绑卡。按输入 $1.2/M 计算,仅这笔额度就足够对 GLM-5-Turbo 发起约 104 次 ~8K token 的请求。
GLM-5-Turbo 最擅长什么?
为 OpenClaw 智能体场景深度优化,以及工具调用与指令拆解更精准和时间感知处理定时与持久任务。完整能力请见 About 部分,内容取自厂商官方发布说明。
GLM-5-Turbo 的价格是多少?
在 Synthorai 上,GLM-5-Turbo 输入 $1.2/百万 token、输出 $4/百万 token,即厂商牌价,无平台加价。缓存命中的输入 token 按 $0.24/M 计费。
GLM-5-Turbo 支持提示词缓存(prompt caching)吗?
支持,且全自动:经 Z.ai 提供的提示词自动缓存,无需改代码。缓存命中的输入 token 按 $0.24/M 计费(未命中 $1.2/M)。 提示词缓存指南 →
如何开通 GLM-5-Turbo?
把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "glm-5-turbo" 即可。一把 API key 通用网关上的全部模型。