GLM (Zhipu Qingyan)
GLM (Zhipu Qingyan) is an AI assistant by Zhipu AI, supporting GLM-5 flagship model and deep thinking capabilities.
Supported Models
| Model | Description |
|---|---|
| GLM-5 | Latest GLM flagship model |
Features
- GLM-5 flagship model
- Deep thinking mode
- Web search
- Streaming/non-streaming output
- Multi-turn conversation support
- Tool calling support
Authentication
GLM supports OAuth Login and Refresh Token authentication methods.
Method 1: OAuth Login (Recommended)
In Chat2API, click Add Provider and select GLM.
Choose OAuth Login method.
Click Start Login, the system will automatically open the browser and redirect to the Zhipu Qingyan login page.
After completing login in the browser, return to Chat2API, the system will automatically obtain authentication information.
Method 2: Manual Token
Go to Zhipu Qingyan and log in to your account.
Start any conversation, then press F12 to open Developer Tools.
In Developer Tools, go to Application tab.
Expand Cookies in the left sidebar and select https://chatglm.cn.
Find the cookie named chatglm_refresh_token and copy its value.
The token is stored in Cookies, not Local Storage.
Adding to Chat2API
- Navigate to Providers > Add Provider
- Select GLM from the list
- Paste your
chatglm_refresh_tokenvalue - Click Validate to verify
- 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 |