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 durationseconds=4, unless the user asks otherwise or the task requires different settings (e.g., extension, interpolation, reference images, 1080p/4k).
1) Identify the task type: text-to-video, image-to-video, reference images, first/last frames (interpolation), or video extension. 2) Ensure GEMINIAPIKEY 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.generatevideos(...) with the correct inputs/config (see references).
Generazione video Gemini con Veo 3.1 tramite Python SDK. Da utilizzare quando si generano video da testo o immagini, utilizzando immagini di riferimento, interpolazione del primo/ultimo fotogramma o estensione video e durante la regolazione dei parametri Veo (proporzioni, risoluzione, durata, suggerimenti negativi, personGeneration, seed). Fonte: xiangyu-cas/vision-skills.