← 返回 Skills 市场
rfdiosuao

Kie AI Nano Banana Pro 生图

作者 rfdiosuao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
94
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kie-nano-banana-pro
功能描述
通过 Kie AI API 调用 Google Nano Banana Pro 模型,生成高质量多比例多分辨率图像支持参考图和回调。
使用说明 (SKILL.md)

Kie AI Nano Banana Pro 生图 Skill

版本:v1.0 | 作者:Spark | 创建时间:2026-04-03


🎯 Skill 定位

Kie AI Nano Banana Pro 官方生图助手 —— 专精于 Google Nano Banana Pro 模型的图像生成系统

核心使命: 通过 Kie AI API 调用 Google Nano Banana Pro 模型,生成高质量、多比例、多分辨率的专业图像

官方文档: https://docs.kie.ai/market/google/pro-image-to-image


⚡ 触发规则

主触发词

  • Kie AI / kie / Nano Banana / nano banana
  • Google 生图 / Google 图像生成
  • Pro Image / pro image to image
  • 生图 API / 图像生成 API

场景触发

  • "帮我生成一个图片..."
  • "用 Kie AI 生成..."
  • "Nano Banana 生图..."
  • "Google 图像模型..."

不触发场景

  • 其他平台生图(Midjourney/SD/NanobananaPro 独立 Skill)
  • 非图像生成需求

🏗️ 核心工作流

Step 1: 需求接收与解析

必填信息提取:

  1. 提示词(prompt) - 图像内容描述(最长 10000 字符)
  2. 画幅比例(aspect_ratio) - 1:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9 / auto
  3. 分辨率(resolution) - 1K / 2K / 4K
  4. 输出格式(output_format) - png / jpg

选填信息:

  • 参考图(image_input) - 最多 8 张图片 URL
  • 回调地址(callBackUrl) - 生产环境推荐

Step 2: API 调用准备

API 端点:

POST https://api.kie.ai/api/v1/jobs/createTask

请求头:

{
  "Authorization": "Bearer \x3CAPI_KEY>",
  "Content-Type": "application/json"
}

请求体:

{
  "model": "nano-banana-pro",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "图像描述...",
    "image_input": [],
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "output_format": "png"
  }
}

Step 3: 任务提交与状态查询

提交响应:

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_nano-banana-pro_1765178625768"
  }
}

状态查询:

  • 使用 taskId 查询任务状态
  • 或通过 callBackUrl 接收完成通知

Step 4: 结果交付

成功响应:

{
  "code": 200,
  "msg": "success",
  "data": {
    "status": "completed",
    "imageUrl": "https://...",
    "thumbnailUrl": "https://..."
  }
}

🎨 输出标准

标准输出结构

## 🎨 图像生成任务已提交

**任务 ID:** `task_nano-banana-pro_xxx`

**生成参数:**
- 提示词:[用户描述]
- 画幅比例:[比例]
- 分辨率:[分辨率]
- 输出格式:[格式]

**预计耗时:** 30-60 秒

**查询方式:**
1. 自动回调(如配置 callBackUrl)
2. 手动查询:`查询任务 task_xxx`

---

## 📋 提示词优化建议

[根据用户需求提供的优化建议]

🔧 API 集成规范

认证方式

Bearer Token 认证:

Authorization: Bearer YOUR_API_KEY

获取 API Key:

  1. 访问 https://kie.ai/api-key
  2. 创建新的 API Key
  3. 妥善保管,切勿泄露

错误处理

常见错误码:

错误码 说明 解决方案
200 成功 -
401 未授权 检查 API Key 是否正确
402 余额不足 充值账户
422 参数验证失败 检查参数格式
429 请求频率超限 等待后重试
500 服务器错误 联系技术支持
501 生成失败 检查提示词或重试

回调配置

回调 Payload:

{
  "taskId": "task_xxx",
  "status": "completed",
  "result": {
    "imageUrl": "https://...",
    "thumbnailUrl": "https://..."
  }
}

回调验证:


📝 使用示例

示例 1:基础图像生成

用户输入:

帮我生成一个香蕉英雄的漫画海报,1:1 比例

输出:

## 🎨 图像生成任务已提交

**任务 ID:** `task_nano-banana-pro_1765178625768`

**生成参数:**
- 提示词:Comic poster: cool banana hero in shades leaps from sci-fi pad
- 画幅比例:1:1
- 分辨率:1K
- 输出格式:png

**预计耗时:** 30-60 秒

**查询方式:**
- 手动查询:`查询任务 task_nano-banana-pro_1765178625768`

示例 2:多图参考生成

用户输入:

用这 3 张参考图生成新图像,16:9 宽屏,4K 分辨率

输出:

{
  "model": "nano-banana-pro",
  "input": {
    "prompt": "基于参考图生成...",
    "image_input": [
      "https://...",
      "https://...",
      "https://..."
    ],
    "aspect_ratio": "16:9",
    "resolution": "4K",
    "output_format": "png"
  }
}

示例 3:生产环境回调

用户输入:

批量生成产品图,回调到 https://api.myshop.com/callback

输出:

{
  "model": "nano-banana-pro",
  "callBackUrl": "https://api.myshop.com/api/callback",
  "input": {
    "prompt": "Product photography...",
    "aspect_ratio": "1:1",
    "resolution": "2K",
    "output_format": "png"
  }
}

🎯 提示词优化指南

基础结构

[主体描述] + [场景环境] + [风格美学] + [技术参数]

示例模板

漫画海报:

Comic poster: [角色] in [场景], [动作]. 
Six panels: 1) [场景 1], 2) [场景 2], 3) [场景 3]...
Footer shows [元素]. Tagline: [标语].

产品摄影:

Professional product photography: [产品], 
[背景], [光影], [构图].
Commercial quality, 8K, ultra detailed.

风景摄影:

Landscape photography: [场景], [时间], [天气].
[构图法则], [光影效果], [色彩方案].
8K, ultra HD, professional.

📊 参数详解

画幅比例 (aspect_ratio)

比例 适用场景 推荐平台
1:1 头像、产品主图 全平台
2:3 / 3:2 照片、印刷品 摄影
3:4 / 4:3 小红书、iPad 小红书
4:5 / 5:4 竖版海报 社交媒体
9:16 抖音、视频号 抖音/快手
16:9 B 站、YouTube 视频平台
21:9 电影宽屏 院线
auto 自动适配 通用

分辨率 (resolution)

分辨率 像素 适用场景
1K ~1024px 快速测试、社交媒体
2K ~2048px 正式输出、商业使用
4K ~4096px 高质量印刷、大幅海报

输出格式 (output_format)

格式 特点 适用场景
png 无损压缩、支持透明 产品图、图标、需要后期
jpg 有损压缩、文件小 照片、网页展示

🔗 相关链接


🚀 版本记录

版本 日期 更新内容
v1.0 2026-04-03 初始版本,Kie AI API 集成

Skill 开发完成 · 可直接发布到 ClawHub

安全使用建议
This skill appears to legitimately document how to call Kie AI's Nano Banana Pro API, but I recommend caution before installing or enabling it: - Credential mismatch: SKILL.md requires an Authorization: Bearer API_KEY for API calls, yet the skill metadata declares no required env var or primary credential. Ask the publisher how the API key will be provided and stored (skill config, secret manager, or env var) and avoid pasting keys into chat history. - Missing implementation files: package.json and skill.json point to src/index.ts, but no code files are included. Confirm whether the skill is intentionally instruction-only or if code is missing from the package/repository. - Callback/webhook handling: if you configure a callBackUrl, ensure you implement and verify webhook signatures as the docs suggest (do not accept unauthenticated callbacks). Test callbacks in a staging environment first. - Source verification: the skill's source is listed as unknown and homepage is absent. Verify the author identity, check the referenced GitHub repo for actual code, and prefer skills from known/trusted publishers. - Least privilege: if you decide to use it, provide the Kie AI API key with least privilege possible and rotate keys after testing. Monitor outbound requests from any agent using this skill. If the publisher can (1) confirm where/how API keys are supplied, (2) provide the referenced source code or confirm it is intentionally instruction-only, and (3) publish a verified homepage or repo, the remaining concerns would be resolved.
功能分析
Type: OpenClaw Skill Name: kie-nano-banana-pro Version: 1.0.0 The skill bundle is a standard API integration for an image generation service called 'Kie AI'. The documentation in SKILL.md and README.md provides clear instructions for an AI agent to interface with the https://api.kie.ai endpoint, including authentication via Bearer tokens and handling of various image parameters (aspect ratio, resolution). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the instructions are strictly aligned with the stated purpose of generating images using the 'Nano Banana Pro' model.
能力评估
Purpose & Capability
Name/description claim to call Kie AI's Nano Banana Pro model and SKILL.md documents exact API endpoints, request/response shapes, callbacks and prompt parameters — this is coherent with the stated purpose.
Instruction Scope
SKILL.md contains only API usage and prompt guidance and does not instruct reading unrelated files or secrets. It does, however, assume the use of an Authorization: Bearer <API_KEY> header (and callback URLs) even though the skill metadata does not declare any required credential — a scope/expectation mismatch.
Install Mechanism
No install spec and no code files will be written/executed by an installer (instruction-only). This is lower risk than a skill that downloads and executes archives.
Credentials
The runtime docs require a Bearer API key for Kie AI calls, but skill metadata lists no required env vars or primary credential. This mismatch means the skill expects sensitive credentials but doesn't declare them explicitly — unclear credential provisioning and storage behavior should be clarified before use.
Persistence & Privilege
The skill is not marked always:true and does not request special system paths or persistent privileges. Nothing indicates it will modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kie-nano-banana-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kie-nano-banana-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Kie AI Nano Banana Pro 生图 Skill v1.0.0 - 初始版本发布,集成 Kie AI 官方 API,支持调用 Google Nano Banana Pro 模型生成多比例多分辨率专业图像 - 提供标准参数接入与任务流程(需求解析、API 提交、状态查询、结果交付) - 原生支持多图参考、自定义回调、多种输出格式 - 明确触发规则、错误码处理与最佳实践示例 - 附带提示词优化模板和参数详解,便于高效使用
元数据
Slug kie-nano-banana-pro
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Kie AI Nano Banana Pro 生图 是什么?

通过 Kie AI API 调用 Google Nano Banana Pro 模型,生成高质量多比例多分辨率图像支持参考图和回调。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 Kie AI Nano Banana Pro 生图?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kie-nano-banana-pro」即可一键安装,无需额外配置。

Kie AI Nano Banana Pro 生图 是免费的吗?

是的,Kie AI Nano Banana Pro 生图 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kie AI Nano Banana Pro 生图 支持哪些平台?

Kie AI Nano Banana Pro 生图 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kie AI Nano Banana Pro 生图?

由 rfdiosuao(@rfdiosuao)开发并维护,当前版本 v1.0.0。

💬 留言讨论