API Documentation
Keep in mind
Features
- POSTMusic AI
- POSTCover Song
- POSTText To Speech
- POSTSound Generator
- POSTExtraction
- POSTVoice Changer
- POSTDenoise
- POSTDeecho
- POSTDereverb
- POSTFile Conversion
- POSTAudio Transcribe
- POSTKey & BPM Extraction
- POSTAudio to MIDI
- POSTAudio Cutter
- POSTAudio Speed Changer
- POSTAudio Mastering
- POSTRemix
- POSTExtend
- POSTInpaint
- POSTSing Over Instrumental
- GETLyrics Generator
Sample Request Endpoints
Conversion Endpoints
- POSTMUSIC AI
- POSTCover
- POSTVoice Changer
- POSTText To Speech
- POSTExtraction
- POSTSound Generator
- POSTDeNoise
- POSTDeEcho
- POSTDeReverb
- POSTFile Conversion
- POSTAudio Transcribe
- POSTExtract Key BPM
- POSTAudio To MIDI
- POSTAudio Cutter
- POSTAudio Speed Changer
- POSTAudio Mastering
- POSTRemix
- POSTExtend
- POSTInpaint
- POSTSing Over Instrumental
- GETLyrics Generator
Conversion Endpoints
Cover
Convert an audio file or URL into a cover song using a different voice.
POST
/
Cover
Python
Copy
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)
Copy
{
"success": true,
"task_id": "b329c0df-b2eb-4914-b707-4d7dce53577e",
"conversion_id": "16708396-da86-4a9e-9b90-66f774cc2382",
"eta": 33
}
Authorizations
Body
multipart/form-data
Response
200
application/json
Successful response
The response is of type object
.
Python
Copy
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)
Copy
{
"success": true,
"task_id": "b329c0df-b2eb-4914-b707-4d7dce53577e",
"conversion_id": "16708396-da86-4a9e-9b90-66f774cc2382",
"eta": 33
}
Assistant
Responses are generated using AI and may contain mistakes.