curl --request POST \
--url https://api.musicgpt.com/api/public/v1/MusicAI \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "<string>",
"music_style": "<string>",
"lyrics": "<string>",
"make_instrumental": false,
"vocal_only": false,
"voice_id": "<string>",
"webhook_url": "<string>"
}'
{
"success": true,
"message": "Message published to queue",
"task_id": "4fc2cdba-005d-4d14-a208-5fb02a2809da",
"conversion_id_1": "05092d5c-f8b1-4c96-a4a3-45bc00de6268",
"conversion_id_2": "52fcd3b6-3925-41ed-b4c6-aee17a29e40b",
"eta": 154
}
Create music powered by AI using just a prompt, lyrics, or a defined music style.
curl --request POST \
--url https://api.musicgpt.com/api/public/v1/MusicAI \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "<string>",
"music_style": "<string>",
"lyrics": "<string>",
"make_instrumental": false,
"vocal_only": false,
"voice_id": "<string>",
"webhook_url": "<string>"
}'
{
"success": true,
"message": "Message published to queue",
"task_id": "4fc2cdba-005d-4d14-a208-5fb02a2809da",
"conversion_id_1": "05092d5c-f8b1-4c96-a4a3-45bc00de6268",
"conversion_id_2": "52fcd3b6-3925-41ed-b4c6-aee17a29e40b",
"eta": 154
}
Successful response
The response is of type object
.