curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://example.com/video.mp4",
"video_key": "my-video.mp4",
"source_language": "en",
"target_languages": [
"de",
"es"
],
"title": "My Video",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0",
"custom_voice_id": "1fd47408-c5ff-4de0-97b1-f37c7372710e"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://example.com/video.mp4',
video_key: 'my-video.mp4',
source_language: 'en',
target_languages: ['de', 'es'],
title: 'My Video',
project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0',
custom_voice_id: '1fd47408-c5ff-4de0-97b1-f37c7372710e'
})
};
fetch('https://app.dubly.ai/api/v1/dubs/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/url"
payload = {
"video_url": "https://example.com/video.mp4",
"video_key": "my-video.mp4",
"source_language": "en",
"target_languages": ["de", "es"],
"title": "My Video",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0",
"custom_voice_id": "1fd47408-c5ff-4de0-97b1-f37c7372710e"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Create a dub from a video URL
Creates a dub from a publicly accessible video URL. A minimum credit charge (1 minute per language) is applied upfront — additional credits are charged once the actual duration is known.
curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://example.com/video.mp4",
"video_key": "my-video.mp4",
"source_language": "en",
"target_languages": [
"de",
"es"
],
"title": "My Video",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0",
"custom_voice_id": "1fd47408-c5ff-4de0-97b1-f37c7372710e"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
video_url: 'https://example.com/video.mp4',
video_key: 'my-video.mp4',
source_language: 'en',
target_languages: ['de', 'es'],
title: 'My Video',
project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0',
custom_voice_id: '1fd47408-c5ff-4de0-97b1-f37c7372710e'
})
};
fetch('https://app.dubly.ai/api/v1/dubs/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/url"
payload = {
"video_url": "https://example.com/video.mp4",
"video_key": "my-video.mp4",
"source_language": "en",
"target_languages": ["de", "es"],
"title": "My Video",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0",
"custom_voice_id": "1fd47408-c5ff-4de0-97b1-f37c7372710e"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
}Authorizations
Body
BCP 47 language code of the original video (e.g. "en", "de") — one of the source language codes this field lists.
af, sq, am, ar, hy, as, az, ba, eu, be, bn, bs, br, bg, ca, zh, hr, cs, da, nl, en, et, fo, fi, fr, gl, ka, de, el, gu, ht, ha, haw, he, hi, hu, is, id, it, ja, jv, kn, kk, km, ko, lo, la, lv, ln, lt, lb, mk, mg, ms, ml, mt, mi, mr, mn, my, ne, no, nn, oc, ps, fa, pl, pt, pa, ro, ru, sa, sr, sn, sd, si, sk, sl, so, es, su, sw, sv, tl, tg, ta, tt, te, th, bo, tr, tk, uk, ur, uz, vi, cy, wo, yi, yo Array of BCP 47 target language codes to dub into, at least one — see Supported target languages. Engine v1, the default, accepts every code. Every other engine accepts only the codes with ✓ in its column of that table; a code with — there is rejected with 400 when the dub runs on that engine.
1af, ar, hy, as, az, be, bn, bs, bg, ca, ceb, ny, zh, hr, cs, da, nl, en, et, fil, fi, fr, gl, ka, de, el, gu, ha, he, hi, hu, is, id, ga, it, ja, jv, kn, kk, ko, ky, lv, ln, lt, lb, mk, ms, ml, mr, ne, no, ps, fa, pl, pt, pa, ro, ru, sr, sd, sk, sl, so, es, sw, sv, ta, te, th, tr, uk, ur, vi, cy, en-GB, en-US, es-419, es-ES Dubbing engine, one of "v1", "v2". Defaults to "v1". "v2" must be enabled for your account; otherwise the request returns 403 and no dub is created. Each engine offers its own target languages (Supported target languages).
v1, v2 Assigns the dub to a project owned by your account. Retrieve project IDs via GET /api/v1/projects. An unknown project or one of another account returns 400.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Uses a custom voice for text-to-speech. The same voice is used for all speakers. Retrieve custom voice IDs via GET /api/v1/custom-voices. An unknown custom voice or one of another account returns 400.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Volume of the original voice under the dubbed voice in dB, a whole number from -30 (quietest) to -5 (loudest). Defaults to -20. It is stored with the dub, but only heard on a dub that keeps the original voice — which the public API cannot create yet (see keep_original_voice).
-30 <= x <= -5
