Skip to content

Clone a voice

Create a cloned voice for your project from recordings of the speaker, with their consent.

Markdown
On this page
POST/v1/audio/voices

Creates a voice from recordings of a speaker, for models that support cloning. The request is multipart/form-data. Walkthrough: Speech and voices.

Form fields

filefilerequired

A recording of the speaker. Repeat the field to send several recordings.

namestringrequired

A name for the voice, up to 100 characters.

consentstringrequired

true.

modelstring

The speech model to clone for (for example elevenlabs/eleven_multilingual_v2), or a preset. Defaults to @tts.

descriptionstring

A note about the voice.

languagestring

The speaker's language.

Example

Request
# consent=true confirms that you have the speaker's permission to clone this voice
curl https://api.getlykia.com/v1/audio/voices \
  -H "Authorization: Bearer $LYKIA_API_KEY" \
  -F model=elevenlabs/eleven_multilingual_v2 \
  -F name="Store narrator" \
  -F description="Calm narration voice" \
  -F consent=true \
  -F file=@sample.mp3
Response201
{
    "id": "lvc_xg3eZdWjqZ19YY04ozRw",
    "object": "voice",
    "name": "Narrator",
    "category": "cloned",
    "description": "Calm narration voice",
    "provider": "elevenlabs",
    "model": "elevenlabs/eleven_multilingual_v2",
    "created_at": 1795463459,
    "requires_verification": false
}

Response

201 with the voice: id (lvc_…), object (voice), name, category (cloned), description, provider, model, created_at and requires_verification (whether the provider wants the speaker to verify the clone before use).

The clone belongs to the key's project and works only there, with the same provider and the same key (Lykia's or your own) it was created with. Cloning is not charged.

Errors

StatusCodeWhen
400consent_requiredconsent=true is missing.
400unsupported_modelThe model cannot clone voices.
413payload_too_largeA recording is larger than Lykia allows.
400 Bad Request
{
    "error": {
        "message": "Voice cloning requires `consent=true`: you confirm you have the speaker's permission to clone this voice",
        "type": "invalid_request_error",
        "code": "consent_required",
        "status": 400,
        "metadata": {
            "reason": "invalid_request",
            "param": "consent"
        }
    }
}