Make sure you add your s3 details for voice_cloning server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after 24 hours

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/voice/sfx' \

Body

json
{    
  "key":"enterprise_api_key",    
  "prompt":"Thunderstorm with rain",    
  "output_format": "wav",
  "bitrate": "128k",
  "temp": false,    
  "webhook": null,    
  "track_id": null
}

Body Attributes

key
string
required
The API key required to authorize the request.
prompt
string
required
A descriptive input that specifies the type of sound effect to generate.
duration
integer
default:"10"
The length of the generated sound effect in seconds. Defaults to 10. Range: 3–15 seconds.
temp
boolean
default:"false"
Whether to generate temporary links (useful for regions blocking storage site access). Default: false.
output_format
string
default:"wav"
The output format of the generated sound effect. Options: wav, mp3, flac. Default: wav.
bitrate
string
default:"128k"
The bitrate of the generated sound effect. Higher bitrates improve quality but increase file size. Default: 128k.