header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired
Example
{"file_id":365182159339614,"voice_id":"MyCustomVoice003","clone_prompt":{"prompt_audio":987654321,"prompt_text":"This voice sounds natural and pleasant."},"text":"A gentle breeze sweeps across the soft grass(breath), carrying the fresh scent along with the songs of birds.","model":"speech-2.8-hd","language_boost":"English","need_noise_reduction":true,"need_volume_normalization":true,"aigc_watermark":false}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'/minimax/v1/voice_clone' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"file_id": 365182159339614,
"voice_id": "MyCustomVoice003",
"clone_prompt": {
"prompt_audio": 987654321,
"prompt_text": "This voice sounds natural and pleasant."
},
"text": "A gentle breeze sweeps across the soft grass(breath), carrying the fresh scent along with the songs of birds.",
"model": "speech-2.8-hd",
"language_boost": "English",
"need_noise_reduction": true,
"need_volume_normalization": true,
"aigc_watermark": false
}'