Text to Music
Text to Music
Request to generate music with a given prompt.
JSON Body Data
prompt
(String) - Requiredduration
(Integer)- Specify length of generated music in seconds.
- Defaults to 15 seconds.
Response
Returns array of objects. File urls are short lived and will be deleted after 1 hour.
For now only one object will be present in the array on successful requests.
POST
/
generate-music
Body
application/json
prompt
string
Response
200 - application/json
file_url
string
type
string