GLM Coding Plan usage is subject to both a 5-hour allowance and a weekly allowance; GLM-5.4's credits formula is "input tokens × 4.6 + cached input tokens × 1.1 + output tokens × 16, then divided by 10,000." Estimate usage first based on the task's cache hit rate and peak/off-peak distribution, then choose Lite, Pro, or Max.
Suitable tasks: Estimate GLM-5.4's weekly usage, concurrency budget, and plan capacity for agents such as ZCode, Claude Code, Codex, and OpenCode.
Unsuitable tasks: Treat the official token ranges as guaranteed values for any project, or use them in place of actual billing, team plan rules, and real-time rate-limit checks.
Applicable model versions: GLM-5.4; the page also lists GLM-5.3 and GLM-5.3-Flash.
Applicable clients, agents, or APIs: Agent tools supported by GLM Coding Plan; follow the official configuration page for the relevant tool for the specific integration method.
Recommended reasoning tier and parameters: The source does not provide reasoning-tier parameters; configuration should focus on plan allowances, cache hit rate, peak/off-peak periods, and MCP call volume.
| Plan | 5-hour credits | Weekly credits |
|---|---|---|
| Lite | 2,000 | 10,000 |
| Pro | 12,000 | 60,000 |
| Max | 28,000 | 140,000 |
The 5-hour allowance refreshes dynamically 5 hours after consumption; the weekly allowance resets every 7 days after the subscription is activated. Actual available capacity is constrained by both:
可用 credits = min(5 小时窗口剩余额度, 周窗口剩余额度)模型 credits =
(输入 token × 输入倍率
+ 缓存输入 token × 缓存输入倍率
+ 输出 token × 输出倍率) / 10,000
MCP credits = MCP 调用次数 × 输出倍率The GLM-5.4 multipliers are below; these are usage-calculation multipliers, not model-quality weights:
| Product | Input multiplier | Cached input multiplier | Output multiplier |
|---|---|---|---|
| GLM-5.4 | 4.6 | 1.1 | 16 |
The page also lists 6.9 / 1.7 / 24 for GLM-5.3 and 2.3 / 0.56 / 8 for GLM-5.3-Flash. The MCP output multiplier is 1.2 for Web Search, Web Reader, and Zread.
The following is a derivation based on the official formula, not a measurement from the source: assume a request has 1,000,000 input tokens, of which 95% are cached input, and 50,000 output tokens, with no MCP calls.
credits
= (50,000 × 4.6 + 950,000 × 1.1 + 50,000 × 16) / 10,000
= 207.5 creditsAs a rough conversion based on the weekly allowance, this type of request would be approximately:
| Plan | Weekly allowance ÷ 207.5 | Theoretical requests/week |
|---|---|---|
| Lite | 10,000 ÷ 207.5 | About 48 |
| Pro | 60,000 ÷ 207.5 | About 289 |
| Max | 140,000 ÷ 207.5 | About 674 |
This considers only the weekly allowance; the 5-hour window, actual input/output lengths, cache hit rate, MCP calls, and peak/off-peak periods still need to be checked separately.
Peak hours: Monday through Friday, 14:00–18:00 Singapore Standard Time (UTC+8), charged at the standard credit rate.
Off-peak hours: Model usage is charged at 50% of the standard credit rate.
The official token allowance ranges are calculated based on this difference: the maximum token allowance assumes all usage occurs during off-peak hours, while the minimum token allowance assumes all usage occurs during peak hours.
Record the input tokens, cached input tokens, and output tokens for each agent request, along with the number of Web Search, Web Reader, and Zread calls.
Calculate credits per request using the official formula, then aggregate them separately for the 5-hour window and the calendar-week window.
Replace the example's 95% cache assumption with the cache hit rate and peak/off-peak distribution from the last 7 days.
Check the 5-hour allowance during peak hours first, then check the weekly allowance; treat either exhausted window as a reason not to scale further.
Cross-check the token and tool-call details on the official Charge Type page to calibrate the local estimate.
The allowances for Lite / Pro / Max are 2,000 / 12,000 / 28,000 (5 hours) and 10,000 / 60,000 / 140,000 (weekly), respectively.
Allowance rules: 5-hour credits refresh 5 hours after consumption; weekly credits reset every 7 days.
GLM-5.4's input, cached input, and output multipliers are 4.6 / 1.1 / 16.
The MCP output multiplier is 1.2 for Web Search, Web Reader, and Zread.
The official GLM-5.4 weekly token allowance (in millions of tokens) is: with a 95% cache hit rate, Lite 72–146, Pro 440–870, and Max 1,014–2,028; at 96%, 75–149, 446–893, and 1,041–2,081; at 98%, 78–156, 470–941, and 1,097–2,195.
Peak hours are Monday through Friday, 14:00–18:00 (UTC+8); off-peak usage is charged at 50% of the standard credit rate.
Credits are not a fixed equivalent of tokens; the input, cached input, and output multipliers, as well as peak/off-peak rates, all affect the conversion.
The official token allowance is a range estimate that depends on cache hit rate and peak/off-peak assumptions; it does not guarantee that a specific agent workflow can reach that range.
The 5-hour allowance and weekly allowance are independent constraints; choosing a plan based only on the weekly allowance may fail under short-term traffic spikes.
The example does not include MCP calls, retries, failed requests, differences between team plans, or tool-specific rate limits.
The page lists multiple supported models, but this article uses only GLM-5.4's multipliers in its calculation examples; do not mix multipliers from different models.
Open the official page in Tabbit: https://docs.z.ai/devpack/overview.
Locate the sections on Usage Credit Allowance, Credit Calculation, Estimated Token Allowance, and peak/off-peak periods.
Substitute the page's original multipliers into the formula; the example's 95% cache hit rate, 1,000,000 input tokens, and 50,000 output tokens are calculation assumptions for this article.
Before starting an actual subscription, review the official Charge Type page again to verify consumed tokens and MCP call counts.
GLM-5.4