POST
/
paas
/
v4
/
async
/
chat
/
completions
curl --request POST \
--url https://open.bigmodel.cn/api/paas/v4/async/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "glm-4.5",
"messages": [
{
"role": "system",
"content": "你是一个有用的AI助手。"
},
{
"role": "user",
"content": "请介绍一下人工智能的发展历程。"
}
],
"temperature": 0.6,
"max_tokens": 1024,
"stream": false
}'
{
  "model": "<string>",
  "id": "<string>",
  "request_id": "<string>",
  "task_status": "<string>"
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

application/json

普通对话模型请求,支持纯文本对话和工具调用

Response

业务处理成功

The response is of type object.