Skip to content

Generating Videos from Image

How to Generate Videos using the fal API

fal 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 fal API:

import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/minimax-video/image-to-video", {
input: {
prompt: "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage.",
image_url: "https://fal.media/files/elephant/8kkhB12hEZI2kkbU8pZPA_test.jpeg"
},
});

How to select the model to use

fal 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 images you want to generate. Here are some of the available models:

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.