本文档由 AiQiji 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
curl --location --request POST 'https://open.bigmodel.cn/api/paas/v4/chat/completions' \
--header 'Authorization: Bearer {{Zhipu_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "glm-z1-flash",
"messages": [
{
"role": "user",
"content": "你好"
}
]
}'{
"choices": [
{
"finish_reason": "string",
"index": 0,
"message": {
"content": "string",
"role": "string"
}
}
],
"created": 0,
"id": "string",
"model": "string",
"request_id": "string",
"usage": {
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
}
}