GLM-5.3 FlashX
在线与 GLM-5.3 FlashX 对话,或通过兼容 Anthropic 或 OpenAI 的 API 进行调用。约 200 tokens/s、1M-token 上下文、推理和图像输入。
A codebase you don't know is a risk, not a hurdle. The plan should burn down that risk in order: understand, run, trace, spike, then make the change small enough that "production-ready" is a property you can demonstrate, not a hope.
Here are the first five steps, with the evidence you collect at each.
Step 1 — Get it building and the baseline green (half day)
Read the README, the manifest(s), the CI config, and any architecture docs. Boot the app locally, run the full test suite, run the linter/typechecker.
Evidence: The exact commands that reproduce a clean build and a passing test suite from a fresh checkout (recorded output, not memory of it). A one-page map you wrote yourself: where the entry points are, the layers, the build/test toolchain, and the main risks to your feature (e.g. "this touches cron jobs and payments").
Step 2 — Trace the smallest end-to-end slice that resembles your feature (half day)
Don't start with your feature. Pick a neighboring one that already works and follow it from entry to persistence. Note the conventions along the way: how errors surface, how config is injected, how logging is done, how tests are written.
Evidence: An annotated trace — file → function → what it does — for that slice. A written list of "conventions I must follow" (not intuitions; things you observed in real code). A named shortlist of the 3–5 files you will actually touch. If you can't produce this trace, you're not ready to write code.
Step 3 — Spike the core path (day 2)
Build the ugly version: hardcoded values, no error handling, no tests. The purpose is to confirm the path you traced in step 2 is real and to surface what you didn't know you didn't know.
Evidence: A working spike demonstrating the feature's central data path, alongside a list of every assumption the spike broke and what you corrected. That correction list is the most valuable document in this whole plan.
Step 4 — Write the contract before the code (half of day 2 / day 3)
Once the spike proves the path, pin down what production needs: the inputs/outputs, the error cases, where it sits in the conventions from step 2. Then write the tests — they'll be red, but they're the specification.
Evidence: A one-to-two-page design doc, an agreed interface/API shape (with the team if there is one), and a red test suite that encodes intended behavior. If you can't write the contract without consulting the code, you haven't finished step 2.
Step 5 — Implement in small, verified increments (days 3–4)
Replace the spike with the real thing in small commits, each one keeping the suite green, leaning on the existing patterns. Run lint/tests/typecheck per commit — CI, not just locally — and exercise the actual path against a real instance (staging or a local environment that isn't stubbed).
Evidence: A branch with progressive commits, each green in CI; coverage on the new code; something that proves it works against reality (a test result, a log trace, a screenshot); and a review by at least one person who knows the codebase. The review counts as evidence — an unfamiliar codebase has tribal knowledge you cannot extract from the files alone.
Steps 6+ would be the things that actually make it "shipped": a migration plan and its rollback, feature flagging, observability, the release and post-release verification. But the first five get you to a reviewed, green, working slice in staging — which is the point at which you can say "this will work in production" with evidence behind it, instead of a guess.
在本页直接运行,需要登录并有积分。
模型详情
在 Playground、API 请求和内部工作流中使用相同的模型 key。
- 模型 ID
- glm-5.3-flashx
- 供应商
- Zhipu
- 协议
- Anthropic Messages · OpenAI Chat Completions
- 上下文窗口
- 1,000,000 Token
- 最大输出
- 128,000 Token
- 输入 Token
- 18.5 credits / 1M Token
- 输出 Token
- 62.5 credits / 1M Token
- 缓存读取
- 3.75 credits / 1M Token
- 缓存写入
- -
什么是 GLM-5.3 FlashX
GLM-5.3 FlashX 是 GLM-5.3-Flash 的高速版本,也是 Z.ai 旗下 GLM-5 系列的首款原生多模态模型。两者共享同一个 model card;FlashX 的服务速度约为每秒 200 tokens,因此长文本回答和 agent 循环能更快完成。
1M tokens
每次请求 128K tokens
据 Z.ai 表示,每秒约 200 tokens
通过 API 支持文本和图像输入;输出为文本
始终开启;无法禁用思考
Function calling、结构化 JSON 输出、streaming 和 context caching
glm-5.3-flashx
GLM-5.3 FlashX 测试结果
我们于 2026 年 11 月 25 日使用模型 ID glm-5.3-flashx 在 AIReiter API 上运行了这些请求。Token 计数来自每次响应的 usage 字段。
简短回答约需 1.5 秒
要求仅以数字返回 17*23 的结果,每次运行均在 1.1 至 1.8 秒内返回 391,包含推理在内消耗了 21 至 38 个输出 tokens。
流式输出推理过程,随后返回回答
开启 stream 时,推理过程首先以 thinking deltas 形式到达,随后回答以 text deltas 形式呈现。首个事件在约 1.6 秒后到达,完整回复在 1.9 秒后完成。
图像输入
给定一个以 base64 格式呈现的 64x64 红蓝棋盘格,它在 1.7 秒内回答了红蓝两色,并在推理过程中描述了棋盘格图案。
Prompt 缓存
发送两次相同的 4,000-token 前缀,第二次请求报告了 cached input tokens,并按更低的 cached-input 费率计费。
GLM-5.3 FlashX 基准测试
Z.ai 发布了 GLM-5.3-Flash 的一套测试成绩,而 FlashX 是该模型速度更快的推理服务版本。这些均为厂商自测数据,而非 AIReiter 的实测指标,因此在将生产流量迁移之前,请先在 playground 中使用您自己的 prompt 进行测试。
DeepSWE v1.1: 63.4
高于 GLM-5.2 的 46.2,并在该软件工程 agent 基准测试中领先于 Claude Opus 4.8(58.0)。
AutomationBench: 48.8
高于 GLM-5.2 的 26.2,是 Z.ai 表格中增幅最大的项目。Claude Opus 4.8 得分为 41.0。
Terminal Bench 2.1: 84.3
针对真实终端任务的代码编写 agent。GLM-5.2 得分为 81.0,Claude Opus 4.8 得分为 85.0。
GDPVal-AA v2: 1773
真实世界的专业任务,以 Elo 评级。GLM-5.2 得分为 1504,Claude Opus 4.8 得分为 1582。
HLE(带工具): 55.3
结合工具使用的专家级问题。GLM-5.2 得分为 54.7,Claude Opus 4.8 得分为 57.9。
Artificial Analysis 指数: 57
在 Intelligence Index v4.1.1(2026 年 8 月 26 日)中,GLM-5.3-Flash 处于所对比的 59 个模型的成本前沿:按单任务成本计算,没有更便宜的模型能获得更高分数。
GLM-5.3 FlashX 对比 GLM-5.3 Flash 和 GLM-5.3
FlashX 与 Flash 是以不同速度提供服务的同一模型。GLM-5.3 则是体量更大、仅支持纯文本的同系列模型。除 model ID 外,两者的请求完全一致。
追求响应速度请选 FlashX
聊天界面、多轮 agent 循环以及用户等待的长时间文本生成,都能从每秒约 200 个 token 的速率中最大化受益。
批量处理任务请选 GLM-5.3 Flash
拥有相同的 320B 总参数和 18B 激活参数以及相同的基准测试分数,在对速度要求不高时,每 token 单价更低。
GLM-5.3 仅支持纯文本
GLM-5.3 共有 92 层,包含 355B 总参数和 32B 激活参数,且不接收图像输入。FlashX 拥有 45 层并支持读取图像。
专为长上下文设计
Z.ai 结合了线性注意力与稀疏注意力机制,据官方报告,在 1M token 下,每层相比 GLM-5.3 减少了 4.44 倍的 KV cache 和 3.01 倍的 attention 计算量。
在代码中调用 GLM-5.3 FlashX
管理 API 密钥 →修改 base URL 后,即可在现有的 Anthropic 或 OpenAI 客户端中使用您的 AIReiter key。上方的 API 标签页提供了可直接运行的请求示例。
glm-5.3-flashx
https://aireiter.com/api/v1/messages。推理内容会以 thinking blocks 的形式返回,与文本答案分开。
https://aireiter.com/api/v1/chat/completions。推理内容将在 reasoning_content 中返回。
在 image block(Messages)或 image_url 部分(Chat Completions)中发送 base64 数据。
推理按输出计费并共享 max_tokens,因此对于多步骤任务,请将 max_tokens 保持在 8,192 或更高。
用 3 步试用 GLM-5.3 FlashX
- 01
提交真实任务
粘贴您实际需要处理的工作,例如附带上下文代码的堆栈跟踪(stack trace),或需要转换为 JSON 的文档。FlashX 的流式传输速度极快,您可以在 playground 中快速迭代 prompt。
- 02
为推理预留空间
Thinking 始终处于开启状态并计入 max_tokens。对于多步骤任务,请将 max_tokens 保持在 8,192 或更高,以确保推理完成后答案不会被截断。
- 03
复制 API 调用代码
在 Anthropic Messages 或 OpenAI 兼容端点上使用 model ID glm-5.3-flashx 将相同的请求迁移至您的代码中。每次回复的 Token 使用量都会显示在响应下方。
常见疑问
01什么是 GLM-5.3 FlashX?
GLM-5.3 FlashX 是 Z.ai 推出的 GLM-5.3-Flash 高速版本,输出速度约为每秒 200 个 token。它保留了 Flash 模型的 1M token 上下文、128K 输出限制、始终开启的推理能力以及文本和图像输入支持,因此主要区别在于获得回答的速度。
02FlashX 与 GLM-5.3 Flash 有何不同?
Z.ai 在同一个 model card 中对两者进行了说明,它们具有相同的 320B 总参数和 18B 激活参数,因此模型能力和基准测试得分完全一致。FlashX 的服务响应更快,达到每秒约 200 个 token,但每个 token 的成本更高。除 model ID 之外,调用请求完全相同。
03我可以关闭推理功能吗?
不可以。Z.ai 运行 GLM-5.3 FlashX 时始终开启思考模式,且 thinking.type 仅接受 enabled。推理 token 按照输出计费。简短问题的费用依然很低,但对于多步骤任务,请预留足够的 max_tokens,以确保最终答案不会被截断。
04GLM-5.3 FlashX 可以读取图像吗?
可以,通过 API 即可。您可以在 Messages 端点的 image 块中以 base64 数据形式发送图像,或者在 Chat Completions 中通过 image_url 传入。在我们的测试中,它正确识别出了红蓝棋盘的两种颜色。目前此 Playground 暂时关闭了图像上传功能,因此请通过 API 测试视觉能力。
05它支持工具调用和 JSON 输出吗?
支持。Z.ai 列出 GLM-5.3 FlashX 支持 function calling、诸如 JSON 等结构化输出以及流式传输。无论您调用哪个端点(Anthropic Messages 或 OpenAI Chat Completions),都可以按常规方式定义 tools,并在返回每个工具结果时附带所响应调用的 id。
06我应该使用哪个 API?
两者均可使用相同的密钥和 model ID。我们推荐使用 Anthropic Messages 端点,它将推理过程作为 thinking 块返回,将答案作为 text 块返回。兼容 OpenAI 的 Chat Completions 端点则在 content 中返回答案,在 reasoning_content 中返回推理内容。
07在哪里可以查看价格?
本页面的实时价格表显示了每 1M token 的当前输入、输出和缓存输入价格。计费依据每次响应返回的 usage,缓存输入则按较低的缓存费率计费。