将音频分离为独立音轨
Creates an asynchronous stem separation task (`beatra-stems-v1` or `auto`, up to 10 minutes and 100 MiB). `mode="two_stem"` outputs `vocals` and `accompaniment`; `mode="multi_stem"` outputs `vocals`, `drums`, `bass`, `guitar`, `piano`, and `other`. Charged per task according to `mode`. When the task succeeds, `output` contains `{operation: "separate_stems", mode, outputs: [{role, artifact_id, url, mime_type, duration_ms, size_bytes}]}`.
下方的接口说明(参数、请求和响应)是英文原文,字段名与接口完全一致。
Request Body
application/jsonRequiredmetadataMetadataCaller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
callback_urlCallback UrlHTTPS URL Beatra will POST the final Task envelope to when the Task reaches a terminal state
callback_signing_key_idCallback Signing Key IdOptional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
sourceSource audio (artifact_id or HTTPS url). Accepts source or audio.
modelModelStem separation model identifier, or 'auto' for automatic selection.
"auto"Value in: "auto" | "beatra-stems-v1"modeModeStem separation mode (two_stem for vocals + instrumental, multi_stem for up to 6 stems).
"two_stem"Value in: "two_stem" | "multi_stem"Header Parameters
X-Request-IdstringOptional client request id echoed in the response.
Idempotency-Key1Maximum length: 128AuthorizationBearer API key.
Task accepted
最后更新