Accounts
Set TTS API keys
Allows adding or updating TTS provider API keys to an account, enabling ExternalVoices
PATCH
/
api
/
accounts
/
me
/
tts_api_keys
cURL
curl --request PATCH \
--url https://api.ultravox.ai/api/accounts/me/tts_api_keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"elevenLabs": "<string>",
"cartesia": "<string>",
"lmnt": "<string>",
"google": "<string>",
"inworld": "<string>",
"respeecher": "<string>"
}
'import requests
url = "https://api.ultravox.ai/api/accounts/me/tts_api_keys"
payload = {
"elevenLabs": "<string>",
"cartesia": "<string>",
"lmnt": "<string>",
"google": "<string>",
"inworld": "<string>",
"respeecher": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
elevenLabs: '<string>',
cartesia: '<string>',
lmnt: '<string>',
google: '<string>',
inworld: '<string>',
respeecher: '<string>'
})
};
fetch('https://api.ultravox.ai/api/accounts/me/tts_api_keys', 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://api.ultravox.ai/api/accounts/me/tts_api_keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'elevenLabs' => '<string>',
'cartesia' => '<string>',
'lmnt' => '<string>',
'google' => '<string>',
'inworld' => '<string>',
'respeecher' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://api.ultravox.ai/api/accounts/me/tts_api_keys"
payload := strings.NewReader("{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.patch("https://api.ultravox.ai/api/accounts/me/tts_api_keys")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ultravox.ai/api/accounts/me/tts_api_keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"elevenLabs": {
"prefix": "<string>"
},
"cartesia": {
"prefix": "<string>"
},
"lmnt": {
"prefix": "<string>"
},
"google": {
"prefix": "<string>"
},
"inworld": {
"prefix": "<string>"
},
"respeecher": {
"prefix": "<string>"
}
}This is not necessary for using the service’s included voices or your own voice clones added to the service.
Body
application/json
Your ElevenLabs API key. https://elevenlabs.io/app/settings/api-keys
Your Cartesia API key. https://play.cartesia.ai/keys
Your LMNT API key. https://app.lmnt.com/account#api-keys
A service account JSON key for your Google Cloud project with the Text-to-Speech API enabled. https://cloud.google.com/text-to-speech/docs/quickstart-client-libraries#before-you-begin https://cloud.google.com/iam/docs/keys-create-delete#creating
Your Inworld API key. https://platform.inworld.ai/login
Your Respeecher API key. https://space.respeecher.com/api-keys
Response
200 - application/json
⌘I
cURL
curl --request PATCH \
--url https://api.ultravox.ai/api/accounts/me/tts_api_keys \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"elevenLabs": "<string>",
"cartesia": "<string>",
"lmnt": "<string>",
"google": "<string>",
"inworld": "<string>",
"respeecher": "<string>"
}
'import requests
url = "https://api.ultravox.ai/api/accounts/me/tts_api_keys"
payload = {
"elevenLabs": "<string>",
"cartesia": "<string>",
"lmnt": "<string>",
"google": "<string>",
"inworld": "<string>",
"respeecher": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
elevenLabs: '<string>',
cartesia: '<string>',
lmnt: '<string>',
google: '<string>',
inworld: '<string>',
respeecher: '<string>'
})
};
fetch('https://api.ultravox.ai/api/accounts/me/tts_api_keys', 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://api.ultravox.ai/api/accounts/me/tts_api_keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'elevenLabs' => '<string>',
'cartesia' => '<string>',
'lmnt' => '<string>',
'google' => '<string>',
'inworld' => '<string>',
'respeecher' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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://api.ultravox.ai/api/accounts/me/tts_api_keys"
payload := strings.NewReader("{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.patch("https://api.ultravox.ai/api/accounts/me/tts_api_keys")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ultravox.ai/api/accounts/me/tts_api_keys")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"elevenLabs\": \"<string>\",\n \"cartesia\": \"<string>\",\n \"lmnt\": \"<string>\",\n \"google\": \"<string>\",\n \"inworld\": \"<string>\",\n \"respeecher\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"elevenLabs": {
"prefix": "<string>"
},
"cartesia": {
"prefix": "<string>"
},
"lmnt": {
"prefix": "<string>"
},
"google": {
"prefix": "<string>"
},
"inworld": {
"prefix": "<string>"
},
"respeecher": {
"prefix": "<string>"
}
}