{
  "openapi": "3.0.1",
  "info": {
    "title": "Vocal Remover & AI Stem Splitter — Karaoke, Acapella, Stems",
    "description": "Remove vocals or extract them from any song with Meta's Demucs AI: instrumental (karaoke) and acapella tracks, or split into 4/6 stems (vocals, drums, bass, guitar, piano). Remove background music from videos and keep the voice. MP3, WAV, FLAC. Links, uploads or datasets.",
    "version": "1.0",
    "x-build-id": "9G7uX14vy5HISx9oh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidydata~vocal-remover/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidydata-vocal-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tidydata~vocal-remover/runs": {
      "post": {
        "operationId": "runs-sync-tidydata-vocal-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tidydata~vocal-remover/run-sync": {
      "post": {
        "operationId": "run-sync-tidydata-vocal-remover",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileUrls": {
            "title": "Song, audio or video links",
            "type": "array",
            "description": "One link per line: direct links to MP3, WAV, FLAC, M4A, OGG, MP4, MOV, MKV, WebM… files, Google Drive / Dropbox / OneDrive share links, public Google Drive folders or archive.org. YouTube, TikTok, Instagram, Spotify, SoundCloud, Facebook, X, Vimeo and their CDNs are refused (their terms forbid downloading). Only separate audio you have the right to use.",
            "items": {
              "type": "string"
            }
          },
          "uploadedFiles": {
            "title": "Or upload files",
            "type": "array",
            "description": "Upload songs, audio or video files from your computer (they go to a key-value store of your account and only this run reads them)."
          },
          "keyValueStoreId": {
            "title": "Or: files of a key-value store",
            "type": "string",
            "description": "Separate the audio/video files saved in one of your key-value stores (e.g. the output of another Actor). Only read access to this one store is requested."
          },
          "keyValueStoreKeys": {
            "title": "Only these keys of the store",
            "type": "array",
            "description": "Record keys to separate. Empty = every audio or video record of the store (up to 'Max files').",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What do you want?",
            "enum": [
              "vocals-instrumental",
              "instrumental",
              "vocals",
              "4-stems",
              "6-stems"
            ],
            "type": "string",
            "description": "Which tracks to return. Every mode costs the same per minute.",
            "default": "vocals-instrumental"
          },
          "quality": {
            "title": "Quality",
            "enum": [
              "standard",
              "best"
            ],
            "type": "string",
            "description": "'Best' runs four fine-tuned models and averages them: fewer artifacts, priced per minute higher. 6 stems always uses the 6-source model (standard price).",
            "default": "standard"
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "mp3",
              "wav",
              "flac",
              "m4a"
            ],
            "type": "string",
            "description": "Format of each separated track.",
            "default": "mp3"
          },
          "videoOutput": {
            "title": "For videos: also return the video with the new audio",
            "type": "boolean",
            "description": "When the input is a video and the mode is 'Vocals only' or 'Instrumental only', also return the video with only the voice (background music removed) or only the music (vocals removed). Free.",
            "default": true
          },
          "startTime": {
            "title": "Start time (trim)",
            "type": "string",
            "description": "Separate only a part: start here. Seconds (90), mm:ss (1:30), hh:mm:ss, 1m30s or a percent (10%). Empty = from the start. You pay only for the part separated."
          },
          "endTime": {
            "title": "End time (trim)",
            "type": "string",
            "description": "Separate only a part: end here (same formats). Empty = to the end."
          },
          "mp3BitrateKbps": {
            "title": "MP3 / M4A bitrate",
            "minimum": 96,
            "maximum": 320,
            "type": "integer",
            "description": "Bitrate for MP3 (M4A is capped at 256).",
            "default": 320
          },
          "bitDepth": {
            "title": "WAV / FLAC bit depth",
            "enum": [
              "16",
              "24"
            ],
            "type": "string",
            "description": "Bit depth for WAV and FLAC files.",
            "default": "16"
          },
          "maxMinutesPerFile": {
            "title": "Max minutes per file",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "Longer audio is not separated (free), so a long file by mistake can't run up a big bill. Raise it for DJ mixes or podcasts.",
            "default": 30
          },
          "maxFiles": {
            "title": "Max files",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many files (links, folder files and dataset rows together).",
            "default": 50
          },
          "maxFileSizeMb": {
            "title": "Max input file size",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Bigger files are not downloaded (free). Lowered automatically to what the run's disk can hold (it grows with memory).",
            "default": 1024
          },
          "datasetId": {
            "title": "Or: dataset with audio/video links (chain another Actor)",
            "type": "string",
            "description": "A dataset from another run whose rows contain audio or video links. Only read access to this one dataset is requested."
          },
          "datasetUrlFields": {
            "title": "Dataset fields with the links",
            "type": "string",
            "description": "Field name(s), comma separated; nested paths work (media.url, audio.0.src). Empty = detect it (audioUrl, fileUrl, url…)."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}