curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/google-drive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_link": "https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view",
"source_language": "en",
"target_languages": [
"de",
"fr"
],
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_link: 'https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view',
source_language: 'en',
target_languages: ['de', 'fr'],
project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0'
})
};
fetch('https://app.dubly.ai/api/v1/dubs/google-drive', 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/google-drive"
payload = {
"drive_link": "https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view",
"source_language": "en",
"target_languages": ["de", "fr"],
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
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 Google Drive video
Checks the Google Drive file, takes its name and duration, charges credits based on that duration, and starts the dubbing pipeline. The file must be shared as “Anyone with the link” with downloading allowed.
A file that is not found or not shared publicly returns 404; a folder, a non-video file, a file with downloading disabled or a video Drive is still processing returns 400; if Google Drive cannot be reached the request returns 500 and can be retried. In each of these refused cases no dub is created and no credits are charged.
curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/google-drive \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_link": "https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view",
"source_language": "en",
"target_languages": [
"de",
"fr"
],
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_link: 'https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view',
source_language: 'en',
target_languages: ['de', 'fr'],
project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0'
})
};
fetch('https://app.dubly.ai/api/v1/dubs/google-drive', 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/google-drive"
payload = {
"drive_link": "https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view",
"source_language": "en",
"target_languages": ["de", "fr"],
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
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
Google Drive file link, e.g. https://drive.google.com/file/d//view (also /open?id=, /uc?id= and drive.usercontent.google.com/download?id=). Folder links are rejected. If the link contains a resourcekey, keep it.
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
