Deprecated: As of 30/12/2025 this has been deprecated and will be removed soon. Please migrate to a newer version.
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
{
"styleOfMusic": "string",
"lyrics": "string",
"audioUrl": "string"
}
Code Samples
import requests
url = "https://api.soundverse.ai/v4/generate/song-from-lyrics"
headers = {
"Authorization": "Bearer your_api_key_here",
"Content-Type": "application/json"
}
payload = {
"styleOfMusic": "string",
"lyrics": "string",
"audioUrl": "string"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
curl -X POST "https://api.soundverse.ai/v4/generate/song-from-lyrics" \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"styleOfMusic": "string",
"lyrics": "string",
"audioUrl": "string"
}'
Response
{
"messageId":"str"
"prompt":"str",
"albumArt":"str",
"aiReply":"str",
"audioData":[
{
"audioUrl":"str",
"songName":"str",
"licenses":"str"
}
]
}
{
βDetailβ: βstrβ
}
Sample Output
{
"messageId": "68b7079d8ee2e214273a25e3",
"prompt": "A hopeful melody with rising strings and ambient piano, like the end of a movie when the hero finds peace.",
"albumArt": "https://storage.soundverse.ai/soundverse-album-art/681babcdc9b9a92b09132ff5/681babcdc9b9a92b09132ff5/0ed32dce-8771-4c1a-8584-b77024c8ff9f.webp",
"aiReply": "Your audio creation has sprouted wings and is ready to soar. Press play and let it take flight into the realm of music.",
"audioData": [
{
"audioUrl": "https://storage.soundverse.ai/x-one/681babcdc9b9a92b09132ff5/681babcdc9b9a92b09132ff5/tmpzrx5d0ps.mp3",
"songName": "Serene Horizon: A Heros Journey",
"licenses": "Sample"
},
{
"audioUrl": "https://storage.soundverse.ai/x-one/681babcdc9b9a92b09132ff5/681babcdc9b9a92b09132ff5/tmpq0ocmr8o.mp3",
"songName": "Serene Horizon: A Heros Journey",
"licenses": "Sample"
}
]
}
Possible Errors :
- If Rate Limits have been passed for User.
{
"success": False,
"message": "Rate limits have been passed for the user.",
}
- If NSFW words are detected
{
"success": False,
"message": "NSFW words detected. Please try again with a different prompt.",
}
- If Artist name is detected
{
"success": False,
"message": "Artist name detected. Please try again with a different prompt.",
}