POST
/
Cover
Python
import requests

url = 'https://api.musicgpt.com/api/public/v1/Cover'

payload = {
    'audio_url': '<AUDIO_URL>',
    'voice_id': '<VOICE_ID>',
    'pitch': '0',
    'webhook_url': '<WEBHOOK_URL>'
}

# For file upload:
# files = {'audio_file': open('file.wav', 'rb')}

headers = {
    'Authorization': '<API_KEY>'
}

response = requests.post(url, data=payload, headers=headers)
# response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)
{
  "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

Response

200
application/json

Successful response

The response is of type object.