> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Voice to Voice

> This endpoint is used to clone a voice from a target audio file.

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-s3-details) for `voice_cloning` server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after **24 hours**
</Warning>

## Request

Make a `POST` request to below endpoint and pass the required parameters as a request body.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/voice/voice_to_voice' \
```

## Body

```json json theme={null}
{    
  "key":"enterprise_api_key",    
  "init_audio":"https://assets.modelslab.ai/generations/a9823a38-6c67-43f7-80a3-11e7eea504c0",    
  "target_audio":"https://assets.modelslab.ai/generations/a9823a38-6c67-43f7-80a3-11e7eea504c0",    
  "temp":false,    
  "base64":false,    
  "webhook":null,    
  "track_id":null
}
```

## Body Attributes

<ParamField query="key" type="string" required>
  Your API Key used for request authorization.
</ParamField>

<ParamField query="init_audio" type="string" required>
  Source utterances. Must be a valid URL or base64 data for a WAV/MP3 file.\
  Maximum length: 30 seconds.
</ParamField>

<ParamField query="target_audio" type="string" required>
  Target voice that should say the original utterances. Must be a valid URL or base64 data for a WAV/MP3 file.\
  Maximum length: 30 seconds.
</ParamField>

<ParamField query="base64" type="boolean" default="false">
  Whether the input sound clips are provided in base64 format. Default: false.
</ParamField>

<ParamField query="temp" type="boolean" default="false">
  Whether you want temporary links (useful if your country blocks access to storage sites). Default: false.
</ParamField>

<ParamField query="webhook" type="string" format="url">
  Provide a URL to receive a POST API call once the voice cover generation is complete.
</ParamField>

<ParamField query="track_id" type="string">
  This ID is returned in the webhook API call and will be used to identify the request.
</ParamField>
