{
  "openapi": "3.0.1",
  "info": {
    "title": "Vocal Remover & Stem Splitter | Karaoke, Acapella, Stems",
    "description": "Remove vocals or extract them from any song with the Demucs AI. Karaoke instrumentals, a cappella vocals, 4 or 6 stems, practice tracks without drums, bass or guitar, key and speed change. MP3, WAV, FLAC, M4A.",
    "version": "1.0",
    "x-build-id": "tIYCXtqFgQh3m0L28"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~vocal-remover/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-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/trev0n~vocal-remover/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-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/trev0n~vocal-remover/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-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": {
          "audioUrls": {
            "title": "Audio or video links",
            "type": "array",
            "description": "Direct links to audio or video files (MP3, WAV, FLAC, M4A, AAC, OGG, OPUS, MP4, MOV, MKV, WEBM and more), Google Drive or Dropbox share links, or links to files in an Apify key-value store. YouTube, TikTok, Instagram, SoundCloud, Spotify and similar platform links are not supported because their terms do not allow downloading. Only process music you have the rights to.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Tracks to create",
            "enum": [
              "vocals-instrumental",
              "4-stems",
              "5-tracks",
              "6-stems",
              "no-drums",
              "no-bass",
              "no-guitar",
              "no-piano"
            ],
            "type": "string",
            "description": "Vocals + instrumental is the karaoke split. Four stems give vocals, drums, bass and other instruments; five tracks add the instrumental. Six stems add guitar and piano (piano is less clean). Practice tracks give the whole song without one part, plus that part on its own.",
            "default": "vocals-instrumental"
          },
          "quality": {
            "title": "Separation quality",
            "enum": [
              "standard",
              "fast",
              "high"
            ],
            "type": "string",
            "description": "Standard uses the Hybrid Transformer Demucs model (the usual choice). Fast uses the previous Demucs generation: quicker and cheaper, with a bit more bleed between tracks. High uses the fine-tuned specialist models for the cleanest result; each started minute counts once per specialist model needed (karaoke and practice tracks need one, four or five stems need four). Six-stem modes always use the six-source model; in High they run two passes, so each minute counts twice.",
            "default": "standard"
          },
          "outputFormat": {
            "title": "Audio format",
            "enum": [
              "mp3",
              "wav",
              "flac",
              "m4a"
            ],
            "type": "string",
            "description": "MP3 (320 kbps) is small and plays everywhere. WAV and FLAC are lossless 16-bit for editing in a DAW. M4A is AAC at 256 kbps.",
            "default": "mp3"
          },
          "pitchSemitones": {
            "title": "Key change (semitones)",
            "minimum": -12,
            "maximum": 12,
            "type": "integer",
            "description": "Shift every track up or down by this many semitones without changing the speed, for singing in your own key. Voices keep their natural tone. 0 keeps the original key. From -12 to +12.",
            "default": 0
          },
          "tempoPercent": {
            "title": "Speed (%)",
            "minimum": 50,
            "maximum": 200,
            "type": "integer",
            "description": "Play every track faster or slower without changing the key: 80 is 20% slower for practising, 100 keeps the original speed. From 50 to 200.",
            "default": 100
          },
          "maxDurationMinutes": {
            "title": "Maximum length per file (minutes)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Files longer than this are skipped and not charged, so a wrong link (a two-hour mix, a podcast) cannot run up the cost. Up to 120 minutes for MP3 and M4A, 30 minutes for WAV and FLAC.",
            "default": 20
          },
          "maxFiles": {
            "title": "Maximum files",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Process at most this many links per run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}