generate_video
Generate videos from text descriptions. Optionally use an image as the first frame or interpolate between first and last frames.
Instructions
Generate a video from a text prompt using Gemini Veo. Supports text-to-video, image-to-video (first frame), and first+last frame interpolation. Video generation takes 1-6 minutes. Available models: veo-3.1-generate-preview (latest), veo-3-generate-preview, veo-2-generate-preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed description of the video to generate. Include subject, action, style, camera movement, and atmosphere. | |
| model | No | Veo model to use. Options: veo-3.1-generate-preview (default, latest), veo-3-generate-preview, veo-2-generate-preview. | |
| imagePath | No | Optional: Absolute file path to an image to use as the first frame (image-to-video generation). | |
| lastFramePath | No | Optional: Absolute file path to an image to use as the last frame (first+last frame interpolation). Requires imagePath to be set. | |
| aspectRatio | No | Aspect ratio of the video. Options: "16:9" (default, landscape), "9:16" (portrait). | |
| resolution | No | Video resolution. Options: "720p" (default), "1080p", "4k". | |
| durationSeconds | No | Video duration in seconds. Options: 4, 6, 8 (default varies by model). | |
| numberOfVideos | No | Number of video variants to generate (default: 1). | |
| negativePrompt | No | Optional: Elements to avoid in the generated video. |