Conversion Endpoints
Audio Mastering
Processes an audio file to match the mastering characteristics of a reference track.
POST
/
audio_mastering
Copy
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())
Copy
{
"success": true,
"task_id": "master123",
"conversion_id": "conv456",
"credit_estimate": 150.75,
"eta": 300,
"message": "Mastering task queued successfully"
}
Authorizations
Body
multipart/form-data
Response
200
application/json
Successfully initiated audio mastering
The response is of type object
.
Copy
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())
Copy
{
"success": true,
"task_id": "master123",
"conversion_id": "conv456",
"credit_estimate": 150.75,
"eta": 300,
"message": "Mastering task queued successfully"
}
Assistant
Responses are generated using AI and may contain mistakes.