Authorization: Bearer ********************
{
"Model": "hunyuan-pro",
"Messages": [
{
"Role": "system",
"Content": "你是一个有帮助的助手"
},
{
"Role": "user",
"Content": "你好,请介绍一下你自己"
}
],
"Stream": false,
"TopP": 0.8,
"Temperature": 0.7
}
curl --location --request POST 'https://api.ecovai.cn/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"Model": "hunyuan-pro",
"Messages": [
{
"Role": "system",
"Content": "你是一个有帮助的助手"
},
{
"Role": "user",
"Content": "你好,请介绍一下你自己"
}
],
"Stream": false,
"TopP": 0.8,
"Temperature": 0.7
}'
{
"id": "d7e145a0-4c18-4074-84a2-b0d63bbf62be",
"model": "",
"object": "chat.completion",
"created": 1730951563,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "你好,我是腾讯基于混元大模型研发的人工智能助手,可以提供多种形式的服务,包括但不限于解答问题、提供建议等。欢迎您向我提问任何问题,我会尽我最大可能为您提供帮助。"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 46,
"total_tokens": 58
}
}