Extract stems from an audio file or URL

Process an audio file to extract specified stems (vocals, instrumental, or other components) with optional preprocessing. Supports file upload or URL with webhook callback.

post/v2/Extraction

Request

  • Base URL
    https://api.musicgpt.com/api/public
  • Auth
    API key in header Authorization

Request body multipart/form-data

OR

Example request

{
  "audio_url": "https://www.youtube.com/watch?v=example123",
  "stems": "[\"vocals\", \"drums\"]",
  "preprocessing_options": "[\"Denoise\", \"Dereverb\"]",
  "webhook_url": "http://webhook.musicgpt.com"
}

Response

Successfully initiated audio extraction

successboolean
task_idstring
conversion_idstring
etainteger

Time in seconds to completion. -1 if unknown

credit_estimatenumber float

Estimated credit cost

Example response

{
  "success": true,
  "task_id": "62725d68-01e8-4c87-8fb0-298aa81c529c",
  "conversion_id": "46b358c9-b22f-49d1-a68d-17901a6a549b",
  "eta": 11,
  "credit_estimate": 2.5
}

Changes

No recorded changes to this operation across all 1 revision of this API.