Authorization: Bearer ********************{
"model": "ChatTTS",
"input": "这里填写待生成音频的文本",
"voice": "alloy",
"extra_body": {
"prompt": "[oral_5]",
"temperature": 0.5,
"top_P": 0.7,
"top_K": 10,
"voice_url": "这里填写.pt 格式的文件 URL 链接"
}
}curl --location --request POST 'https://ai.kaiho.cc/v1/audio/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "ChatTTS",
"input": "这里填写待生成音频的文本",
"voice": "alloy",
"extra_body": {
"prompt": "[oral_5]",
"temperature": 0.5,
"top_P": 0.7,
"top_K": 10,
"voice_url": "这里填写.pt 格式的文件 URL 链接"
}
}'{}