curl --location --request POST 'https://ark.cn-beijing.volces.com/api/v3/chat/completions?ask=所有哺乳动物' \
--header 'Authorization: Bearer {{ARK_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "ep-20240607092512-c5wnh",
"messages": [
{"role": "system","content": "你是豆包,是由字节跳动开发的 AI 人工智能助手."},
{"role": "user","content": "{{ask}}" }
]
}'{
"choices": [
{
"finish_reason": "string",
"index": 0,
"logprobs": {
"content": null
},
"message": {
"content": "string",
"role": "string"
}
}
],
"created": 0,
"id": "string",
"model": "string",
"object": "string",
"usage": {
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
}
}