curl --request PATCH \
--url https://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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>"
}
}Set TTS API keys
Allows adding or updating TTS provider API keys to an account, enabling ExternalVoices
curl --request PATCH \
--url https://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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://app.altheastudio.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>"
}
}Authorizations
API key
Body
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
The ElevenLabs API key.
Show child attributes
Show child attributes
The Cartesia API key.
Show child attributes
Show child attributes
The LMNT API key.
Show child attributes
Show child attributes
The Google service account key.
Show child attributes
Show child attributes
The Inworld API key.
Show child attributes
Show child attributes
The Respeecher API key.
Show child attributes
Show child attributes