Generate Music
Generate, extend, cover, mashup and more — the unified music generation endpoint
Quick Start
Check required parameters
GET /suno/v2/generate/schema?task=create to get the parameter schema and a request example for the create task.See Generate Schema →Send generate request
POST /suno/v2/generate with the correct parameters for your task type.Poll task status
taskId to poll Get Task Status until status is success.Task Types Overview
task and model fields. Use GET /suno/v2/generate/schema?task=xxx to get the full parameter details for any specific task type.Common Parameters
These parameters are shared across most task types:controls object
Examples
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Task type. Use GET /generate/schema?task=xxx to query required fields for each task.
create, extend, upload_extend, upload_cover, cover, use_styles_lyrics, replace_section, add_instrumental, add_vocals, gen_stem_two, gen_stem_all, mashup, sample, inspiration, sound, add_stems "create"
Model version. Supports standard models (e.g. chirp-v50) and custom models (chirp-custom:).
"chirp-v50"
Whether to make instrumental (no vocals). [Optional: all tasks]
false
Lyrics or prompt text. [Optional: all tasks] For replace_section: lyrics within infill_context_range (modified if replacement changes lyrics).
"[Verse]\nHello world, here I come...\n\n[Chorus]\nLa la la..."
Full song lyrics after replacement. [Required: replace_section] Contains the complete lyrics of the entire song with the replaced section updated.
"[Verse 1]\nOriginal lyrics...\n\n[Chorus]\nNew replaced lyrics...\n\n[Verse 2]\nMore lyrics..."
Lyrics for the replaced section only. [Optional: replace_section] The specific lyrics within the range being replaced.
"[Bridge]\nThis is the new bridge section\nWith updated lyrics..."
Short description for GPT lyrics generation. [Optional: create, mashup, etc.]
"A happy pop song about summer vacation"
Style tags. Supports string or array. [Optional: all tasks]
"Pop, Happy, Upbeat"
Negative style tags to exclude. [Optional: all tasks]
"Sad, Slow"
Song title. [Optional: all tasks]
"Summer Vibes"
Source clip ID. [Required: extend, cover, use_styles_lyrics, replace_section, add_instrumental, add_vocals, gen_stem_*, add_stems, sample]
"clip_abc123"
Continue position in seconds. [Optional: extend, upload_extend]
x >= 030
Target range { start_s, end_s }. [Required: replace_section, sample] For replace_section: the section to replace (duration should be > 6 seconds). For sample: the time range to sample from source clip.
Infill mode for replace_section. [Optional: replace_section] "smart" = auto-select based on duration (default), "classic" = always use infill (better for long selections), "fixed" = always use fixed_infill (better for short selections).
smart, classic, fixed "smart"
Infill context range (must encompass range). [Required: replace_section] Should extend ~30s before range.start_s and ~30s after range.end_s. If range starts within first 30s, use 0 for start_s. If range ends within last 30s of song, use song duration for end_s.
Artist persona config for style mimicking. [Optional: create, cover, extend, replace_section]
Advanced controls. Sliders (01): style_weight / audio_weight / weirdness_constraint. Optional duration (10360s) for custom length on chirp-v55+ (ignored on older models). [Optional: all generate tasks]
Vocal gender (m=male, f=female). [Optional: all tasks]
m, f "m"
Audio URL for upload tasks. [Required: upload_extend, upload_cover]
"https://example.com/audio.mp3"
Two clip IDs for mashup [clip_a, clip_b]. [Required: mashup]
Suno playlist ID. [Required: inspiration] Must be obtained via /playlist/create → /playlist/addClips before calling /generate. Add inspiration clips (1–4, same account) to the playlist first. When combined with persona (vox_playlist_condition), the playlist must exist on the same account as the persona.
"119573ff-8e48-4fe6-9029-39c76c9a5597"
Sound generation config. [Required: sound] description is the core sound prompt (also auto-used as title). type/key/bpm are optional advanced options. Tags are auto-assembled; user-provided tags are ignored for sound task.
Stem control tags for add_stems. [Optional: add_stems] Default "add ".
"add "
Response
task id. Use this id to query task status.
"15c257ff-43f7-4678-bd41-202ad6b8488b"