> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# Guía de inicio rápido de Clonar Voz Instantánea

Esta guía te mostrará cómo crear un Clon de Voz Instantáneo con la API de Clonar Voz. Para crear un Clon de Voz Instantáneo desde el panel de control, consulta la guía de producto [Clon de Voz Instantáneo](/docs/es/eleven-creative/voices/voice-cloning/instant-voice-cloning).

Para obtener una explicación detallada de cómo funcionan IVC y PVC internamente y cuándo elegir cada una, consulta [Clonación de voz: cómo funciona](/docs/es/eleven-api/concepts/voice-cloning).

## Uso de la API de Clon de Voz Instantáneo

> **Note**
>
> Esta guía presupone que ya has [configurado tu clave de API y el SDK](/docs/es/eleven-api/quickstart). Completa
> primero la guía de inicio rápido si aún no lo has hecho.

#### Haz la solicitud a la API

Crea un archivo llamado `example.py` o `example.mts`, según el lenguaje que elijas, y añade el siguiente código:

```python maxLines=0
# example.py
import os
from dotenv import load_dotenv
from elevenlabs.client import ElevenLabs
from io import BytesIO

load_dotenv()

elevenlabs = ElevenLabs(
  api_key=os.getenv("ELEVENLABS_API_KEY"),
)

voice = elevenlabs.voices.ivc.create(
    name="My Voice Clone",
    # Replace with the paths to your audio files.
    # The more files you add, the better the clone will be.
    files=[BytesIO(open("/path/to/your/audio/file.mp3", "rb").read())]
)

print(voice.voice_id)
```

```typescript maxLines=0
// example.mts
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import "dotenv/config";
import fs from "node:fs";

const elevenlabs = new ElevenLabsClient();

const voice = await elevenlabs.voices.ivc.create({
    name: "My Voice Clone",
    // Replace with the paths to your audio files.
    // The more files you add, the better the clone will be.
    files: [
        fs.createReadStream(
            "/path/to/your/audio/file.mp3",
        ),
    ],
});

console.log(voice.voiceId);
```

#### Ejecuta el código

```python
python example.py
```

```typescript
npx tsx example.mts
```

Deberías ver el ID de la voz impreso en la consola.

## Siguientes pasos

#### [Clonación de voz profesional](/docs/es/eleven-api/guides/how-to/voices/professional-voice-cloning)

Crea un clon de mayor calidad ajustando un modelo con tus muestras de voz.

#### [Clonación de voz: cómo funciona](/docs/es/eleven-api/concepts/voice-cloning)

Conoce las diferencias técnicas entre IVC y PVC, y cuándo elegir cada una.