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.
customMode: true)style, title, and prompt (if not instrumental)instrumental is falsecustomMode: false)prompt🔑 API Authentication
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 customMode and instrumental are true or false. Ensure the uploaded audio does not exceed 2 minutes in length.
"https://storage.example.com/upload"
Enables Custom Mode for advanced audio generation settings. Set to 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. Set to 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). In Custom Mode (customMode: true): If true: Only style and title are required. If false: style, title, and prompt are required (with prompt used as the exact lyrics). In Non-custom Mode (customMode: false): No impact on required fields (prompt only). Lyrics are auto-generated if instrumental is false.
true
The model version to use for audio generation. Choose between: V3_5, V4, V4_5, or V4_5PLUS. Note: Ensure correct formatting (e.g., use V3_5 or V4, not V3.5 or other variations).
V3_5, V4, V4_5, V4_5PLUS "V3_5"
The URL to receive task completion notifications when audio covering is complete. For detailed callback format and implementation guide, see Upload and Cover Audio Callbacks. Alternatively, you can use the get music generation details endpoint to poll task status.
"https://api.example.com/callback"
A description of the desired audio content. In Custom Mode (customMode: true): Required if instrumental is false. The prompt will be strictly used as the lyrics and sung in the generated track. Max length: 3000 characters. In Non-custom Mode (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: 400 characters.
"A calm and relaxing piano track with soft melodies"
The music style or genre for the audio. Required in Custom Mode (customMode: true). Examples: Jazz, Classical, Electronic. Max length: 200 characters. In Non-custom Mode (customMode: false): Leave empty.
"Classical"
The title of the generated music track. Required in Custom Mode (customMode: true). Max length: 80 characters. In Non-custom Mode (customMode: false): Leave empty.
"Peaceful Piano Meditation"
Music styles or traits to exclude from the generated audio. Optional. Use to avoid specific styles.
"Heavy Metal, Upbeat Drums"
Preferred vocal gender for generated vocals. Optional.
m, f "m"
Weight of the provided style guidance. Range 0.00–1.00.
0 <= x <= 1Must be a multiple of 0.010.65
Constraint on creative deviation/novelty. Range 0.00–1.00.
0 <= x <= 1Must be a multiple of 0.010.65
Weight of the input audio influence (where applicable). Range 0.00–1.00.
0 <= x <= 1Must be a multiple of 0.010.65
Request successful
Status code. 200 - Request successful, 400 - Invalid parameters, 401 - Unauthorized access, 404 - Invalid request method or path, 405 - Rate limit exceeded, 413 - Theme or prompt too long, 429 - Insufficient credits, 430 - Your call frequency is too high. Please try again later, 455 - System maintenance, 500 - Server error
200, 400, 401, 404, 405, 413, 429, 430, 455, 500 200
Error message when code != 200
"success"