Providers
Z.ai
Z.ai is a free AI chatbot powered by GLM models.
Supported Models
| Model | Description |
|---|---|
| GLM-5 | Latest GLM-5 model |
| GLM-4.7 | GLM-4.7 model |
| GLM-4.6V | Vision model |
| GLM-4.6 | Standard model |
Features
- Free to use
- Deep thinking mode
- Web search
- Streaming/non-streaming output
- Multi-turn conversation support
- Tool calling support
Authentication
Z.ai supports OAuth Login and JWT Token authentication methods.
Method 1: OAuth Login (Recommended)
In Chat2API, click Add Provider and select Z.ai.
Choose OAuth Login method.
Click Start Login, the system will automatically open the browser and redirect to the Z.ai login page.
After completing login in the browser, return to Chat2API, the system will automatically obtain authentication information.
Method 2: JWT Token Authentication
Go to Z.ai and log in.
Press F12 to open Developer Tools.
Check one of the following locations:
- Cookies: Look for
tokencookie - Local Storage: Look for
tokenkey
Copy the JWT token value (starts with eyJ).
Token can be found in either Cookies or Local Storage.
Adding to Chat2API
- Navigate to Providers > Add Provider
- Select Z.ai from the list
- Paste your JWT Token
- Click Validate to confirm
- Save the provider
API Usage
Model Names
{
"model": "GLM-5",
"messages": [...]
}Model Mapping Recommendations
| Model Name | Actual Model | Description |
|---|---|---|
GLM-5-Think | GLM-5 | Deep thinking model |
GLM-5-Search | GLM-5 | Web search model |
GLM-5-Think-Search | GLM-5 | Deep thinking + Web search |