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.