interpolate_frames
Generate a video that animates between two keyframe images. Use start and end frames to create AI-interpolated motion.
Instructions
Generate a video that smoothly transitions between two keyframes using Veo 3.1 API.
Creates a video that starts at the first frame and ends at the last frame with AI-generated motion in between.
Pricing: Same as generate_video based on duration (audio always included)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | If false, return the operation_name immediately without waiting for completion. Default: true | |
| prompt | No | Optional prompt to guide the interpolation | |
| last_frame | Yes | Ending frame image. Can be a file path, URL, or base64 string | |
| first_frame | Yes | Starting frame image. Can be a file path, URL, or base64 string | |
| output_path | No | Path to save the generated video | |
| generate_audio | No | Whether to generate audio. Note: Gemini API preview always generates audio (ignored). | |
| duration_seconds | No | Duration of the video in seconds. Frame interpolation requires 8 seconds. Default: 8 |