curl --request POST \
--url https://audimee.com/api/v1/harmonies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputFileUrl": "https://example.com/audio/lead-vocal.wav",
"key": "C Maj",
"presetId": "1"
}
'import requests
url = "https://audimee.com/api/v1/harmonies"
payload = {
"inputFileUrl": "https://example.com/audio/lead-vocal.wav",
"key": "C Maj",
"presetId": "1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
inputFileUrl: 'https://example.com/audio/lead-vocal.wav',
key: 'C Maj',
presetId: '1'
})
};
fetch('https://audimee.com/api/v1/harmonies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://audimee.com/api/v1/harmonies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'inputFileUrl' => 'https://example.com/audio/lead-vocal.wav',
'key' => 'C Maj',
'presetId' => '1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://audimee.com/api/v1/harmonies"
payload := strings.NewReader("{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://audimee.com/api/v1/harmonies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://audimee.com/api/v1/harmonies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}"
response = http.request(request)
puts response.read_body{
"id": "0c8f6f0e-3a43-4b6e-9a8a-2d3f6b1c9e57"
}Create a harmony
Starts a harmony from one of Audimee’s presets: the input vocal is converted once per track, each track sung by its own built-in voice on its own harmony line in the musical key you supply. The input may be at most 75 seconds long, and a harmony uses conversion time equal to the input length × the number of tracks.
The response returns the harmony id once the input’s pitch has been analysed — usually a few seconds, up to about a minute when that service is starting up — so use a client timeout of at least 120 seconds and don’t retry after a timeout: the harmony may already exist. The tracks then render asynchronously; poll GET /harmonies/{id} for progress.
curl --request POST \
--url https://audimee.com/api/v1/harmonies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inputFileUrl": "https://example.com/audio/lead-vocal.wav",
"key": "C Maj",
"presetId": "1"
}
'import requests
url = "https://audimee.com/api/v1/harmonies"
payload = {
"inputFileUrl": "https://example.com/audio/lead-vocal.wav",
"key": "C Maj",
"presetId": "1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
inputFileUrl: 'https://example.com/audio/lead-vocal.wav',
key: 'C Maj',
presetId: '1'
})
};
fetch('https://audimee.com/api/v1/harmonies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://audimee.com/api/v1/harmonies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'inputFileUrl' => 'https://example.com/audio/lead-vocal.wav',
'key' => 'C Maj',
'presetId' => '1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://audimee.com/api/v1/harmonies"
payload := strings.NewReader("{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://audimee.com/api/v1/harmonies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://audimee.com/api/v1/harmonies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inputFileUrl\": \"https://example.com/audio/lead-vocal.wav\",\n \"key\": \"C Maj\",\n \"presetId\": \"1\"\n}"
response = http.request(request)
puts response.read_body{
"id": "0c8f6f0e-3a43-4b6e-9a8a-2d3f6b1c9e57"
}Authorizations
Static API key issued by Audimee, passed as Authorization: Bearer {token}.
Body
http or https URL to the vocal to harmonize, at most 75 seconds long. The server downloads it server-side, so the URL must be reachable from the public internet for the duration of the request; URLs that resolve to private or internal addresses are rejected.
Musical key of the input. Harmony lines are built from the notes of this key, so a wrong key produces wrong-sounding harmonies.
C Maj, C Min, C# Maj, C# Min, D Maj, D Min, D# Maj, D# Min, E Maj, E Min, F Maj, F Min, F# Maj, F# Min, G Maj, G Min, G# Maj, G# Min, A Maj, A Min, A# Maj, A# Min, B Maj, B Min id of the harmony preset to use, as returned by GET /harmony-presets — for example 1.
Response
Harmony created and its tracks queued for rendering. Poll GET /harmonies/{id} for progress.
UUID of the queued harmony.