← 返回
内容创作 Key 中文

Nanobanana Pro

Nano 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.
Nano Banana Pro 支持自动模型回退,通过 Gemini Image API 生成或编辑图像。运行命令:uv run {baseDir}/scripts/generate_image.py --prompt '描述' --filename '输出.png' [--resolution 1K|2K|4K] [-i 输入.png]。支持文生图及图生图(最多14张),分辨率可选 1K/2K/4K。回退链:gemini-2.5-flash-image → gemini-2.0-flash-exp。必须使用 uv run,不可用 python3。
yazelin
内容创作 clawhub v0.4.4 1 版本 99313.9 Key: 需要
★ 5
Stars
📥 4,098
下载
💾 890
安装
1
版本
#latest

概述

Nano Banana Pro with Fallback

Use 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 var
  • Or set skills."nanobanana-pro-fallback".apiKey / skills."nanobanana-pro-fallback".env.GEMINI_API_KEY in ~/.openclaw/openclaw.json

Notes

  • Resolutions: 1K (default), 2K, 4K.
  • Models tried in order: gemini-2.5-flash-imagegemini-2.0-flash-exp-image-generation (configurable via NANOBANANA_FALLBACK_MODELS env var).
  • Use timestamps in filenames: yyyy-mm-dd-hh-mm-ss-name.png.
  • The script prints a MEDIA: line for OpenClaw to auto-attach on supported chat providers.
  • Do not read the image back; report the saved path only.

版本历史

共 1 个版本

  • v0.4.4 当前
    2026-03-28 14:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,131
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,255
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 294 📥 136,401