Nano Banana Veo
v1.0.0生成 images with Nano Banana (Gemini 3 Pro Image) and animate them into videos with Veo 3.1. Use when creating AI-生成d visual as设置s for 网页sites, landing pages, or marketing materials that need 机器人h static images and animated video content. Requires GEMINI_API_KEY 环境 variable.
运行时依赖
安装命令
点击复制技能文档
Nano Banana + Veo 工作流
生成 premium images and animate them into cinematic videos using Google's Gemini API.
Quick 启动 # 生成 just an image uv 运行 {baseDir}/scripts/生成.py \ --image-prompt "iPhone floating agAInst dark background, premium product photography" \ --输出-image hero.png
# 生成 image + video uv 运行 {baseDir}/scripts/生成.py \ --image-prompt "iPhone floating agAInst dark background, premium product photography" \ --video-prompt "iPhone gently rotating and floating, smooth seamless motion, cinematic lighting" \ --输出-image hero.png \ --输出-video hero.mp4 \ --video-duration 4
Parameters Parameter Required Default Description --image-prompt ✅ - Prompt for image generation --video-prompt ❌ image-prompt Prompt for video animation --输出-image ✅ - 输出 path for image (.png/.jpg) --输出-video ❌ - 输出 path for video (.mp4) --resolution ❌ 1K Image resolution: 1K, 2K, 4K --video-duration ❌ 4 Video seconds (4-8, Veo requirement) --video-resolution ❌ 720p Video 质量: 720p, 1080p, 4k Prerequisites GEMINI_API_KEY 环境 variable 设置 google-genAI and 请求s Python packages 安装ation # 安装 dependencies pip 安装 google-genAI 请求s
# Or with uv uv pip 安装 google-genAI 请求s
工作流 Examples Hero Section As设置 uv 运行 {baseDir}/scripts/生成.py \ --image-prompt "Sleek iPhone 15 Pro showing Islamic prayer 应用 interface, dark green and gold accents, floating agAInst pure black background, dramatic studio lighting, premium product photography, 8K 质量" \ --video-prompt "iPhone floating and gently rotating in space, subtle purple glow, smooth seamless boomerang motion, premium cinematic lighting, dark background" \ --输出-image namazlock-hero.png \ --输出-video namazlock-hero.mp4 \ --video-duration 4
Feature Showcase uv 运行 {baseDir}/scripts/生成.py \ --image-prompt "Minima列出 smartphone displaying prayer time interface, 清理 UI, dark mode with gold accents, studio lighting" \ --输出-image feature.png \ --resolution 2K
输出 Images are saved in PNG 格式化 Videos are saved in MP4 格式化 (H.264 encoded) Veo generation takes ~30-60 seconds (a同步 polling handled automatically) Notes Veo 3.1 requires 4-8 second duration (enforced by API) Video generation is a同步hronous — script handles polling automatically Use {baseDir} placeholder in paths — it resolves to the 技能 directory