Z.AI's standard model API and GLM Coding Plan are separate products. The standard API is for model API usage; Coding Plan is a subscription for supported coding tools. Choose the product, its own key and the protocol your client uses before setting a base URL.
Choose the API product and key
- Standard API: create a Standard API Key in Z.AI's API Keys page. Check the selected model's current pricing and account balance or credits before sending requests.
- Coding Plan: check your subscription and create a key in the matching personal or team plan. Z.AI says newly created personal-plan, team-plan and standard API keys are managed separately and are not interchangeable.
- Confirm your tool is supported. Z.AI limits Coding Plan use to its supported tools and products. A generic OpenAI-compatible client is not automatically eligible for that plan.
Match the base URL to the protocol
- Standard API · OpenAI Chat Completions
https://api.z.ai/api/paas/v4Z.AI's standard API quickstart uses a Standard API Key and the example model
glm-5.3.- Coding Plan · OpenAI Chat Completions
https://api.z.ai/api/coding/paas/v4- Coding Plan · OpenAI Responses
https://api.z.ai/api/v1- Coding Plan · Anthropic Messages
https://api.z.ai/api/anthropic
These are API base URLs, not necessarily the complete request URL. For standard Chat Completions, Z.AI's full example ends in /api/paas/v4/chat/completions. Follow your client's field label and the official tool-specific instructions; do not append a path that the SDK already adds.
Check an error before changing plans
- Identify the product, key type, model ID, actual request URL and response body. A saved environment variable or application setting may override the address shown in a form.
- If a Coding Plan request reaches the standard API, check the client's configured provider and base URL. An OpenClaw user report describes this symptom in one version; it does not establish the cause of every error or the behavior of your installed version.
- For insufficient balance or quota, check the key's product, active plan, applicable usage limits and account balance. Error
1113alone does not prove that an endpoint mismatch is the cause. Preserve the status and error body for support.
ChinaGenAI's separate free API uses the free label and automatic routing; it does not promise GLM. Check its connection settings or inspect an existing API error.
Official references
Z.AI standard API quickstart · GLM Coding Plan setup and protocol addresses · Standard API pricing
Sources checked 30 October 2026. No Z.AI account, API key or model call was used to test access. Availability, supported tools, models and terms may change.
Free API access and limits
Check the site free API access and limits before trying to obtain a site key. Read the current status and request limits before using a site key. It is not a source of official provider keys.
ChinaGenAI is not affiliated with the providers named here. This release contains setup guidance and explicitly labeled fictional examples, not claimed live model benchmarks.