POST
/
audio_mastering
import requests

url = "https://api.example.com/api/public/v1/audio_mastering"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}

payload = {
    "audio_path": "https://example.com/input_audio.mp3",
    "reference_audio_path": "https://example.com/reference_track.wav",
    "conversion_id": "conv123",
    "output_extension": "wav",
    "audio_duration": 180.5,
    "webhook_url": "http://your-webhook-url.com/callback",
    "user_id": "user123"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
{
  "success": true,
  "task_id": "master123",
  "conversion_id": "conv456",
  "credit_estimate": 150.75,
  "eta": 300,
  "message": "Mastering task queued successfully"
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data

Response

200
application/json

Successfully initiated audio mastering

The response is of type object.