nano-banana-2 by toolshell/skills
npx skills add https://github.com/toolshell/skills --skill nano-banana-2通过 inference.sh CLI 使用 Google Gemini 3.1 Flash 图像预览生成图像。
需要 inference.sh CLI (
infsh)。获取安装说明:npx skills add inference-sh/skills@agent-tools
infsh login
infsh app run google/gemini-3-1-flash-image-preview --input '{"prompt": "a banana in space, photorealistic"}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "A futuristic cityscape at sunset with flying cars"
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Minimalist logo design for a coffee shop",
"num_images": 4
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Panoramic mountain landscape with northern lights",
"aspect_ratio": "16:9"
}'
Generate images with Google Gemini 3.1 Flash Image Preview via inference.sh CLI.
Requires inference.sh CLI (
infsh). Get installation instructions:npx skills add inference-sh/skills@agent-tools
infsh login
infsh app run google/gemini-3-1-flash-image-preview --input '{"prompt": "a banana in space, photorealistic"}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "A futuristic cityscape at sunset with flying cars"
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Minimalist logo design for a coffee shop",
"num_images": 4
}'
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Add a rainbow in the sky",
"images": ["https://example.com/landscape.jpg"]
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Detailed illustration of a medieval castle",
"resolution": "4K"
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Current weather in Tokyo visualized as an artistic scene",
"enable_google_search": true
}'
| 参数 | 类型 | 描述 |
|---|---|---|
prompt | string | 必填。 要生成或修改的内容 |
images | array | 用于编辑的输入图像(最多 14 张)。支持:JPEG, PNG, WebP |
num_images | integer | 要生成的图像数量 |
aspect_ratio | string | 输出比例:"1:1", "16:9", "9:16", "4:3", "3:4", "auto" |
resolution | string | "1K", "2K", "4K" (默认: 1K) |
output_format | string | 图像的输出格式 |
enable_google_search | boolean | 启用实时信息锚定(天气、新闻等) |
| 字段 | 类型 | 描述 |
|---|---|---|
images | array | 生成或编辑的图像 |
description | string | 模型的文本描述或响应 |
output_meta | object | 关于输入/输出的元数据(用于定价) |
风格 : 照片级真实感、插画、水彩画、油画、数字艺术、动漫、3D 渲染
构图 : 特写、广角镜头、鸟瞰图、微距、肖像、风景
光线 : 自然光、影棚灯光、黄金时刻、戏剧性阴影、霓虹灯
细节 : 添加关于纹理、颜色、情绪、氛围的具体细节
# 1. 生成示例输入以查看所有选项
infsh app sample google/gemini-3-1-flash-image-preview --save input.json
# 2. 编辑提示词
# 3. 运行
infsh app run google/gemini-3-1-flash-image-preview --input input.json
from inferencesh import inference
client = inference()
# 基础生成
result = client.run({
"app": "google/gemini-3-1-flash-image-preview@0c7ma1ex",
"input": {
"prompt": "A banana in space, photorealistic"
}
})
print(result["output"])
# 流式传输实时更新
for update in client.run({
"app": "google/gemini-3-1-flash-image-preview@0c7ma1ex",
"input": {
"prompt": "A futuristic cityscape at sunset"
}
}, stream=True):
if update.get("progress"):
print(f"progress: {update['progress']}%")
if update.get("output"):
print(f"output: {update['output']}")
# 原始 Nano Banana (Gemini 3 Pro Image, Gemini 2.5 Flash Image)
npx skills add inference-sh/skills@nano-banana
# 完整平台技能(所有 150+ 个应用)
npx skills add inference-sh/skills@agent-tools
# 所有图像生成模型
npx skills add inference-sh/skills@ai-image-generation
浏览所有图像应用:infsh app list --category image
每周安装量
25.2K
仓库
GitHub 星标数
125
首次出现
2 天前
安全审计
安装于
claude-code20.1K
gemini-cli17.5K
codex17.5K
opencode17.5K
github-copilot17.5K
amp17.5K
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Panoramic mountain landscape with northern lights",
"aspect_ratio": "16:9"
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Add a rainbow in the sky",
"images": ["https://example.com/landscape.jpg"]
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Detailed illustration of a medieval castle",
"resolution": "4K"
}'
infsh app run google/gemini-3-1-flash-image-preview --input '{
"prompt": "Current weather in Tokyo visualized as an artistic scene",
"enable_google_search": true
}'
| Parameter | Type | Description |
|---|---|---|
prompt | string | Required. What to generate or change |
images | array | Input images for editing (up to 14). Supported: JPEG, PNG, WebP |
num_images | integer | Number of images to generate |
aspect_ratio | string | Output ratio: "1:1", "16:9", "9:16", "4:3", "3:4", "auto" |
resolution | string | "1K", "2K", "4K" (default: 1K) |
output_format | string | Output format for images |
enable_google_search | boolean | Enable real-time info grounding (weather, news, etc.) |
| Field | Type | Description |
|---|---|---|
images | array | The generated or edited images |
description | string | Text description or response from the model |
output_meta | object | Metadata about inputs/outputs for pricing |
Styles : photorealistic, illustration, watercolor, oil painting, digital art, anime, 3D render
Composition : close-up, wide shot, aerial view, macro, portrait, landscape
Lighting : natural light, studio lighting, golden hour, dramatic shadows, neon
Details : add specific details about textures, colors, mood, atmosphere
# 1. Generate sample input to see all options
infsh app sample google/gemini-3-1-flash-image-preview --save input.json
# 2. Edit the prompt
# 3. Run
infsh app run google/gemini-3-1-flash-image-preview --input input.json
from inferencesh import inference
client = inference()
# Basic generation
result = client.run({
"app": "google/gemini-3-1-flash-image-preview@0c7ma1ex",
"input": {
"prompt": "A banana in space, photorealistic"
}
})
print(result["output"])
# Stream live updates
for update in client.run({
"app": "google/gemini-3-1-flash-image-preview@0c7ma1ex",
"input": {
"prompt": "A futuristic cityscape at sunset"
}
}, stream=True):
if update.get("progress"):
print(f"progress: {update['progress']}%")
if update.get("output"):
print(f"output: {update['output']}")
# Original Nano Banana (Gemini 3 Pro Image, Gemini 2.5 Flash Image)
npx skills add inference-sh/skills@nano-banana
# Full platform skill (all 150+ apps)
npx skills add inference-sh/skills@agent-tools
# All image generation models
npx skills add inference-sh/skills@ai-image-generation
Browse all image apps: infsh app list --category image
Weekly Installs
25.2K
Repository
GitHub Stars
125
First Seen
2 days ago
Security Audits
Installed on
claude-code20.1K
gemini-cli17.5K
codex17.5K
opencode17.5K
github-copilot17.5K
amp17.5K
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装