mcpField
N
nano-banana

nano-banana

github.com/qu-skills创意与媒体441 次安装12 周前更新
代码仓库

关于 nano-banana

这是一项通过 inference.sh 使用 Google Gemini 图像模型生成和编辑图片的命令行技能。它介绍模型选项,以及多张输入图片、宽高比、分辨率和 Google Search grounding 等参数。

主要功能

  1. 01根据文本生成图片
  2. 02基于输入图片进行编辑
  3. 03生成多张输出图片
  4. 04设置宽高比与分辨率
  5. 05使用 Google Search grounding

适用场景

  1. 01按提示词生成插画
  2. 02编辑现有图片
  3. 03生成不同宽高比的图片
  4. 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 原生图像模型生成图像。

Nano Banana

快速入门

需要 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 Imagegoogle/gemini-3-pro-image-preview较慢最佳
Gemini 2.5 Flash Imagegoogle/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
}'

输入选项

参数类型描述
promptstring必填。 要生成或更改的内容
imagesarray用于编辑的输入图像(最多 14 张)
num_imagesinteger要生成的图像数量
aspect_ratiostring输出宽高比:"1:1"、"16:9"、"9:16"、"4:3"、"3:4"、"auto"
resolutionstring"1K"、"2K"、"4K"(仅限 Gemini 3 Pro)
output_formatstring图像的输出格式
enable_google_searchboolean启用实时信息依据

提示词技巧

风格:写实、插画、水彩、油画、数字艺术、动漫、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