Skip to main content

Rendering a song with vocals

Full API reference

The final step in our basic song generation journey is generating the mixed track! This combines the vocals from the lyrics you received earlier with the song you generated previously. To do this, make a POST request to /recordings/{recordingSessionId}/audio/mix with the following parameters:

Generate a melody
POST /recordings/{recordingSessionId}/audio/mix HTTP/1.1
Host: example.com
{
userId: integer
singer: ["karla", "david"]
}

You'll receive a downloadable MP3 file, which can be played directly in your web browser or saved for later use. That covers the E2E song generation journey, but there's more to Casperaki's capabilities - we'll explore some of these advanced features in our next session.