POST
/
audio-separation
curl --request POST \
  --url https://client.camb.ai/apis/audio-separation \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>'
{
  "task_id": "<string>"
}

This endpoint allows for the separation of an audio file into distinct background and foreground components. To check the status of the task, the /audio-separation/{task_id} endpoint can be polled.

Supported Files

The audio_file property accepts the following file formats:

  • FLAC
  • MP3
  • WAV
  • AAC

Authorizations

x-api-key
string
header
required

The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.

Body

multipart/form-data
audio_file
file

Audio file to processed. AAC, FLAC, MP3 and WAV formats are supported.

Response

200
application/json
Successful Response

A JSON that contains unique identifier for the task. This is used to query the status of the audio separation task that is running. It is returned when a create request is made to separate audio into background and foreground.

task_id
string