Stem Song
Perform track separation on an input song, separating the song into different audio track components.
API Information
- Method: POST
- Endpoint:
/api/v1/music?action=song_stem
Authentication
BearerAuth Type: HTTP (bearer)
Request Body
json
{
"url": "string"
}Parameter Description
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Audio file URL, supported formats: mp3, m4a. Also supports base64 format URL, maximum data size 10MB. |
Response Example
json
{
"code": 0,
"message": "success",
"resp_data": {
"zip_url": "https://example.com/stem/song_1234567890abcdef_stems.zip",
"expires_at": 1640995200
}
}Response Field Description
- zip_url: String, URL of the ZIP compressed file containing all separated audio tracks.
- expires_at: Integer, timestamp (in seconds) when the URL expires.
Request Example
bash
curl -X POST "[HOST]/api/v1/music?action=song_stem" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/audio/song_1234567890abcdef.mp3"
}'