返回顶部
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,104
下载量
免费
免费
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: a banana in space, photorealistic}

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

示例

基础文本生成图像

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

多图像生成

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

自定义宽高比

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

图像编辑(带输入图像)

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

高分辨率(4K)

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

使用 Google 搜索接地

bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: Current weather in Tokyo visualized as an artistic scene,
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: A banana in space, photorealistic } }) print(result[output])

流式实时更新

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进度: {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-1776053408 技能

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

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

通过命令行安装

skillhub install nano-banana-2-1776053408

下载

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

文件大小: 2.56 KB | 发布时间: 2026-4-14 10:34

v0.1.1 最新 2026-4-14 10:34
- 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-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部