关于 nano-banana
这是一项通过 inference.sh 使用 Google Gemini 图像模型生成和编辑图片的命令行技能。它介绍模型选项,以及多张输入图片、宽高比、分辨率和 Google Search grounding 等参数。
主要功能
- 01根据文本生成图片
- 02基于输入图片进行编辑
- 03生成多张输出图片
- 04设置宽高比与分辨率
- 05使用 Google Search grounding
适用场景
- 01按提示词生成插画
- 02编辑现有图片
- 03生成不同宽高比的图片
- 04依据实时信息构思图片
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ qu-skills/ superpowers --skill nano-banana安装后在 Claude Code 中输入/nano-banana确认已加载。
详细介绍
安装 belt CLI 技能:
npx skills add belt-sh/cli
Nano Banana - Gemini 原生图像生成
通过 inference.sh CLI 使用 Google Gemini 原生图像模型生成图像。

快速入门
需要 inference.sh CLI(
belt)。安装说明
belt login
belt app run google/gemini-3-pro-image-preview --input '{"prompt": "a banana in space, photorealistic"}'
模型
| 模型 | App ID | 速度 | 质量 |
|---|---|---|---|
| Gemini 3 Pro Image | google/gemini-3-pro-image-preview | 较慢 | 最佳 |
| Gemini 2.5 Flash Image | google/gemini-2-5-flash-image | 快 | 优秀 |
搜索 Gemini 图像应用
belt app search "gemini image"
示例
基本文本生成图像
belt app run google/gemini-3-pro-image-preview --input '{
"prompt": "A futuristic cityscape at sunset with flying cars"
}'
多张图像
belt app run google/gemini-2-5-flash-image --input '{
"prompt": "Minimalist logo design for a coffee shop",
"num_images": 4
}'
自定义宽高比
belt app run google/gemini-3-pro-image-preview --input '{
"prompt": "Panoramic mountain landscape with northern lights",
"aspect_ratio": "16:9"
}'
图像编辑(使用输入图像)
belt app run google/gemini-2-5-flash-image --input '{
"prompt": "Add a rainbow in the sky",
"images": ["https://example.com/landscape.jpg"]
}'
高分辨率(4K)
belt app run google/gemini-3-pro-image-preview --input '{
"prompt": "Detailed illustration of a medieval castle",
"resolution": "4K"
}'
使用 Google 搜索作为依据
belt app run google/gemini-3-pro-image-preview --input '{
"prompt": "Current weather in Tokyo visualized as an artistic scene",
"enable_google_search": true
}'
输入选项
| 参数 | 类型 | 描述 |
|---|---|---|
prompt | string | 必填。 要生成或更改的内容 |
images | array | 用于编辑的输入图像(最多 14 张) |
num_images | integer | 要生成的图像数量 |
aspect_ratio | string | 输出宽高比:"1:1"、"16:9"、"9:16"、"4:3"、"3:4"、"auto" |
resolution | string | "1K"、"2K"、"4K"(仅限 Gemini 3 Pro) |
output_format | string | 图像的输出格式 |
enable_google_search | boolean | 启用实时信息依据 |
提示词技巧
风格:写实、插画、水彩、油画、数字艺术、动漫、3D 渲染
构图:特写、广角、鸟瞰、微距、肖像、风景
光线:自然光、影棚灯光、黄金时刻、戏剧性阴影、霓虹灯
细节:补充关于纹理、色彩、情绪和氛围的具体细节
示例工作流
# 1. Generate sample input to see all options
belt app sample google/gemini-3-pro-image-preview --save input.json
# 2. Edit the prompt
# 3. Run
belt app run google/gemini-3-pro-image-preview --input input.json
相关技能
# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli
# All image generation models
npx skills add inference-sh/skills@ai-image-generation
# Video generation (for image-to-video)
npx skills add inference-sh/skills@ai-video-generation
浏览所有图像应用:belt app list --category image
文档
评论
支持 Markdown