nano-banana-pro-pptx: AI-Generated Image Presentations
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.
Usage
Run the script using absolute path (do NOT cd to skill directory first):
CODEBLOCK0
Arguments
| Argument | Required | Default | Description |
|---|
| INLINECODE0 | Yes | — | Topic/theme for the presentation |
| INLINECODE1 |
Yes | — | Number of slides (1–50) |
|
--filename | No | Auto-generated slug | Output
.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 checks for API key in this order:
- 1.
--api-key argument (use if user provided key in chat) - INLINECODE14 environment variable
If neither is available, the script exits with an error message.
The script checks for base URL in this order:
- 1.
--base-url argument (use if user provided URL in chat) - INLINECODE16 environment variable
If neither is available, the script uses the default Gemini API base URL.
Instructions
- 1. Always use the absolute path to the script — never
cd to the skill directory - INLINECODE18 is always required — ask the user if not provided
- Default to
--resolution 1K for drafts; suggest 2K for final output - Omit
--filename to let the script auto-generate a slug from the prompt (do not construct the filename yourself) - Confirm the output file path to the user after completion
- If
GEMINI_API_KEY is not set in the environment, remind the user to set it or pass INLINECODE23
Workflow
- 1. Draft at
1K resolution to verify narrative and composition - Regenerate at
2K or 4K for final delivery
Environment Variables
- -
GEMINI_API_KEY — required (or pass --api-key) - INLINECODE29 — optional, for custom/proxy endpoints
nano-banana-pro-pptx:AI生成图像演示文稿
生成一个PowerPoint演示文稿,其中每张幻灯片都是单张全幅AI生成的图像。Gemini负责端到端的叙事规划和图像生成。
使用方法
使用绝对路径运行脚本(不要先cd到技能目录):
bash
uv run ~/.openclaw/workspace/skills/nano-banana-pro-pptx/scripts/generate_pptx.py \
--prompt 你的演示主题 \
--slides N \
[--filename output.pptx] \
[--resolution 1K|2K|4K] \
[--api-key KEY] \
[--base-url URL]
参数
| 参数 | 必需 | 默认值 | 描述 |
|---|
| --prompt | 是 | — | 演示文稿的主题/话题 |
| --slides |
是 | — | 幻灯片数量(1–50) |
| --filename | 否 | 自动生成的slug | 输出的.pptx文件名或完整路径 |
| --resolution | 否 | 1K | 1K(1024px)、2K(2048px)、4K(4096px) |
| --api-key | 否 | $GEMINI
APIKEY | Gemini API密钥 |
| --base-url | 否 | $GEMINI
BASEURL | 自定义API基础URL |
脚本按以下顺序检查API密钥:
- 1. --api-key参数(如果用户在聊天中提供了密钥则使用)
- GEMINIAPIKEY环境变量
如果两者都不可用,脚本将退出并显示错误信息。
脚本按以下顺序检查基础URL:
- 1. --base-url参数(如果用户在聊天中提供了URL则使用)
- GEMINIBASEURL环境变量
如果两者都不可用,脚本将使用默认的Gemini API基础URL。
使用说明
- 1. 始终使用脚本的绝对路径——不要cd到技能目录
- --slides始终是必需的——如果未提供,请询问用户
- 草稿默认使用--resolution 1K;最终输出建议使用2K
- 省略--filename让脚本根据提示自动生成slug(不要自行构造文件名)
- 完成后向用户确认输出文件路径
- 如果环境中未设置GEMINIAPIKEY,提醒用户设置或传递--api-key
工作流程
- 1. 以1K分辨率生成草稿,验证叙事和构图
- 以2K或4K分辨率重新生成,用于最终交付
环境变量
- - GEMINIAPIKEY — 必需(或传递--api-key)
- GEMINIBASEURL — 可选,用于自定义/代理端点