curl --location 'https://moyunapi.com/v1/chat/completions' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "mimo-v2.5-tts",
"messages": [
{
"role": "user",
"content": "明快、有活力、略带欢快的语调——就像你满心欢喜,几乎忍不住要说出来的好消息。语速快,结尾时音调上扬。"
},
{
"role": "assistant",
"content": "嘿,老板——你猜怎么着,你猜怎么着?我刚拿到成绩,我竟然通过了!不只是通过,我还拿到了优等!我知道,我知道——你之前告诉我时间很紧张,但嘿,我们做到了。今晚我请客喝酒,好吗?"
}
],
"audio": {
"format": "wav",
"voice": "mimo_default"
}
}'{
"id": "6ebed286b58546f6b87fa7fa9d0e806b",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "",
"role": "assistant",
"audio": {
"id": "979a91904f9a4143928d9e1f54837b4f",
"data": "base64Data",
"expires_at": null,
"transcript": null
},
"tool_calls": null
}
}
],
"created": 1776954802,
"model": "mimo-v2.5-tts",
"object": "chat.completion",
"usage": {
"completion_tokens": 97,
"prompt_tokens": 213,
"total_tokens": 310,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens_details": {
"cached_tokens": 109
}
}
}