Skip to main content
POST
Create a dub from a Google Drive video

Authorizations

Authorization
string
header
required

An API token from Settings → API in the Dubly web app, sent as Authorization: Bearer <token>.

Body

application/json

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.

source_language
enum<string>
required

BCP 47 language code of the original video (e.g. "en", "de") — one of the source language codes this field lists.

Available options:
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
target_languages
enum<string>[]
required

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.

Minimum array length: 1
Available options:
af,
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
enhance_speech
boolean
default:false

Accepted for compatibility, but currently without effect: the value is checked to be a boolean and otherwise ignored — no speech enhancement is applied either way. Defaults to false.

speaker_count
integer
default:0

Number of speakers in the video (0–20). Defaults to 0 (auto-detect).

Required range: 0 <= x <= 20
title
string
default:Untitled

Title for the dub. Leading and trailing spaces are removed; the rest must be 1–500 characters, otherwise 400. Defaults to "Untitled"; left at that, the dub takes the name of the Drive file (trimmed, at most 500 characters).

Required string length: 1 - 500
custom_prompt
string

Custom instructions for the translation (max 2000 chars).

Maximum string length: 2000
translation_style_map
object

Map of target language code to translation style ID (UUID). Assigns a specific style per language.

auto_apply_styles
boolean
default:true

Auto-match translation styles for languages not in the map. Defaults to true.

engine
enum<string>

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).

Available options:
v1,
v2
project_id
string<uuid>

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.

Pattern: ^([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)$
custom_voice_id
string<uuid>

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.

Pattern: ^([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)$
keep_original_voice
boolean
default:false

Keep the original voice under the dubbed voice. Not supported through the public API yet: only false, the default, is accepted — true returns 400.

original_voice_volume_db
integer
default:-20

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).

Required range: -30 <= x <= -5

Response

The dub was created. Poll GET /api/v1/dubs/{id} with its id for the status and the results.

status
string
required
Allowed value: "success"
response
object
required