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
| Item | Value |
|---|
| Request Method | POST |
| Request Path | /task/audio_separation |
| Content-Type | application/json |
| Authentication | Raw API key in the Authorization header |
Request Body
| Parameter | Type | Required | Default | Description |
|---|
file_id | string | Yes | - | Uploaded audio file ID |
mode | string | No | fast | Separation mode. fast: fast mode; turbo: enhanced mode (higher separation quality) |
need_vocals | boolean | No | true | Whether to output the vocal track |
need_instrumental | boolean | No | true | Whether 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
| Item | Value |
|---|
| Request Method | GET |
| Request Path | /task/audio_separation/{task_id} |
| Authentication | Raw API key in the Authorization header |
Output Result (output_result)
| Parameter | Type | Description |
|---|
files | array | Separated audio track list |
files[].type | string | Track type: vocals or instrumental |
files[].file_id | string | Generated file ID |
files[].download_url | string | Download 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 Code | HTTP Status | Description | Resolution |
|---|
6013 | 400 | Missing file_id | Pass the file_id field |
6014 | 400 | Unsupported file type | Upload a supported audio file |
6016 | 400 | Invalid task parameters (e.g. bad mode, or both tracks disabled) | Check mode / need_vocals / need_instrumental |
6017 | 400 | Media probe failed | Ensure the file is a valid, non-corrupt audio |
6004 | 404 | File not found | Verify the file_id |
6502 | 401 | Authentication failed | Check the Authorization header |
6202 | 402 | Insufficient balance | Recharge in the Dashboard |