POST Dubbing
Translates and re-voices a video in another language, using a voice from the library, synchronised with the original. Processing is asynchronous.
Service withdrawn
Dubbing is no longer offered. The endpoints below respond 410 and nothing is billed; jobs that are already finished remain readable.
Upload multipart/form-data.
Create a job
POST/dub/jobs
| Name | Type | Description |
filesource | file | The video to dub (80 MB max). |
source_urlsource | string | Direct link or video-platform link. |
from_jobsource | string | Reuse a subtitling finished (transcription + translation already done). |
target_langoption | string | Language of the dubbed voice. Default bam_Latn. |
voiceoption | string | Voice from the library (see Voices). Default modibo. |
source_langoption | string | Language spoken in the video. Default auto. |
debitoption | string | Voice pace: lent, normal, rapide. |
Track & download
| Endpoint | Role |
GET /dub/jobs/{id} | Job status + segments. |
GET /dub/jobs/{id}/download | Download the dubbed video (ready when status=done). |
GET /dub/jobs | List your recent dubbing jobs. |
Billed per minute of video.
# 1. create the dub (FR -> Bambara, Modibo voice)
curl https://api.kooma.ai/dub/jobs \
-H "Authorization: Bearer sk-intermo-YOUR_KEY" \
-F file=@video.mp4 \
-F target_lang=bam_Latn \
-F voice=modibo
# 2. when status=done, fetch the dubbed video
curl https://api.kooma.ai/dub/jobs/JOB_ID/download \
-H "Authorization: Bearer sk-intermo-YOUR_KEY" \
--output video-doublee.mp4
import requests
H = {"Authorization": "Bearer sk-intermo-YOUR_KEY"}
job = requests.post(
"https://api.kooma.ai/dub/jobs", headers=H,
files={"file": open("video.mp4", "rb")},
data={"target_lang": "bam_Latn", "voice": "modibo"},
).json()
# ... poll /dub/jobs/{id} until done ...
out = requests.get(
f"https://api.kooma.ai/dub/jobs/{job['job_id']}/download", headers=H
)
open("video-doublee.mp4", "wb").write(out.content)
200 OK job created
{
"job_id": "9f8e7d6c5b4a3210",
"status": "queued",
"duration_sec": 184.2,
"minutes": 4
}
Dub from a subtitling job
POST /dub/from-subtitle/{sub_job_id} — creates a dub from a subtitling job that is already finished, reusing the source and the segments. Avoids transcribing and translating again.
| Field | Type | Description |
target_lang | string | Language of the dubbed voice. |
voice | string | A single voice, if you do not want per-speaker casting. |
voice_map | object | One voice per detected speaker. |
auto_cast | boolean | Automatic voice casting. Default: true. |
debit | number | Voice pace. |
Voice casting
GET /dub/jobs/{job_id}/casting — the speakers detected in the video, the suggested voice for each with its score, the alternatives, and the filterable catalogue. This is what lets you build a casting screen.
Listen to the original voice
GET /dub/jobs/{job_id}/preview?start=&end= — a short excerpt of the original (capped at ~6 s), to compare it with the proposed voice before confirming the casting.
Change the voices without redoing everything
POST /dub/jobs/{job_id}/recast — regenerates the dub with a different casting, reusing reusing the source video and the translation already done. No re-analysis, no re-translation, so much faster than a new job.
| Field | Type | Description |
voice_map | object | The new voice for each speaker. |
target_lang | string | Target language, if you are changing it too. |
auto_cast | boolean | Default: true. |
debit | number | Voice pace. |
Dubbing rates
GET /dub/pricing — rate per minute of video, in your wallet currency, for a quote before generating. Consumes nothing.