POST
/
api
/
voices
curl --request POST \
--url https://api.ultravox.ai/api/voices \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <your-api-key>' \
--form 'file=@/path/to/voice.mp3' \
--form 'name=My Custom Voice' \
--form 'description=Voice recorded on Jan 1, 2024'
{
  "voiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "previewUrl": "<string>",
  "ownership": "public"
}

Any created voices are private to your account.

Uses multipart/form-data encoding to provide the name of the voice along with an audio file containing the voice to be used for cloning.

Currently, we support one cloned voice per account. If you need more cloned voices, please reach out.

Authorizations

X-API-Key
string
header
required

API key

Body

multipart/form-data
file
file
required

An audio file containing a sample of the voice to clone.

name
string
required

Name for the cloned voice. Must be unique within your account.

description
string

Optional description for the voice. If not provided, a default description will be generated.

Response

200 - application/json
voiceId
string
required
name
string
required
description
string | null
required
previewUrl
string | null
required
ownership
enum<string>
required
Available options:
public,
private