- Compose custom songs using your own lyrics and chosen music style
- Generate complete tracks from a single prompt, including lyrics, instrumentation, and melody
- Apply voice conversion using a custom voice model
- Output options: full tracks, instrumental-only, or vocal-only
- Asynchronous webhook support for seamless integration
Endpoint
Sample Output
Listen to a real sample output: Prompt: a song about greenery, nature and forest. Download AudioTry It Yourself
Use the MusicAI Endpoint Explorer to test your own requests using prompts, lyrics, and more.Each request returns two distinct versions of the track.
Request Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
prompt | String | Optional | — | A natural language prompt for music generation |
music_style | String | Optional | — | Musical style or genre (e.g., Rock, Pop, Lo-fi) |
lyrics | String | Optional | "" | Custom lyrics to use in the song |
make_instrumental | Boolean | Optional | false | If true, generate instrumental-only audio |
vocal_only | Boolean | Optional | false | If true, generate vocals without instruments |
voice_id | String | Optional | "" | Apply voice model for vocal rendering |
webhook_url | String | Optional | "" | URL to receive generated results via webhook |
Generation Modes
Custom Mode
Provide bothlyrics
and music_style
to craft a fully personalized song.
Prompt Mode
Supply only aprompt
and let the system generate everything: lyrics, style, vocals, and more.
make_instrumental
,vocal_only
, and Music AI generation with customvoice_id
are supported in both modes.
Webhook Delivery
Once the generation is complete, webhooks will be triggered to deliver the following:Standard Requests (non-instrumental):
- 2 (webhooks) x Music conversion details (one per version)
- 2 (webhooks) x Lyrics with timestamp data
- 1 (webhook ) x Album cover image
Instrumental-only Requests:
- 2 (webhook) x Music conversion details (one per version)
- 1 (webhook) x Album cover image
Webhook responses include detailed metadata including task_id, conversion_id, audio files (conversion_path), lyrics etc.
Sample Request (Python)
Sample Response
Webhook Sample Payload
Note: Each conversion_id
corresponds to a different variation of the track.
Payload and Request Formation
Authorizations
Body
application/json
A natural language prompt for music generation. Keep it under 280 characters for guaranteed results, but detailed—the clearer and more descriptive it is, the better the outcome.
Style of music to generate (e.g., Rock, Pop)
Custom lyrics for the generated music
Whether to make the music instrumental
Whether to generate only vocals of output audio
Voice model to convert generated audio
URL for callback upon completion