docs.api.box
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
Suno API
Common APIFile Upload API
Suno API
Common APIFile Upload API
  1. Vocal Removal
  • API.box Documentation
  • Quick Start
  • Generate Music
    • Music Generation Callbacks
    • Music Extension Callbacks
    • Upload and Cover Audio Callbacks
    • Upload and Extend Audio Callbacks
    • Add Instrumental Callbacks
    • Add Vocals Callbacks
    • Music Cover Generation Callbacks
    • Replace Music Section Callbacks
    • Generate Music
      POST
    • Extend Music
      POST
    • Upload And Cover Audio
      POST
    • Upload And Extend Audio
      POST
    • Add Instrumental
      POST
    • Add Vocals
      POST
    • Get Music Generation Details
      GET
    • Recovery Audio
      POST
    • Get Recovery Audio Details
      GET
    • Get Timestamped Lyrics
      POST
    • Boost Music Style
      POST
    • Generate Music Cover
      POST
    • Replace Music Section
      POST
    • Get Music Cover Details
      GET
    • Generate Persona
      POST
    • Generate Mashup
      POST
  • Suno Voice
    • Suno Voice Validation Phrase Callbacks
    • Suno Voice Generation Callbacks
    • Suno Voice Regenerate Phrase Callbacks
    • Suno Voice Generate Verification Phrase
    • Suno Voice Get Verification Phrase
    • Suno Voice Create Custom Voice
    • Suno Voice Get Custom Voice Record
    • Suno Voice Regenerate Verification Phrase
    • Suno Voice Check Availability
  • Lyrics Generation
    • Lyrics Generation Callbacks
    • Generate Lyrics
    • Get Lyrics Generation Details
  • Generate Sounds
    • Generate Sounds
  • WAV Conversion
    • WAV Format Conversion Callbacks
    • Convert to WAV Format
    • Get WAV Conversion Details
  • Vocal Removal
    • Audio Separation Callbacks
    • MIDI Generation Callbacks
    • Vocal and Instrument Separation
      POST
    • Get Audio Separation Details
      GET
    • Generate MIDI from Audio
      POST
    • Get MIDI Generation Details
      GET
  • Music Video Generation
    • Music Video Generation Callbacks
    • Create Music Video
    • Get Music Video Details
  • Generate Speech
    • Generate Speech
  1. Vocal Removal

Audio Separation Callbacks

When vocal and instrument separation generation is complete, the system will call this callback to notify the results.
When you submit a task to the vocal and instrument separation API, you can use the callBackUrl parameter to set a callback URL. When the task is completed, the system will automatically push the results to your specified address.

Callback Mechanism Overview#

The callback mechanism eliminates the need to poll the API for task status. The system will proactively push task completion results to your server. The callback data structure varies based on the type parameter specified in the request.

Callback Timing#

The system will send callback notifications in the following situations:
Vocal separation completed
Vocal separation task failed
Error occurred during task processing
Vocal separation has only one callback stage, but different numbers of separated audio file URLs are provided based on the separation type (separate_vocal or split_stem)

Callback Method#

HTTP Method: POST
Content Type: application/json
Timeout: 15 seconds

Callback Request Format#

When the task is completed, the system will send a POST request to your callBackUrl in the following format. The callback data structure varies based on the requested type parameter:
separate_vocal Type Callback
split_stem Type Callback
split_stem_advanced Type Callback
Vocal Separation Failed Callback
{
  "code": 200,
  "msg": "vocal Removal generated successfully.",
  "data": {
    "task_id": "3e63b4cc88d52611159371f6af5571e7",
    "vocal_removal_info": {
      "instrumental_url": "https://file.aiquickdraw.com/s/d92a13bf-c6f4-4ade-bb47-f69738435528_Instrumental.mp3",
      "origin_url": "",
      "vocal_url": "https://file.aiquickdraw.com/s/3d7021c9-fa8b-4eda-91d1-3b9297ddb172_Vocals.mp3"
    }
  }
}

Status Code Description#

code · integer · required
Callback status code indicating task processing result:
Status CodeDescription
200Success - Vocal separation completed
400Bad Request - Invalid source audio or parameter error
401Unauthorized - Invalid API key
429Insufficient Credits - Account credit balance insufficient
500Server Error - Please retry later
msg · string · required
Status message providing detailed status description
data.task_id · string · required
Task ID, consistent with the taskId returned when you submitted the task
data.vocal_removal_info · object
Vocal separation result information, returned on success. Fields vary based on separation type

separate_vocal Type Fields#

data.vocal_removal_info.origin_url · string
Original audio file URL
data.vocal_removal_info.vocal_url · string
Separated vocal audio file URL
data.vocal_removal_info.instrumental_url · string
Separated instrumental audio file URL (no vocals)

split_stem Type Fields#

data.vocal_removal_info.origin_url · string
Original audio file URL
data.vocal_removal_info.vocal_url · string
Separated vocal audio file URL
data.vocal_removal_info.backing_vocals_url · string
Separated backing vocals audio file URL
data.vocal_removal_info.drums_url · string
Separated drums audio file URL
data.vocal_removal_info.bass_url · string
Separated bass audio file URL
data.vocal_removal_info.guitar_url · string
Separated guitar audio file URL
data.vocal_removal_info.keyboard_url · string
Separated keyboard audio file URL
data.vocal_removal_info.percussion_url · string
Separated percussion instruments audio file URL
data.vocal_removal_info.strings_url · string
Separated string instruments audio file URL
data.vocal_removal_info.synth_url · string
Separated synthesizer audio file URL
data.vocal_removal_info.fx_url · string
Separated sound effects audio file URL
data.vocal_removal_info.brass_url · string
Separated brass instruments audio file URL
data.vocal_removal_info.woodwinds_url · string
Separated woodwind instruments audio file URL

split_stem_advanced Type Fields#

data.vocal_removal_info.origin_data · array
An array of separation results for the original audio, containing extraction and removal information for multiple stem groups. Each element represents an independent stem group (e.g., Lead Vocal).
data.vocal_removal_info.origin_data[].extract · object
Information about the extracted target stem (isolates this stem while removing others).
data.vocal_removal_info.origin_data[].extract.duration · number
The duration of the extracted audio, in seconds.
data.vocal_removal_info.origin_data[].extract.audio_url · string
The download URL of the extracted target stem audio file.
data.vocal_removal_info.origin_data[].extract.stem_type_group_name · string
The stem type group name (e.g., Lead Vocal), indicating which type of stem this group extracts.
data.vocal_removal_info.origin_data[].extract.id · string
The unique identifier for the extracted audio.
data.vocal_removal_info.origin_data[].remove · object
Information about the remaining audio after removing the target stem (removes this stem while keeping others).
data.vocal_removal_info.origin_data[].remove.duration · number
The duration of the audio after removal, in seconds.
data.vocal_removal_info.origin_data[].remove.audio_url · string
The download URL of the remaining audio file after the target stem has been removed.
data.vocal_removal_info.origin_data[].remove.stem_type_group_name · string
The stem type group name (e.g., Lead Vocal), consistent with the corresponding extract entry.
data.vocal_removal_info.origin_data[].remove.id · string
The unique identifier for the remaining audio.

Callback Reception Examples#

Here are example codes for receiving callbacks in various popular programming languages, supporting both separation types:
Node.js
Python
PHP

Best Practices#

Vocal Separation Callback Configuration#

1.
Multi-track Management: Organize separated tracks with clear naming conventions
2.
Quality Assessment: Verify separation quality for each track type
3.
Storage Organization: Create folder structures for different separation projects
4.
Batch Processing: Implement efficient batch downloads for multiple tracks
5.
Track Analysis: Analyze separated tracks for remix and production purposes
6.
Backup Strategy: Maintain backups of both original and separated tracks

Separation-Specific Considerations#

Separation quality depends on the complexity of the original mix
Some instruments may not separate cleanly in all cases
Vocal separation works best with clear, well-mixed source material
Multiple separated files require significant storage space
Processing time varies based on track length and complexity

Troubleshooting#

Common issues specific to vocal separation callbacks:
Separation Quality
Multi-file Downloads
Storage and Organization

Alternative Solutions#

If you cannot use the callback mechanism, you can also use polling:
Poll Separation Results
Use the Get Vocal Separation Details interface to regularly query separation task status. Recommend querying every 30 seconds.
Previous
Get WAV Conversion Details
Next
MIDI Generation Callbacks
Built with