Coqui XTTS-v2 multilingual voice-cloning TTS. Clone a voice from a single short audio sample and speak in 16 languages โ one of the most popular open-source voice cloning models.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "lucataco/xtts-v2",
"input": {
"speaker": "https://example.com/voice-sample.wav",
"text": "์๋
ํ์ธ์, ์ด๊ฒ์ ์ ๋ชฉ์๋ฆฌ๋ก ๋ง๋ ํ๊ตญ์ด ์์ฑ์
๋๋ค.",
"language": "ko",
"cleanup_voice": true
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | No | Hi there, I'm your new voice clone. Try your best to upload quality audio | Text to synthesize in the cloned voice |
speaker | string | Yes | - | Original speaker audio to clone (wav, mp3, m4a, ogg, or flv) |
language | string | No | en | Output language for the synthesized speech enesfrdeitptpltrrunlcsarzhhukohi |
cleanup_voice | boolean | No | false | Apply denoising to the speaker audio (for microphone recordings) |
There are 3 ways to provide files for the speaker parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=lucataco/xtts-v2" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:speaker=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "lucataco/xtts-v2",
"input": {
"prompt": "your prompt here",
"speaker": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Clone an English speaker and have them speak Korean
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "lucataco/xtts-v2",
"input": {
"speaker": "https://example.com/voice-sample.wav",
"text": "์๋
ํ์ธ์, ์ด๊ฒ์ ์ ๋ชฉ์๋ฆฌ๋ก ๋ง๋ ํ๊ตญ์ด ์์ฑ์
๋๋ค.",
"language": "ko",
"cleanup_voice": true
}
}'POST /v1/predictions