Create AI Work

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

ParameterTypeRequiredDescription
typestringYesType of AI workflow (TRANSCRIPTION, TRANSLATION, ALL_TEXT_ITEMS)
from_langstringYesSource language (auto, pt, pt-BR, en, es) or language code
autovideo_idstringID of the video (required)
to_langstringConditionalTarget language (mandatory if type=TRANSLATION)
background_sound_modestringConditionalBackground sound mode (ai if type=DUBBING or generate_dubbing=true)
additional_langsarray of stringsConditionalGenerate subtitles/dubbing for multiple languages (available for type=TRANSCRIPTION)
generate_dubbingbooleanConditionalGenerate dubbing (true if type=TRANSCRIPTION and dubbing creation is desired)
voice_idstringConditionalSpecify 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.
Language
Credentials
Header
Click Try It! to start a request and see the response here!