API Reference

Create AI Subtitles

Generate subtitle in different languages for the video

Endpoint

GET https://api-v2.pandavideo.com/aiworkflow/

The subtitle generation endpoint allows users to leverage artificial intelligence to create customized subtitles for specific videos. By providing the original language of the video and the additional languages they wish to generate subtitles for, the system will process and deliver the requested subtitle files.

Query Parameters

ParameterTypeDescription
video_idstringVideo ID to generate the subtitles
from_langstringThe original language of the video. Example: pt-BR, en, es.
to_langstringThe target language for translating the subtitles. Example: fr, en, es.
typestringThe AI operation type. For subtitle generation, the default operation is TRANSLATION.
tierstringDefines the AI processing level.
Possible values: essential, advanced, pro
additional_langsarrayAdditional target subtitle language. Example: en, es, fr.

Responses

📘

Responses

  • 200: Success. .
  • 400: Bad request. Check the provided parameters.
  • 401: Unauthorized. Authentication failed or not provided.
  • 404: Not found.
  • 500: Internal server error. Please try again later.

Make a POST request to this endpoint by providing the parameters video_id, from_lang, to_lang, and setting the type field always to TRANSLATION. These parameters define the original language of the video and the target language for which the subtitles will be generated.

Optionally, you may include additional languages using the additional_langs field, allowing multiple subtitles to be created in a single request.

The artificial intelligence system will process the video and automatically generate translated subtitles in the specified languages.

Language
Credentials
Header
Click Try It! to start a request and see the response here!