← 返回 Skills 市场
bizyair-banana2
作者
Kevin-Chen2026
· GitHub ↗
· v1.0.0
· MIT-0
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bizyair-banana2
功能描述
使用 BizyAir API 和 Nano Banana 2 模型生成图片。支持参考图、表情包生成。按量付费,无需本地 GPU。
使用说明 (SKILL.md)
BizyAir Banana 2 图像生成
直接调用 BizyAir API,使用 Nano Banana 2 模型生成高质量图片。
前置要求
1. 注册 BizyAir 账号
- 访问 https://www.bizyair.cn 注册账号
2. 获取 API Key
- 登录后进入控制台复制 API Key
3. 配置 API Key(二选一)
方式 A:环境变量
export BIZYAIR_API_KEY="your_api_key_here"
方式 B:创建配置文件(推荐)
在技能目录创建 .env 文件:
# 技能目录/.env
BIZYAIR_API_KEY=your_api_key_here
配置文件位置优先级:
- 技能目录下的
.env(推荐,通用) ~/.config/bizyair-banana2/.env~/.bizyair-banana2/.env~/.baoyu-skills/bizyair-banana2/.env(兼容旧版本)
使用方法
基础用法 - 文生图
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
--prompt "一只可爱的猫咪" \
--image cat.png
使用参考图(图生图)
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
--prompt "近景构图,自信展示自我,姿态酷飒随性" \
--image output.png \
--ref input.png
多张参考图
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
--prompt "图 1 的人穿着图 2 的衣服,在图 3 的场景中" \
--image output.png \
--ref person.png \
--ref clothes.png \
--ref background.png
指定宽高比
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
--prompt "全身照" \
--image fullbody.png \
--ar 9:16
表情包生成(Web App 47091)
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
--prompt "搞笑表情" \
--image emoji.png \
--ref portrait.jpg \
--web-app-id 47091
命令行选项
| 选项 | 说明 | 默认值 |
|---|---|---|
-p, --prompt |
提示词(必需) | - |
-i, --image |
输出图片路径(必需) | - |
-r, --ref |
参考图片路径(可多个) | - |
--web-app-id |
Web App ID | 47091 |
--ar |
宽高比:1:1, 16:9, 9:16, 4:3, 3:4 |
9:16 |
--mode |
模式:third-party, custom |
third-party |
--resolution |
分辨率:auto, 1k, 2k |
1k |
--timeout |
超时时间(秒) | 120 |
--json |
JSON 格式输出 | - |
环境变量
| 变量 | 说明 |
|---|---|
BIZYAIR_API_KEY |
BizyAir API Key(必需) |
BIZYAIR_BASE_URL |
API 基础 URL(可选) |
计费说明
- 按量付费,生成成功才扣费
- 具体价格:https://docs.bizyair.cn/pricing/introduce.html
API 参考
- 任务提交:
POST /w/v1/webapp/task/openapi/create - 状态查询:
GET /w/v1/webapp/task/openapi/detail?requestId={id} - 结果获取:
GET /w/v1/webapp/task/openapi/outputs?requestId={id} - 文件上传:
GET /x/v1/upload/token
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
401 Unauthorized |
API Key 无效 | 检查 BIZYAIR_API_KEY 配置 |
402 Payment Required |
余额不足 | 充值:https://www.bizyair.cn |
429 Too Many Requests |
请求限流 | 稍后重试 |
500 Internal Error |
服务端错误 | 检查任务状态,重试 |
示例工作流
示例 1:生成头像
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
-p "可爱的卡通女孩头像,粉色头发,大眼睛" \
--image avatar.png \
--ar 1:1
示例 2:生成表情包(使用参考图)
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
-p "搞笑表情,九宫格" \
--image meme.png \
--ref portrait.jpg \
--web-app-id 47091
示例 3:多参考图融合
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
-p "图 1 的人穿着图 2 的衣服,在图 3 的场景中" \
--image fusion.png \
--ref person.png \
--ref clothes.png \
--ref background.png \
--ar 9:16
示例 4:批量生成
for i in {1..5}; do
python3 ${SKILL_DIR}/scripts/bizyair_gen.py \
-p "赛博朋克风格城市夜景" \
--image cyber_$i.png \
--ar 16:9
done
参考资料
故障排查
1. 检查 API Key
# 方式 1:检查技能目录的.env
cat /path/to/skills/bizyair-banana2/.env
# 方式 2:检查用户目录配置
cat ~/.config/bizyair-banana2/.env
cat ~/.bizyair-banana2/.env
2. 运行测试
cd /home/admin/.openclaw/workspace/skills/bizyair-banana2
bash test.sh
3. 常见错误
| 错误 | 原因 | 解决方案 |
|---|---|---|
401 Unauthorized |
API Key 无效 | 检查配置 |
402 Payment Required |
余额不足 | 充值 |
429 Too Many Requests |
请求限流 | 稍后重试 |
| 任务超时 | 生成耗时过长 | 增加 --timeout |
限制
- 图片生成需通过内容审核
- 参考图大小不超过 10MB
- 支持格式:PNG, JPG, WEBP
安全使用建议
This skill's code and docs implement BizyAir image generation and will require your BizyAir API key, but the registry metadata failed to declare that credential — treat that as a red flag. Before installing: (1) Confirm you trust BizyAir and want to give this skill your BIZYAIR_API_KEY. (2) Note the Python script searches for .env files in several user locations (skill dir, ~/.config, ~/.bizyair-banana2, ~/.baoyu-skills) — ensure those files do not contain other unrelated secrets. (3) The package.json/runtime entries reference bun/TypeScript even though the shipped runtime is Python; this mismatch is likely harmless but suggests the package metadata wasn't carefully maintained. (4) Run the skill in a controlled environment first (or inspect scripts yourself) and ensure the 'requests' Python dependency is installed. (5) If you need stronger assurance, ask the author to update registry metadata to declare BIZYAIR_API_KEY as required and to confirm the only external endpoints used are BizyAir endpoints (api.bizyair.cn and the returned OSS endpoints).
功能分析
Type: OpenClaw Skill
Name: bizyair-banana2
Version: 1.0.0
The skill provides image generation capabilities by interfacing with the BizyAir API. The core logic in `scripts/bizyair_gen.py` handles API authentication, local file uploads to BizyAir's storage, and task management for the Nano Banana 2 model. While the script accesses environment variables and specific configuration files for API keys, its behavior is entirely consistent with the documented purpose and lacks any indicators of data exfiltration, malicious execution, or prompt injection.
能力标签
能力评估
Purpose & Capability
The code and SKILL.md both implement an image-generation client for BizyAir (Nano Banana 2) which matches the skill name/description. However the registry metadata declares no required environment variables or primary credential while both the documentation and the Python script require BIZYAIR_API_KEY — this is an inconsistency.
Instruction Scope
Runtime instructions focus on configuring the BizyAir API key, uploading reference images, submitting tasks, polling status, and downloading outputs. The SKILL.md and scripts only reference expected configuration files and paths for the API key (skill .env, ~/.config, ~/.bizyair‑banana2, ~/.baoyu-skills). They do not instruct unrelated file reads or exfiltration beyond BizyAir endpoints.
Install Mechanism
There is no install spec (instruction-only plus included scripts). That lowers install risk. The Python script depends on requests but no dependency installation is declared; runtime may fail if required Python packages are missing, but there is no suspicious external download or archive extraction.
Credentials
The skill legitimately needs a BIZYAIR_API_KEY, and the code looks for it in env or multiple .env locations. However the registry metadata does not declare this required env var (declares none). The script will read .env files in several home locations (including ~/.baoyu-skills), which is reasonable to locate the API key but increases the chance the script will read user-level config files — the skill should have declared the API key requirement explicitly in metadata.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It writes only output images to user-specified paths and may create directories for outputs; no elevated persistence or cross-skill modification observed.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bizyair-banana2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/bizyair-banana2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
使用 BizyAir API 和 Nano Banana 2 模型生成高质量图片。支持参考图、表情包生成。按量付费。
- **1K 分辨率**:0.05¥/张
- **2K/4K 分辨率**:0.08¥/张
- **按量付费**:生成成功才扣费
元数据
常见问题
bizyair-banana2 是什么?
使用 BizyAir API 和 Nano Banana 2 模型生成图片。支持参考图、表情包生成。按量付费,无需本地 GPU。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 bizyair-banana2?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bizyair-banana2」即可一键安装,无需额外配置。
bizyair-banana2 是免费的吗?
是的,bizyair-banana2 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
bizyair-banana2 支持哪些平台?
bizyair-banana2 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 bizyair-banana2?
由 Kevin-Chen2026(@kevin-chen2026)开发并维护,当前版本 v1.0.0。
推荐 Skills