Z.ai error
Insufficient balance or no resource package. Please recharge.
Z.ai error code 1113, sent as HTTP 429, not 402. The account that owns the API key has no balance and no resource package to bill, so every call fails until you recharge or buy a package. Bought the GLM Coding Plan and still see it? Point your tool at the plan's base URL, not the general API.
The account has nothing to bill.
Recharge it or add a package.
What it means
Your Z.ai account has neither a usable balance nor an active resource package, so no call can be billed.
Nothing resets on a timer. It clears when you recharge or buy a package.
A GLM Coding Plan does not cover every call. Z.ai's FAQ says 1113 after buying the plan means the call missed its conditions: a supported tool, the plan's base URL and one of the plan's models. A call outside them bills the balance.
Fix it
- Recharge the balance, as the message says.
- Or buy a resource package for the account that owns the key.
- On the GLM Coding Plan, set the plan's base URL:
https://api.z.ai/api/anthropicfor Claude Code and Goose,https://api.z.ai/api/coding/paas/v4for other tools. Then call one of the plan's models.
Switch while you wait
Move the task to a vendor you already pay for while you recharge.
Or call Z.ai with a key whose account holds a balance.
With superbot
superbot is your own AI agent with a model of its own that runs on superbot credits, so it keeps working when a vendor's plan runs out.
It also puts your own API keys behind one base URL, with one caller key, in the OpenAI or Anthropic format.
Calls on your own keys spend no superbot credits, and you pay your provider as usual.
Z.ai tools take an OpenAI or Anthropic base URL, so see the OPENAI_BASE_URL page.
Related
Source: Z.ai docs: API reference, error codes and Z.ai docs: GLM Coding Plan FAQ. Read on 2026-11-26.