Generate video subtitles, text items and dubbing using AI workflow in PandaVideo.
Endpoint
POST https://api-v2.pandavideo.com/aiworkflow/
Description
The "Create AI Work" endpoint empowers users to leverage PandaVideo's AI capabilities to enhance and modify video content dynamically. By utilizing sophisticated artificial intelligence algorithms, this endpoint enables the generation of subtitles and dubbing in various languages based on specified parameters.
This functionality is particularly valuable for content creators and multimedia professionals seeking to streamline the process of creating multilingual video content. The endpoint's versatility allows for the extraction of textual elements such as transcription, translations, and an all-encompassing analysis including mind maps, questions, and a concise abstract of the video.
By defining parameters such as the type (workflow type), from_lang (source language), to_lang (target language), and other optional settings, users can instruct the AI system to execute specific workflows tailored to their content needs. Whether it's transcribing spoken content, translating it into different languages, or creating a comprehensive textual analysis, this endpoint serves as a powerful tool in automating and enhancing video content.
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | Type of AI workflow (TRANSCRIPTION, TRANSLATION, ALL_TEXT_ITEMS) |
| from_lang | string | Yes | Source language (auto, pt, pt-BR, en, es) or language code |
| auto | video_id | string | ID of the video (required) |
| to_lang | string | Conditional | Target language (mandatory if type=TRANSLATION) |
| background_sound_mode | string | Conditional | Background sound mode (ai if type=DUBBING or generate_dubbing=true) |
| additional_langs | array of strings | Conditional | Generate subtitles/dubbing for multiple languages (available for type=TRANSCRIPTION) |
| generate_dubbing | boolean | Conditional | Generate dubbing (true if type=TRANSCRIPTION and dubbing creation is desired) |
| voice_id | string | Conditional | Specify voice preset's ID or use "original" for a voice clone |
Responses
Responses
200: Success. AI worflow created.400: Bad request. Check the provided parameters.401: Unauthorized. Authentication failed or not provided.404: Not found. Videos or the API were not found.500: Internal server error. Please try again later.
Usage
This endpoint utilizes artificial intelligence to process videos and generate subtitles or dubbing in different languages. The type parameter determines the specific AI workflow to execute, including transcription, translation, or all text items (transcription, mind map, questions, abstract) for the video.
Notes
The from_lang and to_lang parameters support various language options, including automatic detection (auto). For type=ALL_TEXT_ITEMS, it generates a comprehensive analysis including transcription, mind maps, questions, and an abstract summary of the video.
Examples
- Click on the recipe below to see a detailed usage example of how to generate Quiz, Transcript Mind Map and Abstract:
- Click on the recipe below to see a detailed usage example of how to generate Transcript (Subtitles):
- Click on the recipe below to see a detailed usage example of how to generate Dubbing.
