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. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional project name for identifying this output. Omit to use the API's default project name. | Video Translator - dateTime |
| video | No | Attach the video from ChatGPT for this input. | |
| assets | No | 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. |