POST
/
Cover
Convert audio to cover song
curl --request POST \
  --url https://api.musicgpt.com/api/public/v1/Cover \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form audio_url=https://example.com/audio.wav \
  --form voice_id=demo-voice-id \
  --form pitch=0 \
  --form webhook_url=https://example.com/callback \
  --form audio_file=@example-file
{
  "success": true,
  "task_id": "b329c0df-b2eb-4914-b707-4d7dce53577e",
  "conversion_id": "16708396-da86-4a9e-9b90-66f774cc2382",
  "eta": 33
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data
audio_url
string
required

URL of an audio file to process. Either audio_url or audio_file must be provided.

Example:

"https://example.com/audio.wav"

audio_file
file

Audio file to upload and process. Either audio_file or audio_url must be provided.

voice_id
string

The ID of the voice model to use for voice transformation.

Example:

"demo-voice-id"

pitch
integer
default:0

Pitch adjustment for the voice. Range from -12 to 12. Default: 0

Required range: -12 <= x <= 12
webhook_url
string

A URL where the result will be sent once processing is completed.

Example:

"https://example.com/callback"

Response

Successful response

success
boolean
task_id
string
conversion_id
string
eta
integer