Mureka | Extend Song
Extend an existing song by providing new lyrics and a starting point. Works with songs generated by Mureka or uploaded audio files.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "mureka-extend-song",
"version": "0.0.1",
"input": {
"song_id": "abc123-song-id",
"lyrics": "And the music plays on through the night\nUnderneath the stars so bright",
"extend_at": 30000
}
}'
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| extend_at | integer | false | Extending start time in milliseconds. If greater than song duration, defaults to end. |
| lyrics | string | false | The lyrics to extend with. |
| song_id | string | false | Song ID for extending (from song/generate API). Mutually exclusive with upload_audio_id. |
| upload_audio_id | string | false | Upload ID of the song to extend (from files/upload API). Mutually exclusive with song_id. |
Examples
Extend a generated song:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "mureka-extend-song",
"version": "0.0.1",
"input": {
"song_id": "generated-song-id-123",
"lyrics": "Verse 3:\nWalking down memory lane\nEvery moment, joy and pain\nBut we keep moving forward still\nClimbing every hill",
"extend_at": 60000
}
}'
Extend an uploaded song:
curl -X POST https://api.eachlabs.ai/v1/prediction \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"model": "mureka-extend-song",
"version": "0.0.1",
"input": {
"upload_audio_id": "uploaded-file-id-456",
"lyrics": "Bridge:\nHold on tight, do not let go\nThrough the highs and through the lows"
}
}'
Related Models
- mureka-generate-lyrics - Generate song lyrics
- mureka-extend-lyrics - Extend existing lyrics
- mureka-stem-song - Separate song into stems