Skip to content

V1.0

AI Music Generator API composes a complete song from a theme, lyrics, and/or a music style. Each task returns one finished song (mp3) with its cover image, title, lyrics, and synchronized lyrics timestamps.

Run an AI Music Generator task.

Request

AI tasks are asynchronous. Prefer webhook-based completion handling when the feature supports webhooks. Configure your webhook endpoint, verify webhook signatures, and use the received task_id to query the task result after a success or error notification. See the webhook integration guide for setup and verification details.

If webhooks are not supported or cannot be used in your integration, implement polling. After submitting an AI task, poll the status endpoint at regular intervals (e.g., every 10 seconds) until the task status is success or error.

Security
BearerAuthenticationV2
Bodyapplication/jsonrequired
Any of:
ideastring, [ 1 .. 500 ] charactersrequired

Theme of the song. Required when instrumental is true. For a song with vocals, provide idea, lyrics, or both. To ask for lyrics in a specific language, say so here (e.g. "with Japanese lyrics").

Default:""
Example:"A song about a small café that stays open late for people who can't sleep"
lyricsstring, <= 3000 characters

Lyrics of the song. Section tags such as [intro], [verse], [chorus] and [outro] are supported. Supported lyrics languages: English, Japanese, Korean, Portuguese, Spanish, German, French, Italian, Traditional Chinese, Simplified Chinese, Hindi, Turkish.

Default:""
Example:"[verse]\nTwo a.m., the neon hums\nSteam on the glass, the night still runs\n\n[chorus]\nLeave the light on, leave the light on\nFor the ones who don'
music_styleobject

Music style of the song. All fields are optional.

instrumentalboolean

true to generate instrumental music with no vocals and no lyrics.

Default:false
Example:false
curl -i -X POST \
  https://yce-api-01.makeupar.com/s2s/v2.0/task/ai-song \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "idea": "A song about a small café that stays open late for people who can'\''t sleep",
    "lyrics": "[verse]\nTwo a.m., the neon hums\nSteam on the glass, the night still runs\n\n[chorus]\nLeave the light on, leave the light on\nFor the ones who don'\''t go home",
    "music_style": {
      "genre": "Acoustic Pop",
      "mood": "Calm, hopeful",
      "vocal": "female",
      "description": "soft piano, brushed drums"
    },
    "instrumental": false
  }'

Responses

Successful execution of the task

Bodyapplication/json
statusinteger

Response status

Example:200
dataobject
Response
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }