POST
/
text-to-sound
For optimal accuracy, it is recommended to use a concise prompt.

This endpoint initiates the process of converting the text into an audio effect, returning a task_id. To check the status of the task, the /text-to-sound/{task_id} endpoint can be polled.

Authorizations

x-api-key
string
header
required

The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.

Body

application/json
duration
number
default:
8

The desired duration of the audio.

prompt
string

The text to be converted to audio.

Response

200 - application/json
task_id
string