Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "speech-2.6-hd",
"input": "天生我材必有用,你不信吗?",
"voice": "Chinese (Mandarin)_Lyrical_Voice",
"metadata": {
"voice_setting": {
"emotion": "angry"
}
}
}
Request Code Samples
curl --location --request POST 'https://api.toiotech.com/v1/audio/speech' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "speech-2.6-hd",
"input": "天生我材必有用,你不信吗?",
"voice": "Chinese (Mandarin)_Lyrical_Voice",
"metadata": {
"voice_setting": {
"emotion": "angry"
}
}
}'
Responses
application/json {
"data": {
"audio_url": "https://xxxx.xxxx.com/audios/1767086885749577293-lE2wa3RA44.mp3"
},
"message": "",
"success": true
}
Modified at 2025-12-30 09:33:18