Skip to content

Clone Voice

FreshPOST
POST https://api.creatify.ai/api/voices/clone/

Clone a voice from an audio sample. The cloned voice can then be used in avatar creation, text-to-speech, and other voice-enabled endpoints.

Request Body

NameTypeRequiredDescription
audio_urlstringYesURL to an audio sample of the voice to clone
namestringYesName for the cloned voice

Headers

HeaderTypeRequiredDescription
X-API-IDstringYesYour Creatify API ID
X-API-KEYstringYesYour Creatify API key
Content-TypestringYesapplication/json

Example Request

bash
curl -X POST 'https://api.creatify.ai/api/voices/clone/' \
  -H 'X-API-ID: your-api-id' \
  -H 'X-API-KEY: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
    "audio_url": "https://example.com/voice-sample.mp3",
    "name": "My Custom Voice"
  }'

Response

json
{
  "id": "cloned-voice-001",
  "name": "My Custom Voice",
  "status": "processing",
  "created_at": "2024-01-15T10:30:00Z"
}

When cloning completes:

json
{
  "id": "cloned-voice-001",
  "name": "My Custom Voice",
  "status": "done",
  "preview_url": "https://cdn.creatify.ai/voices/cloned-voice-001-preview.mp3",
  "created_at": "2024-01-15T10:30:00Z"
}

Status Codes

CodeDescription
201Voice cloning started
400Bad request -- invalid audio URL or format
401Unauthorized -- invalid API credentials
402Insufficient credits
429Rate limit exceeded
500Internal server error

TIP

For best cloning results, provide a clear audio sample of at least 30 seconds with minimal background noise. Speech-only recordings produce the most accurate clones.

WARNING

Voice cloning should only be used with audio you have rights to use. Ensure you have proper consent before cloning any voice.