Overview

The AI Translate API allows you to translate videos from one language to another with or without synchronized mouth movements (lipdub). We support translating into 30+ languages for videos with a single speaker.

1

Choose your language

Use the /supported-languages path to list the available languages you can translate your video to.

2

Translate your video

Use the /submit path to translate your video with or without Lipdub.

Requirements to using the API

To use the Captions API, you must:

  1. Accept the Captions API Terms

  2. Have enough credits to complete your request

Usage, credits, and limitations

  • The AI Translate API consumes 1 credit per second of video

  • For example, translating a 30-second video would consume 30 credits

  • You can view remaining credits and purchase additional credits on the API Dashboard.

  • The maximum length of a video you can translate without Lipdub is 5 minute.

  • The maximum length of a video you can translate with Lipdub is 1 minute.

Instructions

/supported-languages

List languages supported to be used for translation.

Request

Request
curl -X POST https://api.captions.ai/api/translate/supported-languages -H "Content-Type: application/json" -H "x-api-key: <api-key>"

Response Types

/submit

Begin the video translation process.

Request

videoUrl - required - Link to the video to be translated. Please note that your video can be hosted anywhere, but must be a publicly available direct link. If you would like to upload a Google Drive link, please read these instructions.

sourceLanguage - required - Language spoken in the original video.

targetLanguage - required - Language desired in the translated video.

translateAudioOnly - optional - Default value is false. If the video doesn’t contain faces or you only want to dub the audio, set this to true.

Request
curl -X POST https://api.captions.ai/api/translate/submit -H "Content-Type: application/json" -H "x-api-key: <api-key>" -d '{"videoUrl": "<video-url>", "sourceLanguage": "<source-language>", "targetLanguage": "<target-language>", "translateAudioOnly": true|false}'

Response Types

/poll

Check the status of an AI Translate video generation.

Request

We recommend polling first after 30 seconds, and every 5 seconds thereafter.

Request
curl -X POST https://api.captions.ai/api/translate/poll -H "Content-Type: application/json" -H "x-api-key: <api-key>" -H "x-operation-id: <operation-id>"

Response Types

Frequently Asked Questions