Generate AI Song from Prompt
- This endpoint generates music from a text-based prompt using AI models.
Core Parameters
π The parameters below define the request body for this API.
Parameter | Type | Required? | Description |
---|---|---|---|
prompt | string | β Required | Text description of the music. |
styleOfMusic | string | β Required | Preferred style. Select one from supported styles listed below. |
audioUrl | string | β οΈ Optional | URL to a reference audio file for influence. |
Supported Music Styles
ThestyleOfMusic
parameter must be one of the following values:
- Pop
- Hip Hop
- Rap
- Rock
- EDM
- Latin
- Reggaeton
- K-Pop
- RnB
- Country
- Dance
- House
- Bollywood
- Afrobeat
- Afropop
- Dancehall
- Deep House
- Electronic
- Future Bass
- Trap
- Pop-Trap
- Dubstep
- Synthpop
- Synthwave
- Techno
- Progressive-Metal
- Alt-Rock
- Alt-Metal
- Nu-Metal
- Metal
- Jazz
- Blues
- Soul
- Funk
- Singer-Songwriter
- Folk
- Cloud-Rap
- Lofi
- Chillout
- Downtempo
- Meditative
- New-Age
- Western-Classical
- Classical
- Opera
- Piano
- Spoken-Word
- Gospel
- Brazilian-Music
- Bossa-Nova
- Salsa
- Bachata
- Country-Blues
- Future-Rave
- Electrostep
- Dub
- Disco
- Shoegaze
- Bit-Beat
- Indian Electronic
- African
- 80s
- Acoustic
- Melodic
Request Body for Prompt to Song
Code Samples
Response
Sample Output
Possible Errors :
- If Rate Limits have been passed for User.
- If NSFW words are detected
- If Artist name is detected
Generate AI Song from Lyrics
This endpoint generates music from provided lyrics using AI models.Core Parameters
π The parameters below define the request body for this API.
Parameter | Type | Required? | Description |
---|---|---|---|
styleOfMusic | string | β οΈ Optional (Either styleOfMusic or audioUrl must be present) | Preferred style. Select one from supported styles listed above. |
lyrics | string | β Required | Lyrics to be converted into a song. |
audioUrl | string | β οΈ Optional (Either styleOfMusic or audioUrl must be present) | URL to a reference audio file for influence. |
Request Body for Prompt to Song
Code Samples
Response
Sample Output
Possible Errors :
- If Rate Limits have been passed for User.
- If NSFW words are detected
- If Artist name is detected