Create video
HTTP request
POST /ai/video_generation
Authorization
Include your ACCESS TOKEN in HTTP Authorization header
Request Parameters
prompt
String
A brief description or theme for the video you want to generate. Example: “A scenic landscape with rolling hills and a clear blue sky.”
configs
JSON
This parameter is a JSON object encompassing a variety of settings you can adjust to customize the image generation process. It includes several parameters, which we will describe next, allowing you to control different aspects of the generation.
model
String
Specifies the AI model used for generating the video. Default is “damo-text-to-video”.
width
Integer
The width of the generated video frame in pixels. This should be a positive integer. Common range: 256 to 512 pixels. Default is 256.
height
Integer
The height of the generated video frame in pixels. This should be a positive integer. Common range: 256 to 512 pixels. Default is 256.
steps
Integer
The number of steps the model will take to refine each frame of the video. Common range: 25 to 50 steps. Default is 50.
seed
Integer
An initial seed value for the random number generator used in video generation. Can be initialized with any random integer. Default value is -1.
fps
Integer
Specifies the number of frames per second in the generated video. Default value is 8.
num_frames
Integer
Determines the total number of frames (images) in the generated video, influencing its duration alongside the FPS value. Default value is 16.
negative_prompt
String
A description of elements you specifically want to exclude from the video. This helps in refining the output to better match your expectations. Example: "No humans, animals".
Negative_prompt is not used by default.
enhance_prompt
Boolean
The model will utilize language modeling to enhance and clarify the initial prompt, potentially leading to more detailed and accurate representations. Default value is False.
User Guide
Craft a Detailed Prompt: Begin by crafting a clear and detailed prompt for the video you have in mind. Incorporate all pertinent details to steer the image generation effectively.
Adjust Configuration Settings: Tailor the configuration settings to your preferences. This involves making choices regarding video frame resolution (width and height), the level of detail (steps), and the expected processing time, balancing these elements according to your needs.
Experiment with Seeds: Leverage the seed parameter to explore different variations of your video. Altering the seed can yield distinct outcomes based on the same initial prompt, offering a range of possibilities.
Refine Using Negative Prompts: Employ the negative_prompt field to eliminate any elements you do not wish to include in your video. This step helps in fine-tuning the results to more accurately reflect your vision.
Enhance Your Prompt for Better Outcomes: Should the results not meet your expectations, consider activating the enhance_prompt feature. A more elaborate prompt may lead to improved video generation.
Example Request
Parrot API
Response
Returns the ID of the successful task.
Last updated
Was this helpful?