Text to Video API
Turn text prompts into high-quality, dynamic videos in seconds. This AI-powered feature enables users to effortlessly generate unique, royalty-free videos with customizable motion, styles, and effects, offering flexibility for diverse creative applications.
For additional details on each parameter and its optimal use, check out the Text to Video API References.
Key Features
• Automated Video Generation: Create high-quality videos from text prompts transforming ideas into dynamic visual content.
• Customisation: Control motion, styles, and effects to match specific creative needs.
• Versatility: Generate videos in various styles, from cinematic and animated to abstract, for digital content, and marketing.
• Refinement: Fine-tune results through iterative prompts and adjustments for precise, high-quality outputs.
Strategic Value
Enhance video creation efficiency while reducing production costs and resource demands. Though video generation takes 10-15 minutes, this AI-powered feature enables detailed, high-quality motion content without the need for complex animation tools, making it ideal for prototyping, content creation, and storytelling.
This AI-powered video generation feature provides businesses and creators with a powerful way to bring ideas to life, offering flexibility for a wide range of creative and professional applications.
Endpoint
The endpoint for Text to Video API is
Headers
You need to pass the following headers along with the request.
Authorization
Pass your API token as a Bearer token in the Authorization header. Refer to the Authorization Section for guidance on managing your API keys.
Request Body Parameters
Below are the parameters that allow for a high degree of customization when generating videos. Click on each parameter to learn more about its use and best practices:
prompt
The main text description of the video you want to generate. Use descriptive and detailed language to achieve optimal results. See Creating Prompt.
style
Specifies the style of the generated video. Experiment with different styles to find the look that best suits your needs. See Selecting the Right Style
aspect_ratio
Defines the width-to-height ratio of the output video, such as "1:1"
for square video. You can try other available aspect ratios such as "16:9"
and "9:16"
.
Example API Call
Here’s a sample curl
request that uses the parameters above:
For additional details on each parameter and its optimal use, check out the Text to Video API References.
Response
Upon a successful request, the API returns a binary video file which can be directly rendered or saved.
Response Attributes:
video (binary): The generated video in binary format. You can decode and display or store it based on your application needs.
Error Handling
In case of errors, the response includes status codes and error messages. See the Errors and Troubleshooting section for help with interpreting and resolving these errors.
Last updated