360 Secure SkillHub
360 安全技能中心

Nano Banana Pro

该 Skill 通过 uv 运行 generate.py,调用 Replicate 上的 Nano Banana Pro 图像模型,按用户给出的提示词和宽高比参数生成图片并写入指定输出路径,需配置 REPLICATE_API_TOKEN;生成后要求把图片直接在对话中发送。

bextuychiev
bextuychiev
热度 28.78
最近更新 2026-05-17 12:22:24
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bex-nano-banana-pro
Metadata
name
nano-banana-pro
description
Generate or edit images via Gemini 3 Pro Image on Replicate
user-invocable
true
metadata
{"openclaw":{"emoji":"🎨","requires":{"env":["REPLICATE_API_TOKEN"],"bins":["uv"]},"primaryEnv":"REPLICATE_API_TOKEN"}}

Nano Banana Pro Image Generator

Generate and edit images using Google's Nano Banana Pro model via the Replicate API.

Usage

Run the generation script:

uv run --with replicate python {baseDir}/generate.py --prompt "<user prompt>" [--aspect-ratio 1:1] [--output image.png]

Options

  • --prompt: The image description (required)
  • --aspect-ratio: Ratio like 1:1, 4:3, 16:9 (default: 1:1)
  • --output: Output file path (default: generated_image.png)

Rules

  • Only use the google/nano-banana-pro model. Never fall back to other models like google/nano-banana or any alternative. If the model is unavailable or rate-limited, report the error to the user and stop.
  • After generating an image, send the image file directly in the chat. Do not just save it to the workspace silently.

Tips

  • For text in images, be specific about fonts, size, and placement
  • The model supports resolutions up to 2K
  • Safety filtering is on by default