Translation

Translate a video (dubbing + lip-sync) — estimate

Price the request without executing it. Same body as POST /v1/video/translate.

post/v1/video/translate/estimate

Request

  • Base URL: https://apihub.co.il
  • URL: https://apihub.co.il/v1/video/translate/estimate
  • Auth: HTTP bearer

Request body

mode'speed' | 'precision'

precision (the default) = the best lip-sync, frame-accurate · speed = faster and cheaper, rougher lips. Dubbing without lip-sync (lipsync: false) runs on the speed path on its own

titlestring

Your name for this job (shown in your library)

reviewboolean

Check every translation before it is delivered (free, adds about a minute): a model that speaks both languages watches the original and the result and reports wrong meaning, a punchline that no longer works, wrong names or numbers, unnatural wording, mispronounced words and a robotic voice — each with its time and a fix — plus a corrected script for a new take. Result: versions[].review

lipsyncboolean

false = dubbing only: the speech is translated and re-voiced, the picture is left as it is (cheapest)

speakersinteger

How many people speak (improves separating them)

video_urlstring uri required

The video to translate (mp4 / webm, public https link — upload it first if needed)

consent_idstring

A consent you recorded before (the dashboard records one when you tick the box)

keep_formatboolean

Keep the source's resolution and bitrate

remove_musicboolean

Remove the background music from the result

enhance_speechboolean

Clean up the speech audio

source_languagestring

The spoken language of the source (code); detected when omitted

duration_secondsnumber

The source's length if you know it (only for the estimate; the charge uses the real length)

target_languagesstring[] required

One or more output languages: our codes (he, en, ru, uk, ar, es, fr, de…) or a name from GET /v1/video/translate/languages. Each language is its own version with its own file

Response

Estimate

operationstring
estimated_creditsnumber
credits_to_reservenumber
estimated_usageobject
notestring nullable
sufficientboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.