Translate video
translate_videoTranslates speech in a supplied video segment into a supported target language. Starts a background job that costs credits; returns a project id for wait_for_video_project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Give your video a custom name for easy identification. | Video Translator - dateTime |
| assets | Yes | Source video for the translation job. | |
| resolution | No | Output video resolution. Defaults to 480p. 720p and 1080p require a paid plan. | |
| end_seconds | Yes | End time of your clip (seconds). Must be greater than start_seconds. The clip must be 1-30 seconds long. | |
| start_seconds | No | Start time of your clip (seconds). Must be ≥ 0. | |
| target_language | Yes | Language to translate the video's speech into. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads. | |
| credits_charged | Yes | 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. |