Skip to main content
POST
/
collection
/
{collection_id}
/
generate
/
video
/
dub
Dub video with AI-generated audio
curl --request POST \
  --url https://api.videodb.io/collection/{collection_id}/generate/video/dub \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "video_id": "m-12345",
  "target_language": "es",
  "callback_url": "https://webhook.example.com/callback",
  "callback_data": {}
}
'
{
  "success": true,
  "status": "processing",
  "data": {
    "id": "job-123",
    "output_url": "https://api.videodb.io/async-response/job-123"
  }
}
Dub a video with AI-generated audio, replacing the original soundtrack with a new language version while preserving the speaker’s voice characteristics.
  • Dubbing is asynchronous; use callback_url for completion notification
  • target_language uses ISO 639-1 language codes (e.g., es, fr, de, hi)
  • The original audio is replaced with the dubbed version

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

collection_id
string
required
Example:

"default"

Body

application/json
video_id
string
Example:

"m-12345"

target_language
string
Example:

"es"

callback_url
string
Example:

"https://webhook.example.com/callback"

callback_data
object

Response

200 - application/json

Dubbing job started

success
boolean
Example:

true

status
enum<string>
Available options:
processing,
done,
failed
Example:

"processing"

data
object