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.
vocalGender (string): Vocal gender preference. Use m for male, f for female.styleWeight (number): Strength of adherence to style. Range 0–1, up to 2 decimals. Example: 0.65.weirdnessConstraint (number): Controls creative deviation. Range 0–1, up to 2 decimals. Example: 0.65.audioWeight (number): Balance weight for audio features. Range 0–1, up to 2 decimals. Example: 0.65.personaId (string): Persona ID to apply to the generated music. Only available when Custom Mode is enabled. To create one, use Generate Persona.All APIs require authentication via Bearer Token.
Get API Key:
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
The URL for uploading audio files, required regardless of whether defaultParamFlag is true or false. Ensure the uploaded audio does not exceed 8 minutes in length. Note: For the V4_5ALL model, the uploaded audio must not exceed 1 minute in length.
"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
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
The time point (in seconds) from which to start extending the music.
defaultParamFlag is true.60
The AI model version to use for generation.
V5: Superior musical expression, faster generation.V4_5PLUS: V4.5+ delivers richer sound, new ways to create, max 8 min.V4_5: V4.5 enables smarter prompts, faster generations, max 8 min.V4_5ALL: V4.5ALL enables smarter prompts, faster generations, max 8 min.V4: V4 improves vocal quality, max 4 min.V4, V4_5, V4_5PLUS, V4_5ALL, V5 "V4"
The URL to receive audio extension task completion updates. Required for all audio extension requests.
"https://api.example.com/callback"
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"
Music styles to exclude from generation
"Relaxing Piano"
Vocal gender preference for the singing voice. Optional. Use 'm' for male and 'f' for female. Based on practice, this parameter can only increase the probability but cannot guarantee adherence to male/female voice instructions.
m, f "m"
Strength of adherence to the specified style. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Controls experimental/creative deviation. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Balance weight for audio features vs. other factors. Optional. Range 0–1, up to 2 decimal places.
0 <= x <= 1Must be a multiple of 0.010.65
Only available when Custom Mode (customMode: true) is enabled. Persona ID to apply to the generated music. Optional. 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"
Request successful
Response status code
200, 401, 402, 404, 409, 422, 429, 451, 455, 500 Error message when code != 200
"success"