Voice Cloning API
Clone Any Voice in Seconds
Upload a short audio sample, get back a reusable voice ID. Use it for Text-to-Speech, dubbing, and more. Starting at $2 for 100K credits. No KYC, pay with crypto.
1 min
Minimum sample length
< 30s
Clone creation time
Unlimited
Voices per account
Forever
Voice storage
How Voice Cloning Works
Two API calls — one to clone, one to speak.
Upload Audio
Send an audio file (MP3/WAV) via multipart/form-data to the cloning endpoint.
AI Training
Our AI analyzes the voice characteristics and creates a unique voice profile in under 30 seconds.
Use Anywhere
Receive a voice_id. Use it in any TTS request to speak in that exact voice.
Code Examples
Clone and use a voice in under 20 lines of code.
import requests
# Step 1: Clone a voice
with open("sample.mp3", "rb") as f:
clone_resp = requests.post(
"https://cheapaiapi.com/api/v1/voice-cloning",
headers={"Authorization": "Bearer sk_your_api_key"},
files={"audio": f},
data={"name": "My Custom Voice"}
)
voice_id = clone_resp.json()["voice_id"]
# Step 2: Use cloned voice for TTS
tts_resp = requests.post(
"https://cheapaiapi.com/api/v1/text-to-speech",
headers={"Authorization": "Bearer sk_your_api_key"},
json={
"text": "Hello, this is my cloned voice!",
"voice_id": voice_id,
}
)
with open("output.mp3", "wb") as f:
f.write(tts_resp.content)// Step 1: Clone a voice from an audio file
const formData = new FormData();
formData.append("audio", audioFile);
formData.append("name", "My Custom Voice");
const cloneRes = await fetch(
"https://cheapaiapi.com/api/v1/voice-cloning",
{
method: "POST",
headers: { "Authorization": "Bearer sk_your_api_key" },
body: formData,
}
);
const { voice_id } = await cloneRes.json();
// Step 2: Generate speech with cloned voice
const ttsRes = await fetch(
"https://cheapaiapi.com/api/v1/text-to-speech",
{
method: "POST",
headers: {
"Authorization": "Bearer sk_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({ text: "Hello!", voice_id }),
}
);Features
Instant Cloning
Voice profile ready in under 30 seconds from upload.
Persistent Voices
Cloned voices are stored permanently. Reuse across unlimited TTS calls.
Cross-Language
Use a cloned English voice to speak Spanish, French, or any supported language.
Fine Control
Adjust stability and clarity settings to tailor the voice output.
REST API
Simple multipart/form-data upload. No special SDK required.
High Fidelity
Powered by ElevenLabs models for state-of-the-art voice quality.
Frequently Asked Questions
How much audio do I need to clone a voice?expand_more
What audio formats are accepted for voice cloning?expand_more
How much does voice cloning cost?expand_more
Are cloned voices permanent?expand_more
Can I clone someone else's voice?expand_more
Is voice cloning available via API only or also through a UI?expand_more
Start Cloning Voices Today
Build custom voice experiences for your brand, app, or content. No monthly commitment.
rocket_launchGet Started — $2 for 100K Credits