搜索

PythonReactSEOPDF
OpenClaw

Nano Banana Pro 图像生成

使用 Nano Banana Pro 模型生成或编辑图像。当用户想要文生图、图像编辑,或提到 nano banana、Google 图像生成时使用此 skill。

hexiaochun0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install hexiaochun/sutui-nano-banana-pro

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Nano Banana Pro 图像生成

Nano Banana Pro (又名 Nano Banana 2) 是 Google 最新的高质量图像生成和编辑模型,支持写实风格和文字渲染。

可用模型

模型 ID 功能 说明
fal-ai/nano-banana-pro 文生图/图像编辑 无图片时为文生图,提供图片时自动切换为编辑模式

积分消耗:60 积分/张

工作流

1. 调用 submit_task

使用 MCP 工具 submit_task 提交任务:

文生图示例:

{
  "model_id": "fal-ai/nano-banana-pro",
  "parameters": {
    "prompt": "A majestic lion standing on a cliff at sunset, photorealistic",
    "aspect_ratio": "16:9",
    "resolution": "2K"
  }
}

图像编辑示例:

{
  "model_id": "fal-ai/nano-banana-pro",
  "parameters": {
    "prompt": "make a photo of the man driving the car down the california coastline",
    "image_urls": [
      "https://example.com/man.png",
      "https://example.com/car.png"
    ],
    "aspect_ratio": "auto"
  }
}
参数说明
参数 类型 必填 默认值 说明
prompt string 是 - 图像生成/编辑提示词
image_urls array 否 - 输入图片 URL 列表(提供此参数时自动切换为编辑模式)
num_images integer 否 1 生成图像数量(1-4)
aspect_ratio string 否 "1:1" 宽高比:21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16(编辑模式额外支持 "auto")
resolution string 否 "1K" 分辨率:1K, 2K, 4K
output_format string 否 "png" 输出格式:jpeg, png, webp
seed integer 否 - 随机种子,用于复现结果
enable_web_search boolean 否 false 启用网页搜索以获取最新信息辅助生成

查询任务状态

提交任务后会返回 task_id,使用 get_task 查询结果:

{
  "task_id": "返回的任务ID"
}

任务状态:

  • pending - 排队中
  • processing - 处理中
  • completed - 完成,结果在 result 中
  • failed - 失败,查看 error 字段

完整示例

示例 1:文生图

用户请求:生成一张黑色拉布拉多犬在泳池游泳的照片

执行步骤:

  1. 调用 submit_task:

来源信息

Source
github
Repository
openclaw/skills
Path
skills/hexiaochun/sutui-nano-banana-pro
Version
—
Commit
0801e2b3cfea82456d22736030e81e17421c356e
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Nano Banana Pro 图像生成

Nano Banana Pro (又名 Nano Banana 2) 是 Google 最新的高质量图像生成和编辑模型,支持写实风格和文字渲染。

## 可用模型

| 模型 ID | 功能 | 说明 |
|--------|------|------|
| `fal-ai/nano-banana-pro` | 文生图/图像编辑 | 无图片时为文生图,提供图片时自动切换为编辑模式 |

**积分消耗**:60 积分/张

## 工作流

### 1. 调用 submit_task

使用 MCP 工具 `submit_task` 提交任务:

**文生图示例**:

```json
{
  "model_id": "fal-ai/nano-banana-pro",
  "parameters": {
    "prompt": "A majestic lion standing on a cliff at sunset, photorealistic",
    "aspect_ratio": "16:9",
    "resolution": "2K"
  }
}
```

**图像编辑示例**:

```json
{
  "model_id": "fal-ai/nano-banana-pro",
  "parameters": {
    "prompt": "make a photo of the man driving the car down the california coastline",
    "image_urls": [
      "https://example.com/man.png",
      "https://example.com/car.png"
    ],
    "aspect_ratio": "auto"
  }
}
```

### 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
|-----|------|-----|-------|------|
| prompt | string | **是** | - | 图像生成/编辑提示词 |
| image_urls | array | 否 | - | 输入图片 URL 列表(提供此参数时自动切换为编辑模式) |
| num_images | integer | 否 | 1 | 生成图像数量(1-4) |
| aspect_ratio | string | 否 | "1:1" | 宽高比:21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16(编辑模式额外支持 "auto") |
| resolution | string | 否 | "1K" | 分辨率:1K, 2K, 4K |
| output_format | string | 否 | "png" | 输出格式:jpeg, png, webp |
| seed | integer | 否 | - | 随机种子,用于复现结果 |
| enable_web_search | boolean | 否 | false | 启用网页搜索以获取最新信息辅助生成 |

## 查询任务状态

提交任务后会返回 `task_id`,使用 `get_task` 查询结果:

```json
{
  "task_id": "返回的任务ID"
}
```

任务状态:
- `pending` - 排队中
- `processing` - 处理中
- `completed` - 完成,结果在 `result` 中
- `failed` - 失败,查看 `error` 字段

## 完整示例

### 示例 1:文生图

**用户请求**:生成一张黑色拉布拉多犬在泳池游泳的照片

**执行步骤**:

1. 调用 `submit_task`:

```json...

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.