返回顶部
n

nano-banana-2纳米香蕉2图像生成

Generate images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) via inference.sh CLI. Capabilities: text-to-image, image editing, multi-image input (up to 14 images), Google Search grounding. Triggers: nano banana 2, nanobanana 2, gemini 3.1 flash image, gemini 3 1 flash image preview, google image generation

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
2,103
下载量
免费
免费
5
收藏
概述
安装方式
版本历史

nano-banana-2

技能名称: nano-banana-2
详细描述:

Nano Banana 2 - Gemini 3.1 Flash 图像预览

通过 inference.sh CLI 使用 Google Gemini 3.1 Flash 图像预览生成图像。

快速开始

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

infsh app run google/gemini-3-1-flash-image-preview --input {prompt: 太空中的香蕉,照片级真实感}

安装说明: 安装脚本 仅检测您的操作系统/架构,从 dist.inference.sh 下载匹配的二进制文件,并验证其 SHA-256 校验和。无需提升权限或后台进程。提供手动安装与验证

示例

基础文生图

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 日落时分拥有飞行汽车的未来城市景观
}

多图生成

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 咖啡店的极简标志设计,
num_images: 4
}

自定义宽高比

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 带有北极光的全景山脉景观,
aspect_ratio: 16:9
}

图像编辑(带输入图像)

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 在天空中增加一道彩虹,
images: [https://example.com/landscape.jpg]
}

高分辨率(4K)

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 中世纪城堡的精细插图,
resolution: 4K
}

使用 Google 搜索接地

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: 将东京当前天气可视化为艺术场景,
enablegooglesearch: true
}

输入选项

参数类型描述
prompt字符串必填。 要生成或更改的内容
images
数组 | 用于编辑的输入图像(最多 14 张)。支持:JPEG、PNG、WebP | | num_images | 整数 | 要生成的图像数量 | | aspect_ratio | 字符串 | 输出比例:1:1、16:9、9:16、4:3、3:4、auto | | resolution | 字符串 | 1K、2K、4K(默认:1K) | | output_format | 字符串 | 图像的输出格式 | | enablegooglesearch | 布尔值 | 启用实时信息接地(天气、新闻等) |

输出

字段类型描述
images数组生成或编辑的图像
description
字符串 | 模型的文本描述或响应 | | output_meta | 对象 | 关于输入/输出的元数据,用于定价 |

提示技巧

风格:照片级真实感、插图、水彩、油画、数字艺术、动漫、3D 渲染

构图:特写、广角、鸟瞰、微距、人像、风景

光照:自然光、影棚光、黄金时刻、戏剧性阴影、霓虹灯

细节:添加关于纹理、颜色、情绪、氛围的具体细节

示例工作流

bash

1. 生成示例输入以查看所有选项


infsh app sample google/gemini-3-1-flash-image-preview --save input.json

2. 编辑提示词

3. 运行

infsh app run google/gemini-3-1-flash-image-preview --input input.json

Python SDK

python
from inferencesh import inference

client = inference()

基础生成

result = client.run({ app: google/gemini-3-1-flash-image-preview@0c7ma1ex, input: { prompt: 太空中的香蕉,照片级真实感 } }) print(result[output])

流式实时更新

for update in client.run({ app: google/gemini-3-1-flash-image-preview@0c7ma1ex, input: { prompt: 日落时分的未来城市景观 } }, stream=True): if update.get(progress): print(f进度:{update[progress]}%) if update.get(output): print(f输出:{update[output]})

相关技能

bash

原始 Nano Banana(Gemini 3 Pro 图像,Gemini 2.5 Flash 图像)


npx skills add inference-sh/skills@nano-banana

完整平台技能(所有 150+ 应用)

npx skills add inference-sh/skills@inference-sh

所有图像生成模型

npx skills add inference-sh/skills@ai-image-generation

浏览所有图像应用:infsh app list --category image

文档

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nano-banana-2-1776079461 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nano-banana-2-1776079461 技能

通过命令行安装

skillhub install nano-banana-2-1776079461

下载

⬇ 下载 nano-banana-2 v0.1.1(免费)

文件大小: 2.56 KB | 发布时间: 2026-4-15 13:33

v0.1.1 最新 2026-4-15 13:33
- 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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部