Welcome to your first experience with the Musicgpt API β€” where creativity meets technology πŸŽΆπŸ€–


πŸŽ›οΈ Available Features

Here’s what you can create with Musicgpt:

FeatureDescription
MUSIC_AIGenerate the song you imagine with a prompt
TEXT_TO_SPEECHSpeak the given text in selected voice
COVERCreate a cover song
VOICE_CHANGERChange any vocal of given audio to any voice
EXTRACTIONExtract vocals or instrumentals
STEMS_SEPARATIONSeparate stems from a track
DENOISINGRemove unwanted noise
DEECHOReduce echo from audio
DEREVERBReduce reverb
KEY_BPM_EXTRACTIONExtract musical key and BPM
AUDIO_TO_MIDIConvert audio to MIDI format
FILE_CONVERTConvert file formats
AUDIO_TRANSCRIPTIONTranscribe audio to text
SOUND_GENERATORGenerate sound from a prompt
AUDIO_CUTTERCut or trim audio files
AUDIO_MASTERINGEnhance the overall sound quality
AUDIO_SPEED_CHANGERChange the playback speed of audio
REMIXCreate a remix using provided or AI-generated stems

πŸ§ͺ Your First AI Song

Let’s generate a country song about our love for AI-generated music ❀️🎸

We’ll use the MUSIC_AI feature with the following endpoint:

POST https://api.musicgpt.com/api/public/v1/MusicAI

πŸ“¬ Example Request

curl -X 'POST' \
'https://api.musicgpt.com/api/public/v1/MusicAI' \
-H 'accept: application/json' \
-H 'Authorization: <api_key>' \
-H 'Content-Type: application/json' \
-d '{
  "music_style": "Song about my love to AI Music in Country Style",
  "webhook_url": "http://webhook.yourwebsite.com"
}'

🧠 Replace <api_key> with your actual API Key from your Musicgpt dashboard.

πŸ–§ Webhook Integration

To get notified when the music generation is complete, we recommend setting up a webhook. This allows you to receive the URL of the generated song directly.

πŸ”— Set the webhook_url to an endpoint on your server β€” this is where Musicgpt will notify you once the generation is done.

Tip: If you can’t use a webhook (e.g., code running on a user device), you can retrive the result through our helper endpoint get conversion by id instead.


πŸ“¦ Example Webhook Response

{
  "success": true,
  "task_id": "string",
  "conversion_id": "string",
  "audio_url": "https://...", // signed AWS URL, valid for 1 day
  "conversion_cost": 1.0,
  "title": "string",
  "lyrics": "string",
  "prompt": "string",
  "music_style": "string"
}

πŸŽ‰ Mission Accomplished!

You just generated your first AI song using the Musicgpt API. Now go make something amazing ✨

Need more help? Check out other endpoints and guides in the documentation!