
GLM-5.1
Z.ai
- 上下文視窗
- 203K 202,752 token
- 最大輸出
- 131K 131,072 token
- 輸入 / 輸出
- 文字 → 文字
API 價格
USD / 百萬 token
| 輸入 | 輸出 | 快取輸入 |
|---|---|---|
|
|
|
時間軸
- · 權重版本 · 參考連結
輸入/輸出價格 · USD / 百萬 token
| 模型 | 參考連結 | 輸入/輸出價格 |
|---|---|---|
glm-5.1standard | zai-pricing API 路由無法使用 | $1.40 / $4.40 |
- · 參考連結 · GitHub search · Z.ai · pulls · anomalyco/models.dev · @models-dev-automation[bot]
- · 參考連結 · GitHub search · Z.ai · pulls · BerriAI/litellm · @dparkmit24
摘錄
env -u ZAI_API_KEY python -c 'import litellm; print(litellm.validate_environment(model="zai/glm-5.1"))'
- · 目錄記錄 · GitHub · MiniMax-AI/minimax-code · code
摘錄
/** * Shared compatibility shim for the `edit` tool's arguments. * * Two model-side quirks are normalized before schema validation runs (both * mirror Pi 0.79's builtin edit tool shim): * * 1. Some models (MiniMax-M3 / GLM-5.1) emit `edits` as a JSON string even * though the public schema is `edits[]` — parse it back into an array. * 2. Legacy single-edit input (`oldText` / `newText` at the top level) is * folded into `edits[]`. * * One shared implementation is referenced by all three edit defs * (agent-core base, desktop, cloud); edit-defs-contract tests assert the * references are identical. */ export interface PreparedEditArguments { path: string; edits: { oldText: string; newText: string }[]; } export function prepareEditArguments(args: unknown): PreparedEditArguments { if (!args || typeof args !== 'object' || Array.isArray(args
此程式碼引用並不能證實這是實際使用中的模型識別碼。
規格
GLM-5.1 是 Z.ai 的 AI 模型,權重開放,於 2026-04-07 發布。 上下文視窗為202,752 token。 最大輸出為131,072 token。 每百萬 token 的價格為:輸入 $1.40,輸出 $4.40。
- 上下文視窗
- 202,752
- 最大輸出
- 131,072
- 輸入
- 文字
- 輸出
- 文字
- 權重
- 開放
- 輸入 · USD / 百萬 token
- $1.40
- 輸出 · USD / 百萬 token
- $4.40
- 快取輸入 · USD / 百萬 token
- $0.26
常見問題
GLM-5.1 的上下文視窗有多大?
上下文視窗為202,752 token。 最大輸出為131,072 token。
GLM-5.1 的價格是多少?
每百萬 token 的價格為:輸入 $1.40,輸出 $4.40。 快取輸入價格為每百萬 token $0.26。
GLM-5.1 的權重是否開放?
是的,Z.ai 已公開權重。
GLM-5.1 何時發布?
2026-04-07。