Generate a PowerPoint presentation where every slide is a single full-bleed AI-generated image. Gemini handles both the narrative planning and image generation end-to-end.
Run the script using absolute path (do NOT cd to skill directory first):
bash
uv run ~/.openclaw/workspace/skills/nano-banana-pro-pptx/scripts/generate_pptx.py \
--prompt "your presentation topic" \
--slides N \
[--filename "output.pptx"] \
[--resolution 1K|2K|4K] \
[--api-key KEY] \
[--base-url URL]
ArgumentRequiredDefaultDescription--promptYes—Topic/theme for the presentation--slidesYes—Number of slides (1–50)--filenameNoAuto-generated slugOutput .pptx filename or full path--resolutionNo1K``1K (1024px), 2K (2048px), 4K (4096px)--api-keyNo$GEMINI_API_KEYGemini API key--base-urlNo$GEMINI_BASE_URLCustom API base URL
The script checks for API key in this order:
--api-key argument (use if user provided key in chat)GEMINI_API_KEY environment variableIf neither is available, the script exits with an error message.
The script checks for base URL in this order:
--base-url argument (use if user provided URL in chat)GEMINI_BASE_URL environment variableIf neither is available, the script uses the default Gemini API base URL.
cd to the skill directory--slides is always required — ask the user if not provided--resolution 1K for drafts; suggest 2K for final output--filename to let the script auto-generate a slug from the prompt (do not construct the filename yourself)GEMINI_API_KEY is not set in the environment, remind the user to set it or pass --api-key1K resolution to verify narrative and composition2K or 4K for final deliveryGEMINI_API_KEY — required (or pass --api-key)GEMINI_BASE_URL — optional, for custom/proxy endpoints