Generate Lyrics from Prompt

This endpoint generates AI-powered song lyrics based on a text prompt.
You can also specify:
🎭 Mood → Set the emotional tone (e.g., happy, sad, energetic).
🎶 Genre → Influence the lyrics with a musical style (e.g., pop, rock).
📖 Section → Generate a specific part (e.g., verse, chorus).


Core Parameters

🛈 The parameters below define the request body for this API.

ParameterTypeRequired?Description
promptstring✅ Required   Text description of the lyrics.
moodstring⚠️ Optional   Emotional tone of the lyrics.
sectionstring⚠️ Optional   Specify part of the song (verse, chorus, bridge).
genrestring⚠️ Optional   Musical genre (pop, rock, hip-hop, etc.).

Request Body

Request body: 
{
  "prompt": "string",
  "mood": "string" ,
  "section": "optional" ,
  "genre": "string"
}

Code Samples


  import requests

  url = "https://api.soundverse.ai/v1/generate/lyrics"
  headers = {
      "Authorization": "Bearer your_api_key_here",
      "Content-Type": "application/json"
  }
  payload = {
  "prompt": "string",
  "mood": "string" ,
  "section": "optional",
  "genre": "string"
  }



  response = requests.post(url, json=payload, headers=headers)
  print(response.json())

Response

{
"prompt": "str,
"lyrics": "str"
}

Sample Output

{
  "prompt":"A hopeful melody with rising strings and ambient piano, like the end of a movie when the hero finds peace.",
  "albumArt":"https://storage.googleapis.com/soundverse-album-art/67b9ca2f20e711017fc1b6c5/67b9ca2f20e711017fc1b6c5/20250413130229_00000_album_cover_art_for_A_hopeful_melody_with_rising_strings_and_ambient_piano_like_the_end_of_a_movie_when_the_hero_finds_peace.png",
  "aiReply":"Your audio jewel is polished and gleaming, a testament to your artistic prowess. Unleash its melodies and watch the world listen in awe.",
  "audioData":[
    {
      "audioUrl":"https://storage.googleapis.com/x-one/67b9ca2f20e711017fc1b6c5/67b9ca2f20e711017fc1b6c5/xone20250413130323ltyxhk5r.wav",
      "songName":"A hopeful melody with ris...",
      "licenses":"Sync"
    }
  ]
}

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.",
}