Run in Apifox
Request Body Params application/json
{
"gender" : "female" ,
"age" : "old" ,
"voice_desc" : [
"Kind and friendly" ,
"Kind and amiable" ,
"Kind hearted" ,
"Calm tone"
] ,
"text" : "真正的危险不是计算机开始像人一样思考,而是人开始像计算机一样思考"
} Request Code Samples
curl --location --request POST 'https://api.302.ai/minimaxi/v1/text2voice' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"gender": "female",
"age": "old",
"voice_desc": [
"Kind and friendly",
"Kind and amiable",
"Kind hearted",
"Calm tone"
],
"text": "真正的危险不是计算机开始像人一样思考,而是人开始像计算机一样思考"
}' Responses application/json Generate Code
{
"trial_audio" : "49443304000000000......" ,
"trial_audio_url" : "https://file.302.ai/gpt/imgs/20260119/b91fa1eb559646dbb940147351bc6ea1.mp3" ,
"voice_id" : "ttv-voice-2026011916104626-qZ8MTrrR" ,
"base_resp" : {
"status_code" : 0 ,
"status_msg" : "success"
}
} Modified at 2026-01-19 08:14:14