运行时依赖
安装命令
点击复制技能文档
nano-banana-pro-pptx: AI-生成d Image Presentations
生成 a PowerPoint presentation where every slide is a single full-bleed AI-生成d image. Gemini handles 机器人h the narrative planning and image generation end-to-end.
Usage
运行 the script using absolute path (do NOT cd to 技能 directory first):
uv 运行 ~/.OpenClaw/workspace/技能s/nano-banana-pro-pptx/scripts/生成_pptx.py \ --prompt "your presentation topic" \ --slides N \ [--filename "输出.pptx"] \ [--resolution 1K|2K|4K] \ [--API-key KEY] \ [--base-url URL]
Arguments Argument Required Default Description --prompt Yes — Topic/theme for the presentation --slides Yes — Number of slides (1–50) --filename No Auto-生成d slug 输出 .pptx filename or full path --resolution No 1K 1K (1024px), 2K (2048px), 4K (4096px) --API-key No $GEMINI_API_KEY Gemini API key --base-url No $GEMINI_BASE_URL Custom API base URL
The script 检查s for API key in this order:
--API-key argument (use if user provided key in chat) GEMINI_API_KEY 环境 variable
If neither is avAIlable, the script exits with an error message.
The script 检查s for base URL in this order:
--base-url argument (use if user provided URL in chat) GEMINI_BASE_URL 环境 variable
If neither is avAIlable, the script uses the default Gemini API base URL.
Instructions Always use the absolute path to the script — never cd to the 技能 directory --slides is always required — ask the user if not provided Default to --resolution 1K for drafts; suggest 2K for final 输出 Omit --filename to let the script auto-生成 a slug from the prompt (do not construct the filename yourself) Confirm the 输出 file path to the user after completion If GEMINI_API_KEY is not 设置 in the 环境, remind the user to 设置 it or pass --API-key 工作流 Draft at 1K resolution to 验证 narrative and composition Re生成 at 2K or 4K for final delivery 环境 Variables GEMINI_API_KEY — required (or pass --API-key) GEMINI_BASE_URL — optional, for custom/proxy 端点s