Skip to main content

Isolate Audio

POST 

https://api.knoxstudio.ai/v1/audio-isolation

Isolate vocals/speech from mixed audio or video. Files up to 500MB, duration 100ms–1 hour. Billed at $0.17/minute. Guide: Voice Isolator.

Request​

Request Headers​

NameTypeRequiredDescription
AuthorizationStringYesBearer <token> Knox API key. xi-api-key is also accepted.
Content-TypeStringYesmultipart/form-data

Request Body​

NameTypeRequiredDescription
audioFileYesAudio or video file to isolate speech from.
file_formatStringNopcm_s16le_16 or other (encoded files such as MP3/WAV).
preview_b64StringNoOptional preview payload; forwarded upstream.

cURL Example​

curl -X POST https://api.knoxstudio.ai/v1/audio-isolation \
-H "Authorization: Bearer $KNOXCHAT_API_KEY" \
-F "audio=@interview.wav" \
-F "file_format=other" \
-o vocals.mp3

Response​

Success Response (200)​

The isolated audio file. Content-Type follows the upstream codec (typically MP3).

Error Responses​

Validation uses HTTP 422:

{
"detail": [
{
"loc": ["body", "field"],
"msg": "…",
"type": "value_error"
}
]
}

Other errors use { "detail": "message" }.

StatusWhen
400WebSocket path called without Upgrade: websocket.
401Missing or invalid API key.
402Insufficient credits.
403Token is not allowed to use this model.
404Resource not found.
422Validation error.
429Rate limit exceeded.
500Internal server error.