Generate AI Song from Prompt
- This endpoint generates songs 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 | β οΈ Optional | Preferred style. |
audioUrl | string | β οΈ Optional | URL to a reference audio file for influence. |
π Reference audio duration should be atleast 30s
and the audioUrl should be public.
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 |
---|---|---|---|
lyrics | string | β Required | Lyrics to be converted into a song. |
styleOfMusic | string | β οΈ Optional (Either styleOfMusic or audioUrl must be present) | Preferred style. |
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