Generate Video
Overview
You can generate a video using the AI/ML API. In the basic setup, you need only a prompt and the aspect ratio of the desired result.
Aspect Ratio
Type: String
Allowed Values:
1:1
,16:9
,9:16
,4:3
,3:4
,21:9
,9:21
Prompt
Type: String
Character Limit: 2048 characters
Loop
Type: Boolean
Description: Controls if the generated video will be looped.
Default Value:
false
Keywords
For instructions on how to use keywords, please refer to the Extend Video article.
Example
Ensure you replace "my_key"
with your actual API key before running the code.
Last updated