This API covers an audio track by transforming it into a new style while retaining its core melody. It incorporates Suno’s upload capability, enabling users to upload an audio file for processing. The expected result is a refreshed audio track with a new style, keeping the original melody intact.
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 customMode and instrumental are 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"
A description of the desired audio content.
customMode: true): Required if instrumental is false. The prompt will be strictly used as the lyrics and sung in the generated track. Character limits by model:
customMode: false): Always required. The prompt serves as the core idea, and lyrics will be automatically generated based on it (not strictly matching the input). Max length: 500 characters."A calm and relaxing piano track with soft melodies"
Enables Custom Mode for advanced audio generation settings.
true to use Custom Mode (requires style and title; prompt required if instrumental is false). The prompt will be strictly used as lyrics if instrumental is false.false for Non-custom Mode (only prompt is required). Lyrics will be auto-generated based on the prompt.true
Determines if the audio should be instrumental (no lyrics).
customMode: true):
true: Only style and title are required.false: style, title, and prompt are required (with prompt used as the exact lyrics).customMode: false): No impact on required fields (prompt only). Lyrics are auto-generated if instrumental is false.true
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 covering task completion updates. Required for all audio covering requests.
"https://api.example.com/callback"
The music style or genre for the audio.
customMode: true). Examples: "Jazz", "Classical", "Electronic". Character limits by model:
customMode: false): Leave empty."Classical"
The title of the generated music track.
customMode: true). Character limits by model:
customMode: false): Leave empty."Peaceful Piano Meditation"
Music styles or traits to exclude from the generated audio.
"Heavy Metal, Upbeat Drums"
Vocal gender preference for the singing voice. Optional. Use 'm' for male and 'f' for female. Note: This parameter is only effective when customMode is true. 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"