Skip to main content
POST
/
voices
Create Voice
curl --request POST \
  --url https://api.cartesia.ai/voices \
  --header 'Cartesia-Version: <cartesia-version>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "embedding": [
    123
  ],
  "base_voice_id": "<string>"
}
'
{
  "id": "<string>",
  "user_id": "<string>",
  "is_public": true,
  "name": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "language": "en"
}
This endpoint is deprecated! Use Clone Voice instead.

Authorizations

X-API-Key
string
header
required

Headers

Cartesia-Version
enum<string>
required

API version header.

Available options:
2024-06-10
Example:

"2024-06-10"

Body

application/json
name
string
required

The name of the voice.

description
string
required

The description of the voice.

embedding
number<double>[]
required

A 192-dimensional vector (i.e. a list of 192 numbers) that represents the voice.

language
enum<string> | null

The language that the given voice should speak the transcript in.

Available options:
en,
fr,
de,
es,
pt,
zh,
ja,
hi,
it,
ko,
nl,
pl,
ru,
sv,
tr
base_voice_id
string | null

Pull in features from a base voice, used for features like voice mixing.

Response

200 - application/json
id
string
required

The ID of the voice.

user_id
string
required

The ID of the user who owns the voice.

is_public
boolean
required

Whether the voice is publicly accessible.

name
string
required

The name of the voice.

description
string
required

The description of the voice.

created_at
string<date-time>
required

The date and time the voice was created.

language
string
required

The voice's language, as an ISO 639-1 code (e.g. en, fr, zh)

Example:

"en"