Create an AI Video
The API allows you to create a new AI Video by making a POST request to the https://viralapi.vadoo.tv/api/generate_video
endpoint:
Youtube tutorial
Endpoint
POST https://viralapi.vadoo.tv/api/generate_video
Request Headers
The API request must include the following headers:
X-API-KEY: API-KEY
- The secret key for authenticating the API request.
Request Body
The request body contain the following parameters:
topic
(string, optional): To create content for a AI Video, default value to Random AI Story. Use Custom to use a custom scriptvoice
(string, optional): The voice for AI Video, default value is Charlie voice.theme
(string, optional): To display captions with style, default value is Hormozi_1 stylestyle
(string, optional): AI image style, default value is Nonelanguage
(string, optional): To generate video in language you want, default value is Englishduration
(string, optional): Video Duration."30-60", "60-90", "90-120", "5 min", "10 min"
, default value is 30-60aspect_ratio
(string, optional): Aspect Ratio."9:16", "1:1", "16:9"
, default value is 9:16prompt
(string, optional): Prompt to generate a custom script. To be used when the topic is "Custom"custom_instruction
(string, optional): Custom instructions to guide AI, useful when you need to provide character descriptions, customize image visuals, background styles etc.use_ai
(string, optional): Modify script with AI."1", "0"
, default value is 1include_voiceover
(string, optional): Include AI voiceover in the video."1", "0"
, default value is 1size
(string, optional): Size of captions (take reference values from dashboard)ypos
(string, optional): Position of captions (take reference values from dashboard)url
(string, optional): Url input for Blog to Video.bg_music
(string, optional): Background music to use along with the video, default is no background musicbg_music_volume
(string, optional): Background music volume, choose a value between 1 to 100
You will get a response like this.
{
"vid": 375930711093
}
Note: This is your generated video id. The video will get generated and the video info along with vid will be sent to the webhook in 2-3 minutes. The generated video will be available for 30 minutes to download before expiry
Limits:
Below are the limits for script length with duration of the video
30-60 - 1000 characters 60-90 - 1500 characters 90-120 - 2000 characters 120-180 - 2500 characters 5 min - 5000 characters 10 min - 10000 characters