##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Model name
Backward compatibility: Previously integrated model names (e.g. suno-v5, suno-v4.5, suno-v4.5plus, suno-v4.5all, suno-v4) are still supported and will be automatically mapped to the corresponding -beta versions
Available options:
suno-v5-beta: V5 latest version (default recommended), supports Voice Persona, superior musical expression, faster generation, prompt max 5000 characters, style max 1000 characterssuno-v4.5plus-beta: V4.5+ enhanced version, richer tones, new creative methods, up to 8 minutes, prompt max 5000 characters, style max 1000 characterssuno-v4.5all-beta: V4.5 full-featured version, smarter prompts, faster generation, up to 8 minutes, prompt max 5000 characters, style max 1000 characterssuno-v4.5-beta: V4.5 version, smarter prompts, faster generation, up to 8 minutes, prompt max 5000 characters, style max 1000 characterssuno-v4-beta: V4 version, improved vocal quality, up to 4 minutes, prompt max 3000 characters, style max 200 characterssuno-v5-beta, suno-v4.5plus-beta, suno-v4.5all-beta, suno-v4.5-beta, suno-v4-beta "suno-v5-beta"
Enable custom mode
Description:
false: Simple mode, only provide prompt, AI auto-generates lyrics and styletrue: Custom mode, allows fine control over style, title, lyrics, etc.Required parameters in custom mode:
style: Requiredtitle: Requiredprompt: Required when instrumental=false (used as lyrics)false
Generate instrumental music (no vocals)
Description:
false: Generate music with vocalstrue: Generate instrumental/background music without vocalsNote:
true, prompt becomes optionalfalse
Prompt describing the desired music content
Non-custom mode (custom_mode=false):
500 charactersCustom mode (custom_mode=true):
instrumental=false, used as exact lyricsinstrumental=true3000 characters for V4, 5000 characters for V4.5+Lyrics format suggestions:
[Verse], [Chorus], [Bridge] to organize lyrics structure"A cheerful summer pop song about road trips and freedom"
Music style specification
Description:
custom_mode=true)Character limits:
200 characters1000 charactersCommon style tags:
"pop, electronic, upbeat, female vocals"
Song title
Description:
custom_mode=true)80 characters80"Summer Dreams"
Excluded styles, specify music styles or features to avoid
Examples:
heavy metal, screaming, sadrap, fast tempo"heavy metal, screaming"
Vocal gender preference
Options:
m: Male voicef: Female voiceNote:
custom_mode=truem, f "f"
Style weight, controls adherence to the specified style
Range: 0.0 ~ 1.0, one decimal place
Description:
0 is treated as unset0 <= x <= 10.7
Weirdness constraint, controls the creativity/experimental degree of the output
Range: 0.0 ~ 1.0, one decimal place
Description:
0 is treated as unset0 <= x <= 10.3
Audio weight, controls the weight of audio features
Range: 0.0 ~ 1.0, one decimal place
Description:
0 is treated as unset0 <= x <= 10.5
Persona ID to apply a previously created Persona style to this music generation
Only available when custom_mode=true. Obtained via the Suno Persona Creation API, preserves consistent vocal and style characteristics
How to obtain: After the Persona creation task completes, retrieve from result_data.persona_id
"5c57d49ef834110496fae5aa14fec441"
Persona application mode
Options:
style_persona: Style-oriented, emphasizes musical style characteristics (arrangement, rhythm, timbre), supports all model versionsvoice_persona: Voice-oriented, emphasizes vocal characteristics (timbre, singing style, voice), V5 onlyOnly available when custom_mode=true, typically used with persona_id. When using voice_persona, the model must be suno-v5-beta, otherwise an error is returned
style_persona, voice_persona "style_persona"
HTTPS callback URL for task completion notification
Callback stages:
text (text generation), first (first track completed), complete (all completed)text and first stages may be skipped, returning complete directlySecurity restrictions:
2048 charactersCallback mechanism:
10 seconds3 retries on failure"https://your-domain.com/webhooks/suno-callback"
Music task created successfully
Task creation timestamp
1766319090
Task ID, used to query task status and results
"task-unified-1766319089-oqs9cue4"
Actual model name used
"suno-v5-beta"
Task type
audio.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Audio task details
Task output type
audio "audio"
Usage and billing information