Skip to main content

Stream Isolated Audio

POST 

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

Same multipart body as Isolate audio, but the isolated audio is streamed. Billed at $0.17/minute.

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.

cURL Example​

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

Response​

Success Response (200)​

Streaming isolated audio bytes.

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.