video-generation

Installation
SKILL.md

Video Generation with Gemini (Veo 3.1)

Use this skill when the user asks to generate or extend videos with Gemini using the Python SDK. Default to veo-3.1-fast-generate-preview, resolution="720p", and duration_seconds=4, unless the user asks otherwise or the task requires different settings (e.g., extension, interpolation, reference images, 1080p/4k).

Workflow

  1. Identify the task type: text-to-video, image-to-video, reference images, first/last frames (interpolation), or video extension.
  2. Ensure GEMINI_API_KEY is available (env or local .env), then use the Python SDK.
  3. When using images, pass types.Image(imageBytes=..., mimeType=...) (not PIL.Image or types.Part) to avoid input type errors.
  4. Call client.models.generate_videos(...) with the correct inputs/config (see references).
  5. Poll the operation until done, then download and save the video.
  6. If no videos are returned, surface a clear error and suggest checking the API key, model, and config.

Use these references (by task type)

Related skills
Installs
10
GitHub Stars
1
First Seen
Jan 25, 2026