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
技能名称:nano-banana-2
详细描述:
通过 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]
}
bash
infsh app run google/gemini-3-1-flash-image-preview --input {
prompt: Detailed illustration of a medieval castle,
resolution: 4K
}
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
python
from inferencesh import inference
client = inference()
bash
浏览所有图像应用:infsh app list --category image
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 nano-banana-2-1776053408 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 nano-banana-2-1776053408 技能
skillhub install nano-banana-2-1776053408
文件大小: 2.56 KB | 发布时间: 2026-4-14 10:34