Music Generation API

Song/music generation, extension, mashup, vocal separation and cover generation via Suno and KieAI ai-music-api.

bolt

This page is the music part of the Content Generation API.

/v1/music/generate is a semantic alias for music models. For full details, see video-api → Music Models.

Music Generation

POST /v1/music/generate

Starts a new song/music generation task (asynchronous).

Quick Example (Suno V4)

cURL
curl -X POST https://api.onysoft.com/v1/music/generate \
  -H "Authorization: Bearer sk-ony-YOUR-KEY" \
  -d '{
    "model": "suno-v4",
    "prompt": "Upbeat synthwave with catchy female vocals about summer nights"
  }'

Custom Mode (Style + Title + Vocal Gender)

cURL
curl -X POST https://api.onysoft.com/v1/music/generate \
  -H "Authorization: Bearer sk-ony-YOUR-KEY" \
  -d '{
    "model": "suno-v4",
    "prompt": "[Verse]\nIn the neon city lights tonight...",
    "custom_mode": true,
    "style": "synthwave, retro, atmospheric",
    "title": "Neon Nights",
    "vocal_gender": "female",
    "instrumental": false
  }'

Music Models

ModelFunction
suno-v4New song generation (V4)
ai-music-api/generateNew song generation (Suno behind the scenes)
ai-music-api/extendExtend an existing song
ai-music-api/mashupCombine 2 songs
ai-music-api/soundsSound effects
ai-music-api/upload-and-cover-audioGenerate a cover from existing audio
ai-music-api/separate-vocalsVocal/instrument separation
ai-music-api/create-music-videoGenerate a visual video for music
ai-music-api/add-instrumentalAdd instrumentals to vocals
ai-music-api/convert-to-wav-formatMP3 → WAV conversion
suno-add-vocalsAdd vocals to an instrumental
suno-extend-musicExtend a Suno track
suno-generate-lyricsLyrics generation
suno-replace-music-sectionReplace a section of a song

Suno Parameters

ParameterTypeDefaultDescription
promptstringTheme/lyrics (required)
custom_modeboolfalseIf true, style+title are active
stylestringMusic style (only when custom_mode=true)
titlestringSong title (only when custom_mode=true)
instrumentalboolfalsetrue = instrumental without vocals
vocal_genderstring"male" or "female"
negative_tagsstringUnwanted styles/elements

Status Lookup

cURL
curl https://api.onysoft.com/v1/music/status/vtask_mus123 \
  -H "Authorization: Bearer sk-ony-YOUR-KEY"
Want help finding the right model?