Audio Separation

Separate vocals from accompaniment in an audio file, producing independent vocal and instrumental tracks. Supports two modes: fast and turbo (enhanced quality).

Create Task

Basic Information

ItemValue
Request MethodPOST
Request Path/task/audio_separation
Content-Typeapplication/json
AuthenticationRaw API key in the Authorization header

Request Body

ParameterTypeRequiredDefaultDescription
file_idstringYes-Uploaded audio file ID
modestringNofastSeparation mode. fast: fast mode; turbo: enhanced mode (higher separation quality)
need_vocalsbooleanNotrueWhether to output the vocal track
need_instrumentalbooleanNotrueWhether to output the instrumental track

need_vocals and need_instrumental cannot both be false.

Request Example

curl -X POST https://api.ai-mcn.tv:10000/task/audio_separation \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_id": "537489015178246",
    "mode": "fast",
    "need_vocals": true,
    "need_instrumental": true
  }'

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "task_type": "audio_separation",
    "status": "queued"
  }
}

Query Task Result

Basic Information

ItemValue
Request MethodGET
Request Path/task/audio_separation/{task_id}
AuthenticationRaw API key in the Authorization header

Output Result (output_result)

ParameterTypeDescription
filesarraySeparated audio track list
files[].typestringTrack type: vocals or instrumental
files[].file_idstringGenerated file ID
files[].download_urlstringDownload path for the generated file

Success Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "537489015178247",
    "status": "completed",
    "progress": 100,
    "output_result": {
      "files": [
        {
          "type": "vocals",
          "file_id": "537489015178248",
          "download_url": "/download/a1/537489015178248.wav"
        },
        {
          "type": "instrumental",
          "file_id": "537489015178249",
          "download_url": "/download/a1/537489015178249.wav"
        }
      ]
    },
    "create_time": "2026-05-29T08:00:00Z",
    "update_time": "2026-05-29T08:00:40Z"
  }
}

Limitations

  • Input supports audio files only (mp3, wav, m4a, aac, flac, ogg, etc.).
  • Billed by audio duration (minutes).
  • Both fast and turbo output wav files.

Error Codes

Error CodeHTTP StatusDescriptionResolution
6013400Missing file_idPass the file_id field
6014400Unsupported file typeUpload a supported audio file
6016400Invalid task parameters (e.g. bad mode, or both tracks disabled)Check mode / need_vocals / need_instrumental
6017400Media probe failedEnsure the file is a valid, non-corrupt audio
6004404File not foundVerify the file_id
6502401Authentication failedCheck the Authorization header
6202402Insufficient balanceRecharge in the Dashboard