POST
/
Remix
import requests

url = "https://api.example.com/api/public/v1/remix"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}
data = {
  "mode": "REMIX",
  "prompt": "Generate a soothing ambient soundscape."
}

# Option 1: URL
files = {}
data["audio_path"] = "https://www.youtube.com/watch?v=example123"
response = requests.post(url, headers=headers, data=data, files=files)

# Option 2: File Upload
with open("audio.m4a", "rb") as f:
    files = {"audio_file": f}
    response = requests.post(url, headers=headers, data=data, files=files)

print(response.json())
{
  "success": true,
  "task_id": "stem123",
  "conversion_id": "conv456",
  "eta": -1,
  "credit_estimate": 100.1,
  "message": "Successfully published to queue"
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data

Response

200
application/json

Successfully initiated remix task

The response is of type object.