POST
/
voice
/
create_dubbing
Create video dubbing with voice translation
curl --request POST \
  --url https://modelslab.com/api/v6/voice/create_dubbing \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_video": "<string>",
  "source_lang": "hi",
  "output_lang": "es",
  "file_prefix": "spanish_dub",
  "voice_id": "<string>",
  "voice_model": "kokoro",
  "speed": 1,
  "base64": false,
  "seed": 123,
  "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/create_dubbing' \
You can find all voice_id here.

Body

json
{
  "key": "your_api_key",
  "init_video": "https://cdn.discordapp.com/attachments/1233159947869753381/1349236625896378441/Untitled_video_-_Made_with_Clipchamp_3_1.mp4?ex=6801d407&is=68008287&hm=a4bca8d191613441a10251159356f55b9c9c5b2dbebca85fc0e866f1ba797cb8",
  "source_lang": "hi",
  "output_lang": "en-us",
  "voice_id":"henry",
  "speed": 1.0,
  "file_prefix": "spanish_dub",
  "base64": false,
  "webhook": null,
  "track_id": null
}

Body

application/json
key
string
required

API key for authentication

init_video
string<uri>
required

URL to video file to be dubbed

output_lang
enum<string>
required

Target language code for dubbing

Available options:
es,
fr,
hi,
it,
pt-br,
en-us,
en-gb,
ja,
zh
source_lang
string
default:hi

Source language code of the video

file_prefix
string
default:spanish_dub

Prefix for output file name

voice_id
string

ID of trained voice

voice_model
string
default:kokoro

Voice model to use

speed
number
default:1

Playback speed for dubbing

base64
boolean
default:false

Whether input is in base64 format

seed
integer

Random seed for reproducibility (0 for random)

webhook
string<uri>

URL to receive POST notification upon completion

track_id
integer

ID for webhook identification

Response

Dubbing creation 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