首页龙虾技能列表 › Nano Banana 2 — 技能工具

Nano Banana 2 — 技能工具

v0.1.1

Generate images with Google Gemini 3.1 Flash Image Preview (Nano Banana 图像工具 2) via inference.sh CLI. Capabilities: 文生图, image editing, multi-image inpu...

5· 2,073·16 当前·18 累计
by @okaris (Ömer Karışman)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/27
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The skill's instructions match its stated purpose (use inference.sh to run Google Gemini image apps), but it asks users to download-and-execute a third-party CLI (curl | sh) and implies a login step without declaring required credentials, which is an incoherence and a moderate risk.
评估建议
This skill appears to do what it says (use inference.sh to run Gemini image apps) but it asks you to download and run a third‑party installer and sign in to an external service. Before installing: (1) Inspect https://cli.inference.sh manually — don't run curl | sh without reading the script. (2) Prefer downloading the binary and verifying SHA-256 checksums yourself using the provided checksums URL. (3) Understand what credentials 'infsh login' will store and where (API tokens, config files). (4)...
详细分析 ▾
用途与能力
The name/description claim (generate/edit images via Google Gemini 3.1 Flash Image Preview) aligns with the runtime instructions: the SKILL.md tells the agent to install and use the inference.sh CLI to run google/gemini-3-1-flash-image-preview. There are no unrelated requirements or capabilities requested.
指令范围
The SKILL.md explicitly instructs the user/agent to run a remote installer (curl -fsSL https://cli.inference.sh | sh) and to run 'infsh login' before using apps. This downloads and executes a third-party binary and initiates a login flow (credential handling) that the skill metadata does not declare. The instructions also send prompts and input images to the external inference.sh service (expected for the stated purpose) but the install+login steps extend the scope beyond simple local commands.
安装机制
There is no formal install spec in the registry metadata; instead the SKILL.md recommends running a remote install script (pipe-to-sh) that fetches a binary from dist.inference.sh. Even though the doc mentions checksum verification, piping a remote script to sh and installing a third-party binary is higher-risk than an instruction-only skill and writes persistent binaries/config to the system.
凭证需求
The skill metadata declares no required environment variables or credentials, but the runtime instructions call 'infsh login', which implies that API keys or an account will be created/stored. The absence of declared credentials is an information gap — the login step will likely store tokens or require secrets that the registry metadata did not advertise.
持久化与权限
The skill does not request 'always: true' and has no declared config-path or system-wide modifications. However, following the install instructions will add a third-party CLI binary and likely persistent credentials/config produced by 'infsh login' to the host; that is normal for a CLI but is a persistent side effect users should be aware of.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.12026/2/27

- Updated skill to use Google Gemini 3.1 Flash Image Preview (Nano Banana 2) via inference.sh CLI. - New app trigger: google/gemini-3-1-flash-image-preview. - Added Python SDK usage example. - Input options and output fields revised for Gemini 3.1 Flash Image Preview capabilities. - Adjusted triggers and documentation links to reflect new model and version.

● 无害

安装命令 点击复制

官方npx clawhub@latest install nano-banana-2
镜像加速npx clawhub@latest install nano-banana-2 --registry https://cn.clawhub-mirror.com

技能文档

Generate images with Google Gemini 3.1 Flash Image Preview via inference.sh CLI.

Quick Start

curl -fsSL https://cli.inference.sh | sh && infsh login

infsh app run google/gemini-3-1-flash-image-preview --input '{"prompt": "a banana in space, photorealistic"}'

Install note: The install script only detects your OS/architecture, downloads the matching binary from dist.inference.sh, and verifies its SHA-256 checksum. No elevated permissions or background processes. Manual install & verification available.

Examples

Basic Text-to-Image

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "A futuristic cityscape at sunset with flying cars"
}'

Multiple Images

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "Minimalist logo design for a coffee shop",
  "num_images": 4
}'

Custom Aspect Ratio

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "Panoramic mountain landscape with northern lights",
  "aspect_ratio": "16:9"
}'

Image Editing (with input images)

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "Add a rainbow in the sky",
  "images": ["https://example.com/landscape.jpg"]
}'

High Resolution (4K)

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "Detailed illustration of a medieval castle",
  "resolution": "4K"
}'

With Google Search Grounding

infsh app run google/gemini-3-1-flash-image-preview --input '{
  "prompt": "Current weather in Tokyo visualized as an artistic scene",
  "enable_google_search": true
}'

Input Options

ParameterTypeDescription
promptstringRequired. What to generate or change
imagesarrayInput images for editing (up to 14). Supported: JPEG, PNG, WebP
num_imagesintegerNumber of images to generate
aspect_ratiostringOutput ratio: "1:1", "16:9", "9:16", "4:3", "3:4", "auto"
resolutionstring"1K", "2K", "4K" (default: 1K)
output_formatstringOutput format for images
enable_google_searchbooleanEnable real-time info grounding (weather, news, etc.)

Output

FieldTypeDescription
imagesarrayThe generated or edited images
descriptionstringText description or response from the model
output_metaobjectMetadata about inputs/outputs for pricing

Prompt Tips

Styles: photorealistic, illustration, watercolor, oil painting, digital art, anime, 3D render

Composition: close-up, wide shot, aerial view, macro, portrait, landscape

Lighting: natural light, studio lighting, golden hour, dramatic shadows, neon

Details: add specific details about textures, colors, mood, atmosphere

Sample Workflow

# 1. Generate sample input to see all options
infsh app sample google/gemini-3-1-flash-image-preview --save input.json

# 2. Edit the prompt # 3. Run infsh app run google/gemini-3-1-flash-image-preview --input input.json

Python SDK

from inferencesh import inference

client = inference()

# Basic generation result = client.run({ "app": "google/gemini-3-1-flash-image-preview@0c7ma1ex", "input": { "prompt": "A banana in space, photorealistic" } }) print(result["output"])

# Stream live updates for update in client.run({ "app": "google/gemini-3-1-flash-image-preview@0c7ma1ex", "input": { "prompt": "A futuristic cityscape at sunset" } }, stream=True): if update.get("progress"): print(f"progress: {update['progress']}%") if update.get("output"): print(f"output: {update['output']}")

Related Skills

# Original Nano Banana (Gemini 3 Pro Image, Gemini 2.5 Flash Image)
npx skills add inference-sh/skills@nano-banana

# Full platform skill (all 150+ apps) npx skills add inference-sh/skills@inference-sh

# All image generation models npx skills add inference-sh/skills@ai-image-generation

Browse all image apps: infsh app list --category image

Documentation

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务