What problem does it solve? Creating and editing videos with generative AI requires handling media uploads, prompt structuring, resolution and duration configuration, and multi-turn state management, which is complex to wire up manually against the Gemini API. ## Core Features & Use Cases - Video Generation: Text-to-video, first-frame-to-video, first-and-last-frame transitions, and looping videos at resolutions from 360p up to 4K. - Video Editing & Extension: Edit existing videos (up to 10s), extend videos by 10s per turn up to 40s total, and regenerate audio from scratch by stripping the source audio track. - Media Pre-processing: Inspect videos with ffprobe and trim, scale, or normalize large source files with ffmpeg before upload to avoid slow uploads and OOM errors. - Use Case: A content creator uploads a product photo as the first frame, provides a style reference image, and generates a 10-second 1080p promotional clip, then extends it with a new scene using the previous interaction ID. ## Quick Start Generate a 10-second 1080p video of a sunset over the ocean and save it to media/sunset.mp4.