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": "user",
"content": "What opportunities and challenges will the Chinese large model industry face in 2025?"
}
]
}'
{
"model": "<string>",
"id": "<string>",
"request_id": "<string>",
"task_status": "<string>"
}
为对话生成 AI 回复, 支持多模态能力。
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": "user",
"content": "What opportunities and challenges will the Chinese large model industry face in 2025?"
}
]
}'
{
"model": "<string>",
"id": "<string>",
"request_id": "<string>",
"task_status": "<string>"
}
使用以下格式进行身份验证:Bearer <your api key>
业务处理成功
The response is of type object
.