mcpField
N
nano-banana

nano-banana

github.com/inference-sh创意与媒体790982 次安装2 周前更新
代码仓库

关于 nano-banana

nano-banana 是通过 belt 命令行使用 Google Gemini 图像模型生成和编辑图片的技能,适合需要配置图片数量、宽高比、分辨率或搜索依据的用户。

主要功能

  1. 01文本生成图片
  2. 02基于输入图片进行编辑
  3. 03生成多张图片
  4. 04宽高比和分辨率选项
  5. 05Google Search 信息依据选项

适用场景

  1. 01根据文本提示创建图片
  2. 02通过提示词修改现有图片
  3. 03生成多个标志设计方案
  4. 04制作高分辨率图片

安装

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

$npx skills add https://github.com/inference-sh/skills --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 --input '{"prompt": "a banana in space, photorealistic"}'

模型

模型应用 ID速度质量
Gemini 3 Pro Imagegoogle/gemini-3-pro-image较慢最佳
Gemini 2.5 Flash Imagegoogle/gemini-2-5-flash-image快极佳

搜索 Gemini 图像应用

belt app search "gemini image"

示例

基本文本生成图像
belt app run google/gemini-3-pro-image --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 --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 --input '{
  "prompt": "Detailed illustration of a medieval castle",
  "resolution": "4K"
}'
使用 Google 搜索提供依据
belt app run google/gemini-3-pro-image --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 --save input.json

# 2. Edit the prompt
# 3. Run
belt app run google/gemini-3-pro-image --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