Skip to main content
POST
/
voice
/
sfx
Generate sound effects from text
curl --request POST \
  --url https://modelslab.com/api/v6/voice/sfx \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "prompt": "<string>",
  "duration": 10,
  "temp": false,
  "webhook": "<string>",
  "track_id": 123
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "future_links": [
    "<string>"
  ],
  "links": [
    "<string>"
  ],
  "meta": {},
  "eta": 123,
  "message": "<string>",
  "tip": "<string>",
  "fetch_result": "<string>",
  "audio_time": 123
}

Request

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

Body

json
{    
    "key":"",
    "prompt":"Thunderstorm with rain",
    "duration": 10,
    "temp": false,    
    "webhook": null,    
    "track_id": null
}

Body

application/json
key
string
required

API key required to authorize the request

prompt
string
required

Descriptive input specifying the type of sound effect to generate

duration
integer
default:10

Length of generated sound effect in seconds

Required range: 3 <= x <= 15
temp
boolean
default:false

Use temporary links for regions blocking storage access

webhook
string<uri>

URL to receive POST notification upon completion

track_id
integer

ID for webhook identification

Response

Sound effects generation response

status
enum<string>

Status of the voice generation

Available options:
success,
processing,
error
generationTime
number

Time taken to generate the audio in seconds

id
integer

Unique identifier for the voice generation

output
string<uri>[]

Array of generated audio URLs

Array of proxy audio URLs

Array of future audio URLs for queued requests

Array of audio URLs (voice cover response)

meta
object

Metadata about the audio generation including all parameters used

eta
integer

Estimated time for completion in seconds (processing status)

message
string

Status message or additional information

tip
string

Additional information or tips for the user

fetch_result
string<uri>

URL to fetch the result when processing

audio_time
number

Duration of the generated audio in seconds

I