Install
openclaw skills install ace-banana2Generate and edit images using the AceData Nano Banana API. Supports models like nano-banana-2, custom aspect ratios (default 16:9), and resolutions (default...
openclaw skills install ace-banana2English | 中文
English:
Ace Banana2 is a powerful image generation and editing skill that leverages the AceData Nano Banana API. It provides a seamless workflow for creating high-quality images from text prompts or editing existing images with AI-powered transformations. The skill supports multiple models, customizable parameters, and automatic saving of generated images to your desktop.
English:
The Nano Banana API offers several cutting‑edge image generation models:
All models support resolutions up to 4K and aspect ratios such as 16:9, 1:1, 4:3, etc.
中文:
Nano Banana API 提供多种先进的图像生成模型:
所有模型支持高达 4K 的分辨率和 16:9、9:16、1:1、4:3、3:4 等宽高比。
English:
To use this skill, you need an AceData API key (Bearer Token). Follow these steps:
中文:
使用本技能需要 AceData API 密钥(Bearer Token)。请按以下步骤操作:
English:
Ensure you have Python 3.7+ installed. Then install required packages:
pip install requests pillow
中文:
确保已安装 Python 3.7+,然后安装所需包:
pip install requests pillow
English:
Run the script once, and it will prompt you to enter your Bearer Token. The token will be saved in a .env file inside the skill directory for future use.
中文:
运行脚本一次,它将提示您输入 Bearer Token。令牌将保存在技能目录的 .env 文件中,供以后使用。
English:
Navigate to the skill directory and execute:
python scripts/generate_images.py
You will be prompted for a text description (prompt) or can provide command‑line arguments.
中文:
进入技能目录并执行:
python scripts/generate_images.py
系统将提示您输入文本描述(提示词),或者您可以直接提供命令行参数。
English:
generate) and image‑to‑image (edit) workflows.中文:
generate)和图生图(edit)工作流。| Parameter / 参数 | Default / 默认值 | Description / 说明 |
|---|---|---|
--prompt | (required for generate) | Text description of the desired image / 期望图像的文本描述 |
--count | 1 | Number of images to generate / 要生成的图像数量 |
--model | nano-banana-2 | Model to use (nano-banana-2, nano-banana-pro, nano-banana) / 使用的模型 |
--resolution | 2K | Output resolution (2K, 4K, etc.) / 输出分辨率 |
--aspect_ratio | 16:9 | Aspect ratio (16:9, 1:1, 4:3, etc.) / 宽高比 |
--image | (optional) | Local image paths or URLs for edit mode (max 4) / 编辑模式的本地图像路径或 URL(最多 4 个) |
--api_key | (optional) | Bearer Token for AceData API / AceData API 的 Bearer Token |
English:
python scripts/generate_images.py --prompt "a serene mountain landscape at sunset" --count 2 --resolution "4K"
中文:
python scripts/generate_images.py --prompt "日落时宁静的山景" --count 2 --resolution "4K"
English:
python scripts/generate_images.py --image "input.jpg" --prompt "make it look like a watercolor painting"
中文:
python scripts/generate_images.py --image "input.jpg" --prompt "让它看起来像水彩画"
English:
python scripts/generate_images.py --prompt "cyberpunk city street" --count 4 --aspect_ratio "1:1"
中文:
python scripts/generate_images.py --prompt "赛博朋克城市街道" --count 4 --aspect_ratio "1:1"
English:
中文: