Extend Audio Using Prompt and Optional Lyrics

This endpoint allows users to extend an existing audio file or stream by appending new audio content after a specific timestamp. The new audio is generated using a prompt (e.g., describing the desired sound) and optional lyrics.

post/v1/extend

Request

  • Base URL
    https://api.musicgpt.com/api/public
  • Auth
    API key in header Authorization

Request body multipart/form-data

OR

Example request

{
  "audio_url": "https://mybucket.s3.amazonaws.com/song.mp3",
  "extend_after": 35,
  "prompt": "Add a calming piano outro",
  "lyrics": "Let the journey fade away",
  "gender": "neutral",
  "webhook_url": "https://example.com/webhook"
}

Response

Successfully initiated extend task

successboolean
messagestring
task_idstring
conversion_id_1string
conversion_id_2string
etainteger

Estimated processing time in seconds

credit_estimatenumber float

Example response

{
  "success": true,
  "message": "Extend request submitted successfully",
  "task_id": "task-extend-789",
  "conversion_id_1": "extend-a1b2",
  "conversion_id_2": "extend-c3d4",
  "eta": 38,
  "credit_estimate": 42
}

Changes

No recorded changes to this operation across all 1 revision of this API.