generate_video
Create videos from text descriptions or starting images using AI models. Specify prompts, duration, aspect ratio, and model parameters to generate custom video content.
Instructions
Generate videos from text prompts (text-to-video) or from images (image-to-video). Use list_models with category='video' to discover available models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description for the video (e.g., 'A slow-motion drone shot of Tokyo at night') | |
| image_url | No | Starting image URL for image-to-video models. Optional for text-to-video models. | |
| model | No | Model ID. Use 'fal-ai/kling-video/v2/master/text-to-video' for text-only, or image-to-video models like 'fal-ai/wan-i2v'. | fal-ai/wan-i2v |
| duration | No | Video duration in seconds | |
| aspect_ratio | No | Video aspect ratio (e.g., '16:9', '9:16', '1:1') | 16:9 |
| negative_prompt | No | What to avoid in the video (e.g., 'blur, distort, low quality') | |
| cfg_scale | No | Classifier-free guidance scale (0.0-1.0). Lower values give more creative results. |