POST
/
voice
/
voice_to_voice
Clone voice from audio to audio
curl --request POST \
  --url https://modelslab.com/api/v6/voice/voice_to_voice \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_audio": "<string>",
  "target_audio": "<string>",
  "stream": true,
  "base64": false,
  "temp": false,
  "webhook": "<string>",
  "track_id": 123
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "future_links": [
    "<string>"
  ],
  "links": [
    "<string>"
  ],
  "meta": {},
  "eta": 123,
  "message": "<string>",
  "tip": "<string>",
  "fetch_result": "<string>",
  "audio_time": 123
}

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v6/voice/voice_to_voice' \

Body

json
{    
    "key":"",    
    "init_audio":"https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/tom_hanks_1.wav",    
    "target_audio":"https://assets.modelslab.com/tmp/gEJ3RgkrWumjCJpb8hHYD3OsID7ET9-metaSGlyZV92b2ljZV9hY3RvcnNfYW5kX3ZvaWNlX292ZXJfc2VydmljZXNfLV9CdW5ueV9TdHVkaW9fMiAoMSktW0F1ZGlvVHJpbW1lci5jb21dLm1wMw==-.mp3",    
    "temp":false,    
    "base64":false,    
    "webhook":null,    
    "track_id":null
}

Body

application/json
key
string
required

Your API Key used for request authorization

init_audio
string
required

Source utterances URL or base64 data (max 30 seconds)

target_audio
string
required

Target voice URL or base64 data (max 30 seconds)

stream
boolean

Stream response in base64 format as chunk_output

base64
boolean
default:false

Whether input sound clip is in base64 format

temp
boolean
default:false

Use temporary links valid for 24 hours

webhook
string<uri>

URL to receive POST notification upon completion

track_id
integer

ID for webhook identification

Response

Voice to voice response

status
enum<string>

Status of the voice generation

Available options:
success,
processing,
error
generationTime
number

Time taken to generate the audio in seconds

id
integer

Unique identifier for the voice generation

output
string<uri>[]

Array of generated audio URLs

Array of proxy audio URLs

Array of future audio URLs for queued requests

Array of audio URLs (voice cover response)

meta
object

Metadata about the audio generation including all parameters used

eta
integer

Estimated time for completion in seconds (processing status)

message
string

Status message or additional information

tip
string

Additional information or tips for the user

fetch_result
string<uri>

URL to fetch the result when processing

audio_time
number

Duration of the generated audio in seconds