nanobanana-pro-fallbackNano Banana Pro with auto model fallback โ generate/edit images via Gemini Image API. Run via: uv run {baseDir}/scripts/generate_image.py --prompt 'desc' --filename 'out.png' [--resolution 1K|2K|4K] [-i input.png]. Supports text-to-image + image-to-image (up to 14); 1K/2K/4K. Fallback chain: gemini-2.5-flash-image โ gemini-2.0-flash-exp. MUST use uv run, not python3.
Install via ClawdBot CLI:
clawdbot install yazelin/nanobanana-pro-fallbackUse the bundled script to generate or edit images. Automatically falls back through multiple Gemini models if one fails.
โ ๏ธ IMPORTANT: MUST use uv run or the generate wrapper. Do NOT use python3 directly โ dependencies won't be available.
Generate (option A: wrapper script)
{baseDir}/scripts/generate --prompt "your image description" --filename "output.png" --resolution 1K
Generate (option B: uv run)
uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output.png" --resolution 1K
Edit (single image)
uv run {baseDir}/scripts/generate_image.py --prompt "edit instructions" --filename "output.png" -i "/path/in.png" --resolution 2K
Multi-image composition (up to 14 images)
uv run {baseDir}/scripts/generate_image.py --prompt "combine these into one scene" --filename "output.png" -i img1.png -i img2.png -i img3.png
API key
GEMINI_API_KEY env varskills."nanobanana-pro-fallback".apiKey / skills."nanobanana-pro-fallback".env.GEMINI_API_KEY in ~/.openclaw/openclaw.jsonNotes
1K (default), 2K, 4K.gemini-2.5-flash-image โ gemini-2.0-flash-exp-image-generation (configurable via NANOBANANA_FALLBACK_MODELS env var).yyyy-mm-dd-hh-mm-ss-name.png.MEDIA: line for OpenClaw to auto-attach on supported chat providers.Generated Mar 1, 2026
Marketing teams can quickly generate branded images for posts, ads, or stories based on text prompts, ensuring consistent visual identity across platforms. The multi-image composition feature allows combining product photos into cohesive scenes for campaigns.
Online retailers can create or edit product images by describing variations, backgrounds, or styles, reducing photoshoot costs. The image-to-image editing enables refining existing photos, such as adjusting lighting or adding props, for catalog listings.
Educators and e-learning platforms can generate custom illustrations, diagrams, or infographics from textual descriptions to enhance course materials. The resolution options support high-quality prints for textbooks or digital displays.
Design agencies can rapidly prototype visual concepts for clients by generating multiple image iterations from prompts, speeding up feedback cycles. The fallback model chain ensures reliability during high-demand periods or API issues.
Individual creators, such as bloggers or hobbyists, can produce unique images for blogs, portfolios, or personal projects without graphic design skills. The script's timestamped filenames help organize outputs chronologically.
Offer a free tier with limited resolutions or monthly generations, then charge for higher resolutions (e.g., 4K), faster processing, or advanced features like batch editing. Revenue comes from subscription plans targeting small businesses and prosumers.
License the skill package to software platforms (e.g., CMS, design tools) for embedding image generation capabilities, with revenue based on usage volume or flat licensing fees. This targets tech companies seeking to enhance their products with AI features.
Partner with marketing or design agencies to provide custom training, support, and priority access, generating revenue through setup fees and ongoing service contracts. This leverages the skill's multi-image composition for client projects.
๐ฌ Integration Tip
Ensure the GEMINI_API_KEY is securely set via environment variables or configuration files, and use the uv run command as specified to avoid dependency issues.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
ไฝฟ็จๅ ็ฝฎ image_generate.py ่ๆฌ็ๆๅพ็, ๅๅคๆธ ๆฐๅ ทไฝ็ `prompt`ใ
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.