Skip to main content
POST
Python

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".

Body

application/json

Body

end_seconds
number<float>
required

End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long.

Required range: x >= 0.1
Example:

15

target_language
enum<string>
required

Language to translate the video's speech into.

Available options:
English,
Chinese (Simplified),
Hindi,
Spanish,
Arabic,
French,
Afrikaans,
Bengali,
Bulgarian,
Catalan,
Croatian,
Czech,
Danish,
Dutch,
Estonian,
Finnish,
German,
Greek,
Gujarati,
Hebrew,
Hungarian,
Indonesian,
Italian,
Japanese,
Kannada,
Kazakh,
Korean,
Latvian,
Lithuanian,
Malay,
Malayalam,
Marathi,
Norwegian,
Persian,
Polish,
Portuguese,
Punjabi,
Romanian,
Russian,
Serbian,
Slovak,
Slovenian,
Swahili,
Swedish,
Tamil,
Telugu,
Thai,
Chinese (Traditional),
Turkish,
Ukrainian,
Urdu,
Vietnamese,
Welsh
Example:

"Spanish"

assets
object
required

Source video for the translation job.

name
string
default:Video Translator - dateTime

Give your video a custom name for easy identification.

Example:

"My Video Translator video"

start_seconds
number<float>
default:0

Start time of your clip (seconds). Must be ≥ 0.

Required range: x >= 0
Example:

0

resolution
enum<string>

Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan.

Available options:
480p,
720p,
1080p
Example:

"720p"

Response

Success

Success

id
string
required

Unique ID of the video. Use it with the Get video Project API to fetch status and downloads.

Example:

"cuid-example"

credits_charged
integer
required

The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.

If video generation fails, credits will be refunded, and this field will be updated to include the refund.

Example:

450