This skill generates and extends Gemini Veo 3.1 videos from text or images using the Python SDK, with configurable resolution, duration, and prompts.
npx playbooks add skill xiangyu-cas/vision-skills --skill video-generation
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).
GEMINI_API_KEY is available (env or local .env), then use the Python SDK.types.Image(imageBytes=..., mimeType=...) (not PIL.Image or types.Part) to avoid input type errors.client.models.generate_videos(...) with the correct inputs/config (see references).done, then download and save the video.references/overview.mdreferences/parameters.mdreferences/model-versions-and-limitations.mdreferences/prompt-guide.mdexamples/text-to-video.mdexamples/image-to-video.mdexamples/reference-images.mdexamples/first-last-frames.mdexamples/video-extension.mdexamples/aspect-ratio.mdexamples/resolution.mdexamples/negative-prompt.mdveo-3.1-fast-generate-preview.imageBytes + mimeType via types.Image to prevent INVALID_ARGUMENT errors.duration_seconds=8.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.