Conversion Endpoints
Extract Key BPM
Processes an audio file to extract key changes, dominant key, and BPM (Beats Per Minute).
POST
/
extract_key_bpm
Copy
import requests
url = "https://api.example.com/api/public/v1/extract_key_bpm"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}
# Option 1: URL
response = requests.post(url, headers=headers, json={"audio_url": "https://example.com/audio.m4a"})
# Option 2: File Upload
with open("audio.m4a", "rb") as f:
files = {"audio_file": f}
response = requests.post(url, headers=headers, files=files)
print(response.json())
Copy
{
"success": true,
"task_id": "keybpm789",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Authorizations
Body
multipart/form-data
Response
200
application/json
Successfully initiated key/bpm extraction
The response is of type object
.
Copy
import requests
url = "https://api.example.com/api/public/v1/extract_key_bpm"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}
# Option 1: URL
response = requests.post(url, headers=headers, json={"audio_url": "https://example.com/audio.m4a"})
# Option 2: File Upload
with open("audio.m4a", "rb") as f:
files = {"audio_file": f}
response = requests.post(url, headers=headers, files=files)
print(response.json())
Copy
{
"success": true,
"task_id": "keybpm789",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Assistant
Responses are generated using AI and may contain mistakes.