> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sound Effects (SFX)

> This endpoint allows you to generate sound effects (SFX) from text prompts.

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-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**
</Warning>

## Request

Make a `POST` request to below endpoint and pass the required parameters as a request body.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/voice/sfx' \
```

## Body

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

## Body Attributes

<ParamField query="key" type="string" required>
  The API key required to authorize the request.
</ParamField>

<ParamField query="prompt" type="string" required>
  A descriptive input that specifies the type of sound effect to generate.
</ParamField>

<ParamField query="duration" type="integer" min="3" max="15" default="10">
  The length of the generated sound effect in seconds. Defaults to 10. Range: 3–15 seconds.
</ParamField>

<ParamField query="temp" type="boolean" default="false">
  Whether to generate temporary links (useful for regions blocking storage site access). Default: false.
</ParamField>

<ParamField query="output_format" type="string" enum="[&#x22;wav&#x22;, &#x22;mp3&#x22;, &#x22;flac&#x22;]" default="wav">
  The output format of the generated sound effect. Options: wav, mp3, flac. Default: wav.
</ParamField>

<ParamField query="bitrate" type="string" enum="[&#x22;128k&#x22;, &#x22;192k&#x22;, &#x22;320k&#x22;]" default="128k">
  The bitrate of the generated sound effect. Higher bitrates improve quality but increase file size. Default: 128k.
</ParamField>
