mcpField
N
nano-banana

nano-banana

github.com/magentosh创意与媒体447 次安装12 周前更新
代码仓库

关于 nano-banana

通过 `belt` 命令行调用 Google Gemini 图像模型生成和编辑图片的 Skill,支持提示词生成、输入图片及可配置的输出选项。

主要功能

  1. 01根据提示词生成图片
  2. 02使用输入图片进行编辑
  3. 03设置图片数量和宽高比
  4. 04选择输出格式与分辨率
  5. 05启用 Google Search 信息 grounding

适用场景

  1. 01根据文字提示创作插图
  2. 02修改现有图片
  3. 03按指定宽高比生成图片

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/magentosh/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