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).
Генерация видео Gemini с помощью Veo 3.1 с помощью Python SDK. Используйте при создании видео из текста или изображений, использовании эталонных изображений, интерполяции первого/последнего кадра или расширения видео, а также при настройке параметров Veo (соотношение сторон, разрешение, продолжительность, отрицательные подсказки, personGeneration, начальное число). Источник: xiangyu-cas/vision-skills.