Upload Video
Changed onUpload Video with File or URL
This endpoint allows you to upload a video for processing, and you can provide the following parameters:
-
name: Provide a unique name for the video.
-
languages: Specify a comma-separated list of locales, for example, "en-US,es-US,fr-FR".
-
burn_subtitles: You can choose to burn subtitles in the translated video.
-
burn_subtitles_on_source: You can choose to burn subtitles on the source video.
-
remove_background_audio: You can choose to remove the background audio from the video.
-
source_url: Provide a URL to the video file. Supported sources include direct video URLs, Vimeo, Google Drive, and presigned S3 URLs. YouTube URLs are not supported. Do not send source_url and file in the same request.
-
file: Upload the video file here. Do not send file and source_url in the same request.
-
subtitles_file_urls: If you have subtitles files for the video, provide the URLs here. When is_source_srt is false, the number of URLs should match the number of languages. When is_source_srt is true, exactly one URL is allowed and it will be treated as the source-language subtitles. A subtitle URL cannot be the same as source_url.
-
prepend_ai_warning: If you want to prepend an AI warning to the audio. Cannot be used with skip_translate.
-
skip_translate: If you want to skip the translation.
-
enhance_transcription: Enhance transcription when using the default pipeline with skip_translate.
-
context_for_translation: If you want to provide a context for the translation.
-
experimental_force_accent: If you want to force the accent for the translation.
If the file size exceeds 1GB, it's recommended to use the source_url option. Additionally, for larger files, you can utilize the uploads API to upload the video and obtain a generated source_url for use in this endpoint.
Request
- Base URLhttps://api.lingopal.ai
- AuthAPI key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
Successful Response
Changes
- breaking
request property
list-of-types was narrowed by removing typesnullfrom media typemultipart/form-data - warning
added the new
Cancelledenum value to the//response property for the response status - info
the
request property default value changed fromfalsetotrue - info
the
request property default value changed fromfalsetotrue
- breaking
- warning
removed the request property
- info
added the new optional request property
- warning