Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).
Use the bundled script to generate or edit images.
OpenClaw only allows sending media from specific directories. Always save images to /tmp/openclaw-media/ so they can be delivered in Telegram/WhatsApp.
Generate
mkdir -p /tmp/openclaw-media && uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "/tmp/openclaw-media/output.png" --resolution 1K
Edit (single image)
mkdir -p /tmp/openclaw-media && uv run {baseDir}/scripts/generate_image.py --prompt "edit instructions" --filename "/tmp/openclaw-media/output.png" -i "/path/in.png" --resolution 2K
Multi-image composition (up to 14 images)
mkdir -p /tmp/openclaw-media && uv run {baseDir}/scripts/generate_image.py --prompt "combine these into one scene" --filename "/tmp/openclaw-media/output.png" -i img1.png -i img2.png -i img3.png
API key
GEMINI_API_KEY env varskills."nano-banana-pro".apiKey / skills."nano-banana-pro".env.GEMINI_API_KEY in ~/.openclaw/openclaw.jsonNotes
1K (default), 2K, 4K.yyyy-mm-dd-hh-mm-ss-name.png./tmp/openclaw-media/ as the output directory — images saved to the workspace or other directories WILL NOT be sent to the chat.The script prints a MEDIA: line (e.g. MEDIA:/tmp/openclaw-media/image.png). You MUST include this exact line in your reply text for OpenClaw to auto-attach the image in Telegram/WhatsApp.
Here's your image!
MEDIA:/tmp/openclaw-media/my-image.png
MEDIA: line in the exec tool outputMEDIA: must start at the beginning of a new line with NO spaces before or after the colon[image: path] or  — that breaks it