curl --request POST \
--url https://api.omniall.ai/v1/audio/speech \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "speech-2.8-hd",
"input": "你好,欢迎使用 Omniall AI",
"voice": "female-tianmei",
"response_format": "mp3"
}
'"<string>"MiniMax音频
语音合成
兼容 OpenAI Audio Speech 的文本转语音。
路径: POST https://api.omniall.ai/v1/audio/speech
响应通常为音频二进制(mp3 / wav / …),除非上游返回 JSON。
鉴权:Authorization: Bearer sk-...
POST
/
v1
/
audio
/
speech
curl --request POST \
--url https://api.omniall.ai/v1/audio/speech \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "speech-2.8-hd",
"input": "你好,欢迎使用 Omniall AI",
"voice": "female-tianmei",
"response_format": "mp3"
}
'"<string>"请求体
application/json
响应
音频二进制(或上游 JSON)
The response is of type file.