Skip to content

Extend Song

Extend a song based on input lyrics.

API Information

  • Method: POST
  • Endpoint: /api/v1/music?action=song_extend
  • Function: Extend song

Authentication

BearerAuth Type: HTTP (bearer)

Request Body

json
{
  "song_id": "string",
  "upload_audio_id": "string",
  "lyrics": "string",
  "extend_at": integer
}

Parameter Description

FieldTypeRequiredDescription
song_idstringNoOriginal song ID (choose one with upload_audio_id)
upload_audio_idstringNoUpload ID of the song to extend, generated by files/upload API (purpose: audio)
lyricsstringNoLyrics to extend
extend_atint64YesExtend start time in milliseconds. If greater than song duration, it will use the song duration. Range: [8000, 420000]

Response

json
{
  "code": 0,
  "message": "success",
  "resp_data": {
    "id": "task_1234567890abcdef",
    "created_at": 1640995200,
    "finished_at": 0,
    "model": "mureka-7.5",
    "status": "preparing",
    "failed_reason": "",
    "watermarked": false,
    "choices": []
  }
}

Request Example

bash
curl -X POST "[HOST]/api/v1/music?action=song_extend" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "song_id": "song_1234567890abcdef",
    "lyrics": "【Verse 2】\nTime flies like flowing water\nYouthful years never return",
    "extend_at": 120000
  }'