Generate a video with Veo
generate_videoCreate a video from a text prompt or an image using Google Veo, then save the MP4 file to disk. Supports image-to-video with optional first and last frames.
Instructions
Generate a video from a text prompt with Google Veo, optionally starting from an image (image-to-video) and ending on another one. Paid per second of video and takes 1-5 minutes, so ask before generating several variants. Saves an MP4 to disk and returns its path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| image | No | Path to the first frame: png, jpg or webp | |
| model | No | Veo model id, default veo-3.1-generate-preview. See list_models | |
| prompt | Yes | What happens in the video, including camera and sound | |
| filename | No | Base filename without extension | |
| lastFrame | No | Path to the last frame. Requires image | |
| outputDir | No | Save directory, default ./veo | |
| resolution | No | Default 720p | |
| aspectRatio | No | Default 16:9 | |
| negativePrompt | No | What must not appear | |
| durationSeconds | No | Default 8. 1080p and 4k need 8 |