This API extends audio tracks while preserving the original style of the audio track. It includes Suno’s upload functionality, allowing users to upload audio files for processing. The expected result is a longer track that seamlessly continues the input style.
m (male), f (female)All endpoints require authentication using Bearer Token.
Add to request headers:
Authorization: Bearer YOUR_API_KEY⚠️ Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately from the management page
The URL for uploading audio files, required regardless of whether defaultParamFlag is true or false.
Upload Audio Duration Limits:
"https://storage.example.com/upload"
Enable custom mode for advanced audio generation settings.
true to use custom parameter mode (requires style, title, and uploadUrl; if instrumental is false, uploadUrl and prompt are required). If instrumental is false, the prompt will be strictly used as lyrics.false to use non-custom mode (only uploadUrl required). Lyrics will be automatically generated based on the prompt.true
The AI model version to use for generation.
V5: Superior musical expression, faster generation.V4_5PLUS: V4.5+ is richer sound, new waysto create, max 8 min.V4_5: V4.5 is smarter prompts, fastergenerations, max 8 min.V4: V4 is improved vocal quality,max 4 min.V4_5ALL: V4.5-all is better song structure,max 8 min.V4_5ALL, V4, V4_5, V4_5PLUS, V5 "V4_5ALL"
The URL to receive task completion notifications when upload and extend audio is complete. The callback process has three stages: text (text generation), first (first track complete), complete (all tracks complete). Note: In some cases, text and first stages may be skipped, directly returning complete.
For detailed callback format and implementation guide, see Upload and Extend Audio Callbacks
"https://api.example.com/callback"
Determines whether the audio is instrumental (without lyrics).
defaultParamFlag: true):
true: only style, title, and uploadUrl are required.false: style, title, prompt (prompt will be used as exact lyrics), and uploadUrl are required.defaultParamFlag: false): does not affect required fields (only uploadUrl needed). If false, lyrics will be automatically generated.true
Description of how the music should be extended. Required when defaultParamFlag is true. Character limits by model:
"Extend the music with more relaxing notes"
Music style, e.g., Jazz, Classical, Electronic. Character limits by model:
"Classical"
Music title. Character limits by model:
"Peaceful Piano Extended"
The time point (in seconds) from which to start extending the music.
defaultParamFlag is true.60
Persona ID to apply to the generated music. Optional. Only available when Custom Mode is enabled. Use this to apply a specific persona style to your music generation.
To generate a persona ID, use the Generate Persona endpoint to create a personalized music Persona based on generated music.
"persona_123"
Music styles to exclude from generation
"Relaxing Piano"
Preferred vocal gender. Optional. Allowed values: 'm' (male), 'f' (female).
m, f "m"
Style adherence weight. Optional. Range: 0-1. Two decimal places recommended.
0 <= x <= 1Must be a multiple of 0.010.65
Creativity/novelty constraint. Optional. Range: 0-1. Two decimal places recommended.
0 <= x <= 1Must be a multiple of 0.010.65
Relative weight of audio consistency versus other controls. Optional. Range: 0-1. Two decimal places recommended.
0 <= x <= 1Must be a multiple of 0.010.65
Request successful
200, 400, 401, 404, 405, 413, 429, 430, 455, 500 200
Error message when code != 200
"success"