Providers

GLM (Zhipu Qingyan)

GLM (Zhipu Qingyan) is an AI assistant by Zhipu AI, supporting GLM-5 flagship model and deep thinking capabilities.

Supported Models

ModelDescription
GLM-5Latest 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.

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

  1. Navigate to Providers > Add Provider
  2. Select GLM from the list
  3. Paste your chatglm_refresh_token value
  4. Click Validate to verify
  5. Save the provider

API Usage

Model Names

{
  "model": "GLM-5",
  "messages": [...]
}

Model Mapping Recommendations

Model NameActual ModelDescription
GLM-5-ThinkGLM-5Deep thinking model
GLM-5-SearchGLM-5Web search model
GLM-5-Think-SearchGLM-5Deep thinking + Web search

Official Resources

On this page