Z.ai
LLMGLM-5.2、GLM-5.3 与 GLM-5.3-Flash 享官方价 1.1 折(-89%),并支持高速版 GLM-5.3-FlashX。
Z.ai 全系列模型价格矩阵
查看单价、上下文/分辨率规格及输入输出模态,点击表头可切换升序/降序。
|
|
LLM | 1.05M ctx | 文本 → 文本 | ||
|
|
LLM | 1.05M ctx | 文本 → 文本 | ||
|
|
LLM | 1.05M ctx | 文本 + 图像 + 视频 → 文本 | ||
|
GLM-5.3 FlashX
glm-5.3-flashx
|
LLM | 1M ctx | $0.37 / $1.25 | $0.075(-80%) | 文本 + 图像 + 视频 → 文本 |
Z.ai 快速接入
使用同一个 OpenDesign Go API Key 调用 glm-5.2 或上方任意 Z.ai 模型 ID。
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "glm-5.2",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="glm-5.2",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "glm-5.2",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "glm-5.2",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);Z.ai 常见问题
OpenDesign Go 共收录 4 款 Z.ai 模型(LLM),均可通过同一个 OpenDesign Go API Key 调用。
Z.ai 最低起步价为 $0.0165/1M (-89% / $0.15)。符合条件的 Z.ai 模型在 OpenDesign Go 直接享受最高立省 89% 的折扣价。
复杂推理与多文件编码推荐 GLM-5.2(glm-5.2);高并发低成本场景推荐 GLM-5.3 Flash(glm-5.3-flash)。
将请求发往 https://amr-link.open-design.ai/v1,在 Header 中携带 Authorization: Bearer $COROUTER_API_KEY,并直接传入上方矩阵中的精确 Model ID(如 glm-5.2),无需添加厂商前缀。
Z.ai 模型命中 Prompt 缓存读取最高可省 81%。全上下文窗口采用统一费率,无长上下文加价。
可以。全部 17 家厂商共 88 款模型共用一个 API Key 与统一余额,并严格执行零数据留存(不存储提示词、输出或媒体文件)。