Skip to main content
POST
/
v1
/
music
V1 Generate Music
curl --request POST \
  --url https://api.topmediai.com/v1/music \
  --header 'Content-Type: application/json' \
  --data '{
  "is_auto": 1,
  "prompt": "Happy songs",
  "lyrics": "Enter the lyrics you'\''ve created",
  "title": "Happy Songs",
  "instrumental": 0
}'
"<any>"

Headers

x-api-key
string

Body

application/json
is_auto
integer
required

Mandatory parameter, only the prompt parameter is valid if it is 1, otherwise, all parameters are valid.

Required range: 0 <= x <= 1
Example:

1

prompt
string
required

Mandatory parameter, generated song style

Example:

"Happy songs"

lyrics
string | null
default:""

Non-mandatory parameter, default is null

Example:

"Enter the lyrics you've created"

title
string | null
default:""

Non-mandatory parameter, default is null

Example:

"Happy Songs"

instrumental
integer | null
default:0

Non-mandatory parameter, default is 0

Required range: 0 <= x <= 1
Example:

0

Response

Successful Response

The response is of type any.