curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/{id}/subtitled-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_language": "de",
"style": "social",
"accent_color": "#47CD89"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_language: 'de', style: 'social', accent_color: '#47CD89'})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/subtitled-video', 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/{id}/subtitled-video"
payload = {
"target_language": "de",
"style": "social",
"accent_color": "#47CD89"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"dub_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_language": "de",
"status": "aligning",
"style": "social",
"accent_color": "#47CD89",
"api_runs_remaining": 1
}
}Burn subtitles into the video of one language
Starts burning subtitles into the video of one target language of a completed dub — the same burn-in as on the dub page of the web app. The base is the lip-sync video when the lip sync of this language is finished (“Synced”), otherwise the final dubbed video. The run is asynchronous: the answer’s status is “aligning” (the words are timed first) or “rendering”. Poll GET /api/v1/dubs//subtitled-video until it is “ready”, then download the file there or via GET /api/v1/dubs//downloads. A language whose burn-in is “ready” or “failed” can be started again; that is a new run.
A dub that has not finished processing, a language without a base video, an unknown style and an invalid accent_color return 400. While a burn-in is already running for this language (“aligning” or “rendering”) or a review of the language is in progress, the request returns 409 and starts nothing.
Every run that actually starts costs one of the language’s 2 API burn-ins; once they are used up, the next start returns 403 FORBIDDEN, starts nothing and leaves the status as it is — burning in subtitles is still possible in the Dubly web app. A start refused with 400, 403, 404 or 409, or one that fails with 500, is not counted. See Edit limits. No credits are charged.
curl --request POST \
--url https://app.dubly.ai/api/v1/dubs/{id}/subtitled-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_language": "de",
"style": "social",
"accent_color": "#47CD89"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({target_language: 'de', style: 'social', accent_color: '#47CD89'})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}/subtitled-video', 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/{id}/subtitled-video"
payload = {
"target_language": "de",
"style": "social",
"accent_color": "#47CD89"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"dub_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_language": "de",
"status": "aligning",
"style": "social",
"accent_color": "#47CD89",
"api_runs_remaining": 1
}
}Authorizations
Path Parameters
Body
BCP 47 code of the language whose video gets the subtitles. A language the dub does not have returns 404.
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 
