Skip to content

Generate music and sound effects ​

Music tasks create songs, instrumental music and sound effects. Submit all tasks through POST /v1/tasks and query them through GET /v1/tasks/{task_id}.

Generate songs ​

http
POST /v1/tasks
bash
curl https://moonnexai.com/v1/tasks \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "suno-music-v5.5",
    "prompt": "A hopeful pop song about finding light after a long night.",
    "style": "Pop, Warm, Emotional",
    "title": "Morning Light",
    "customMode": true,
    "instrumental": false,
    "callBackUrl": "https://example.com/moonnexai/webhook"
  }'

Generate pure music ​

json
{
  "model": "suno-music-v5.5",
  "prompt": "Warm cinematic background music for a product launch.",
  "style": "Cinematic, Warm, Corporate",
  "title": "Launch Day",
  "customMode": true,
  "instrumental": true,
  "callBackUrl": "https://example.com/moonnexai/webhook"
}

Generate sound ​

bash
curl https://moonnexai.com/v1/tasks \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "suno-sounds-v5",
    "prompt": "A clean notification sound, short, bright, modern.",
    "callBackUrl": "https://example.com/moonnexai/webhook"
  }'

Common field ​

fieldAnnotations
modelMusic or audio model names.
promptSubject, lyrics, audio descriptions or creative requirements.
styleStyle, instrument, emotion.
titleTitle.
customModeMusic generation parameter mode. true means custom prompt, style and title; false means default parameters.
instrumentalWhether or not to generate pure music.
callBackUrltask addresses after completion of callback.

Required fields at a glance ​

Model familyYou will fill in field
suno-music-*customMode, instrumental, callBackUrl; when customMode=true, also supply prompt, style, title
suno-sounds-v5prompt; recommends that callBackUrl be provided to facilitate the receipt of task completion notifications

Relevant Pages ​