List voices
The voices of a speech model, ready-made ones and the voices your project has cloned.
MarkdownOn this page
GET
/v1/audio/voicesLists the voices you can pass as voice to POST /audio/speech for a model: the provider's ready-made voices and the clones of the key's project. Clones of other projects are never listed.
Query parameters
modelstringA speech model id or preset. Defaults to the model of your @tts preset.
Example
Request
curl "https://api.getlykia.com/v1/audio/voices?model=openai/gpt-4o-mini-tts" \
-H "Authorization: Bearer $LYKIA_API_KEY"import os
import requests
response = requests.get(
"https://api.getlykia.com/v1/audio/voices",
headers={"Authorization": f"Bearer {os.environ['LYKIA_API_KEY']}"},
params={"model": "elevenlabs/eleven_multilingual_v2"},
timeout=30,
)
response.raise_for_status()
for voice in response.json()["data"]:
print(voice["id"], voice["name"], voice["category"])const params = new URLSearchParams({ model: "elevenlabs/eleven_multilingual_v2" });
const response = await fetch(`https://api.getlykia.com/v1/audio/voices?${params}`, {
headers: { Authorization: `Bearer ${process.env.LYKIA_API_KEY}` },
});
if (!response.ok) throw new Error(`Lykia returned ${response.status}: ${await response.text()}`);
const voices = (await response.json()) as { data: { id: string; name: string; category: string }[] };
for (const voice of voices.data) console.log(voice.id, voice.name, voice.category);Response200
{
"object": "list",
"model": "openai/gpt-4o-mini-tts",
"provider": "openai",
"data": [
{
"id": "alloy",
"object": "voice",
"name": "Alloy",
"category": "premade",
"provider": "openai"
},
{
"id": "ash",
"object": "voice",
"name": "Ash",
"category": "premade",
"provider": "openai"
},
{
"id": "coral",
"object": "voice",
"name": "Coral",
"category": "premade",
"provider": "openai"
}
]
}Response
objectstringAlways list.
modelstringThe model the voices are for.
dataarrayVoices.
idstringPass as voice.
objectstringAlways voice.
namestringThe voice's display name.
categorystringpremade for the provider's voices, cloned for your project's clones.
language, description, labels — When the provider describes the voice.
providerstringThe provider the voice belongs to.
created_atintegerand requires_verification (boolean) — On clones.