Get Started
Generating Videos from Image
How to Generate Videos using the sunra API
sunra offers a simple and easy-to-use API that allows you to generate videos from your images using pre-trained models. This endpoint is perfect for creating video clips from your images for various use cases such as social media, marketing, and more.
Here is an example of how to generate videos using the sunra API:
How to select the model to use
sunra offers a variety of video generation models. You can select the model that best fits your needs based on the style and quality of the videos you want to generate. Here are some of the available models:
- kling/kling-v2-master/image-to-video: Kling V2 Master is designed to improve prompt adherence, motion dynamics, and visual aesthetics.
- minimax/i2v-01/image-to-video: Generates 6-second HD videos from images and text prompts
To select a model, simply specify the model ID in the subscribe method as shown in the example above. You can find more models and their descriptions in the Image to Video Models page.