Generate Custom Music

Create music powered by AI using just a prompt, lyrics, or a defined music style.

post/v1/MusicAI

Request

  • Base URL
    https://api.musicgpt.com/api/public
  • Auth
    API key in header Authorization

Request body

promptstring

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.

music_stylestring

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

lyricsstring

Custom lyrics for the generated music

titlestring

Title of the generated music track

make_instrumentalboolean

Whether to make the music instrumental

vocal_onlyboolean

Whether to generate only vocals of output audio

genderstring

Gender of the voice model

voice_idstring

Voice model to convert generated audio

generate_album_coverboolean

Whether to generate an album cover for the generated audio

webhook_urlstring

URL for callback upon completion

Response

Successful response

successboolean
messagestring
task_idstring
conversion_id_1string
conversion_id_2string
etainteger

Changes

No recorded changes to this operation across all 1 revision of this API.