GLM-5.3 对话补全
通过 PixMind 调用 GLM-5.3,完成仓库级工程、长程 Agent、复杂推理、工具调用与流式输出。
GLM-5.3 是面向复杂软件工程和长程 Agent 工作流的大型推理线路。任务需要仓库级上下文、多步工具调用以及长流程中的一致决策时,可通过 PixMind 的 OpenAI 兼容接口接入。
通过 PixMind 兼容 OpenAI 的聊天补全接口调用 GLM-5.3。
提供方
Zhipu AI模型 ID
glm-5.3请求端点
POST /api-platform/v1/chat/completions模型说明
- 请将 API Key 保存在服务端;客户端需要增量输出时可启用流式返回。
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 稳定的 PixMind 模型 ID,请使用 `glm-5.3`。 可选值: |
messages | array | 是 | 兼容 OpenAI 的对话消息。Gemini 用户消息的 content 可以是字符串,也可以是 text、image_url 和 video_url 内容块数组。 |
max_tokens | integer | 否 | 本次请求最多生成的 completion token 数量。 默认值: |
temperature | number | 否 | 响应的采样温度。 可选值: 默认值: |
stream | boolean | 否 | 启用后逐步流式返回 token。 可选值: 默认值: |
请求示例
curl https://aihub-admin.aimix.pro/api-platform/v1/chat/completions \
-H "Authorization: Bearer $PIXMIND_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"stream": false
}'const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "glm-5.3",
"messages": [
{
"role": "user",
"content": "Draft three launch concepts for this product."
}
],
"stream": false
})
});
const task = await response.json();任务受理响应
生成任务为异步处理。请保存 taskId,并轮询 GET /api-platform/v1/tasks/{taskId},直到状态为 ready 或 failed。
{
"code": 1000,
"data": {
"id": "img_44160",
"taskId": 44160,
"type": "image",
"model": "glm-5.3",
"status": "processing"
}
}API 定价
| 配置 | 价格 |
|---|---|
| 输入 Token | 1400 credits / 1M tokens |
| 输出 Token | 4900 credits / 1M tokens |
| 缓存读取 | 350 credits / 1M tokens |
API 使用 apiPlatform 角色独立计费,与 PixMind Studio 积分分开;任务受理响应中的价格快照是最终计费依据。
Create a chat completion POST
Creates a model response for the given conversation. OpenAI-compatible — works with the OpenAI SDK by setting `baseURL` to `https://aihub-admin.aimix.pro/api-platform/v1`. Set `stream: true` to receive a Server-Sent Events stream of `chat.completion.chunk` objects terminated by `data: [DONE]`.
GLM-5.3-Flash 对话补全
通过 PixMind 调用 GLM-5.3-Flash,完成高性价比多模态编程、视觉推理、Agent 子任务、工具调用与流式输出。