> 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.

# Snelstartgids voor Instant Voice Cloning

In deze handleiding leer je hoe je een Instant Voice Clone maakt met de Clone Voice API. Raadpleeg de producthandleiding [Instant Voice Clone](/docs/nl/eleven-creative/voices/voice-cloning/instant-voice-cloning) om via het dashboard een Instant Voice Clone te maken.

Lees [Stemklonen: hoe het werkt](/docs/nl/eleven-api/concepts/voice-cloning) voor een uitgebreide uitleg over hoe IVC en PVC onder de motorkap werken en wanneer je welke kiest.

## De Instant Voice Clone API gebruiken

> **Note**
>
> Deze handleiding gaat ervan uit dat je [je API-sleutel en SDK hebt ingesteld](/docs/nl/eleven-api/quickstart). Voltooi
> eerst de snelstartgids als je dat nog niet hebt gedaan.

#### De API-request uitvoeren

Maak een nieuw bestand met de naam `example.py` of `example.mts`, afhankelijk van de programmeertaal van je keuze, en voeg de volgende code toe:

```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);
```

#### De code uitvoeren

```python
python example.py
```

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

Je zou de stem-ID in de console moeten zien.

## Volgende stappen

#### [Professioneel stemklonen](/docs/nl/eleven-api/guides/how-to/voices/professional-voice-cloning)

Maak een kloon van hogere kwaliteit door een model te finetunen met je stemsamples.

#### [Stemklonen: hoe het werkt](/docs/nl/eleven-api/concepts/voice-cloning)

Begrijp de technische verschillen tussen IVC en PVC en wanneer je welke kiest.