Skip to main content
POST
Generate Custom Music
Music AI v2 is our most advanced music generation model yet, faster generation, higher-quality audio, sharper prompt understanding, and more creative control than any version before it.

Choose your model

v6

Studio-quality tracks in seconds, reliable, fast, and built for everyday creation.

v6-pro

Everything in v6, now with real-time streaming so listeners hear the track as it’s composed.

v7

Our best-sounding model yet, richer detail, more texture, state-of-the-art quality.

v7-pro

The full power of v7 with real-time streaming and advanced creative controls. Our flagship.
New here? Reach for v7-pro for the best quality, or drop to v6 for the fastest, most economical generations.

Model comparison

Pass your choice with the model parameter (v6, v6-pro, v7, or v7-pro). Streaming is available on the pro models for paid users. Per-model rates are listed on the Pricing page.
If you provide a voice_id or set make_vocal_only to true, the request will always use the v6 model, regardless of the value passed in the model parameter.

Key features

  • 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 full tracks, instrumental-only, or vocal-only versions
  • View the live streaming of the song as it generates (pro models)
  • Asynchronous webhook support for clean integration
Every request returns two distinct versions of the track, so you always have a creative option to choose from.

Endpoint

This is the primary endpoint for initiating music generation.

Sample Output

Listen to a real sample output: Prompt: a song about greenery, nature and forest. Download Audio

Try 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

content-type: application/json

Generation Modes

Custom Mode

Provide both lyrics and music_style to craft a fully personalized song.

Prompt Mode

Supply only a prompt and let the system generate everything: lyrics, style, vocals, and more.
make_instrumental, vocal_only, and Music AI generation with custom voice_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 (webhook) x Music conversion details (one per version)
  • 2 (webhook) x Lyrics with timestamp data
  • 2 (webhook) x Streaming URL
  • 1 (webhook) x Album cover image

Instrumental-only Requests:

  • 2 (webhook) x Music conversion details (one per version)
  • 2 (webhook) x Streaming URL
  • 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

Music AI Webhook
Audio Streaming Webhook
Album Cover Webhook
Lyrics Timestamp Webhook
Note: Each conversion_id corresponds to a different variation of the track.

Payload and Request Formation

Authorizations

Authorization
string
header
required

Body

application/json
prompt
string

A natural language prompt for music generation. Keep it under 300 characters. Be clear and descriptive for better results.

music_style
string

Style of music to generate (e.g., Rock, Pop)

Example:

"Lo-fi"

lyrics
string

Custom lyrics for the generated music

make_instrumental
boolean
default:false

Whether to make the music instrumental

vocal_only
boolean
default:false

Whether to generate only vocals of output audio

title
string

Title of the generated music track

Example:

"My Generated Track"

gender
string

Gender of the voice model

Example:

"female"

voice_id
string

Voice model to convert generated audio

Example:

"e1cb7380-e3db-433a-b186-a996d7545986"

generate_album_cover
boolean
default:false

Whether to generate an album cover for the generated audio

lyrics_timestamps
boolean
default:false

Whether to generate timestamps for the lyrics

model
enum<string>

Model version to use for generation

Available options:
v6,
v6-pro,
v7,
v7-pro
Example:

"v7"

webhook_url
string

URL for callback upon completion

Example:

"https://example.com/my-webhook"

Response

Successful response

success
boolean
message
string
task_id
string
conversion_id_1
string
conversion_id_2
string
eta
integer
is_flagged
boolean
reason
string
credit_estimate
number