Skip to content

Music ​

MoonNexAI music API is used to generate songs, lyrics, sound and music after-processing task. Music task is presented through POST /v1/tasks and then GET /v1/tasks/{task_id} query status and results.

Basic processes ​

  1. Select a music model, such as suno-music-v5.5 or suno-lyrics.
  2. Call POST /v1/tasks to task.
  3. Saves the task_id in response.
  4. Call GET /v1/tasks/{task_id} Query task.
  5. task successfully read audio, cover, lyrics or other media results.
  6. When task fails, read fail_reason or error.message.

scene page ​

PageFit to scene
Music GenerationGenerates songs, pure music and sound effects.
Music EditorThe video is a new video of the event, which is being updated, recreated, accompanies, voices, mashup and replaces the clips.
Musical Post-ProcessingThe lyrics, cover, WAV, MIDI, MP4 and human voice are separated.
Query and downloadQuery task status, read and download media results.

Generate Music ​

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 lyrics ​

bash
curl https://moonnexai.com/v1/tasks \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "suno-lyrics",
    "prompt": "写一首关于夏夜海边、温柔重逢的中文流行歌词。",
    "callBackUrl": "https://example.com/callback"
  }'

Query task ​

bash
curl https://moonnexai.com/v1/tasks/task_xxx \
  -H "Authorization: Bearer <MOONNEXAI_API_KEY>"

Common Models ​

sceneRecommended Default ModelAvailable Models
Generate Musicsuno-music-v5.5suno-music-v4, suno-music-v4.5, suno-music-v4.5-plus, suno-music-v4.5-all, suno-music-v5, suno-music-v5.5
Generate soundsuno-sounds-v5suno-sounds-v5
Extension of Musicsuno-extend-v5.5suno-extend-v4, suno-extend-v4.5, suno-extend-v4.5-plus, suno-extend-v4.5-all, suno-extend-v5, suno-extend-v5.5
Upload and recreatesuno-upload-cover-v5.5suno-upload-cover-v4, suno-upload-cover-v4.5, suno-upload-cover-v4.5-plus, suno-upload-cover-v4.5-all, suno-upload-cover-v5, suno-upload-cover-v5.5
Upload and extendsuno-upload-extend-v5.5suno-upload-extend-v4, suno-upload-extend-v4.5, suno-upload-extend-v4.5-plus, suno-upload-extend-v4.5-all, suno-upload-extend-v5, suno-upload-extend-v5.5
Add Concortsuno-add-instrumental-v5.5suno-add-instrumental-v4.5-plus, suno-add-instrumental-v5, suno-add-instrumental-v5.5
Add a Voicesuno-add-vocals-v5.5suno-add-vocals-v4.5-plus, suno-add-vocals-v5, suno-add-vocals-v5.5
Generate Mashupsuno-mashup-v5suno-mashup-v4, suno-mashup-v4.5, suno-mashup-v4.5-plus, suno-mashup-v4.5-all, suno-mashup-v5
Generate lyricssuno-lyricssuno-lyrics
Convert WAVsuno-wavsuno-wav
Replace Snippetsuno-replace-sectionsuno-replace-section
We're not gonna get a sound.suno-vocal-removalsuno-vocal-removal
Generate MIDIsuno-midisuno-midi
Create MP4suno-mp4suno-mp4
Generate Coversuno-coversuno-cover

Use recommendations ​

  • The song generation advice is provided both prompt, style and title, with more stable results.
  • Pure music task sets instrumental to true.
  • media[].suno_audio_id as audioId for follow-up task needs to be successfully task returns.
  • Time-consuming task suggests that callback be configured and that the active query logic be maintained.
  • Checks if task status is successful before downloading results.

More parameters and response structures are found in API Reference.