UniImage — 统一多平台 AI 图片生成
Multi-platform AI image generation skill for OpenClaw. Supports switching between providers via a dropdown model selector on the paint page.
Supported Platforms
| Model ID | Display Name | Provider | Description |
|---|
| INLINECODE0 | Seedream 5.0 | Volcengine Ark | 多角色超强一致性,中文处理能力极强 |
| INLINECODE1 |
Qwen Image | Alibaba DashScope | 单图一致性强,适合中文相关的多图处理场景 |
|
gemini-3-pro-image-preview | 香蕉 Pro | Google Gemini | 最强修图模型,适合电商和专业设计 |
|
gemini-3.1-flash-image-preview | 香蕉 V2 | Google Gemini | 最新香蕉模型,极致速度和超高性价比 |
Architecture
CODEBLOCK0
Files
- -
uni-image-proxy.js — HTTP proxy server with multi-provider routing - INLINECODE5 — Renderer injection script (fetch wrapper + model selector UI)
- INLINECODE6 — This skill manifest
Configuration
Configure API keys via the 🔑 button on the paint page, or set environment variables:
CODEBLOCK1
Keys are stored in ~/.openclaw-dev/uni-image-config.json.
Usage
- 1. Navigate to the 绘画助手 (Paint) page
- Select a model from the 模型平台 dropdown
- Click 🔑 to configure the API key for the selected provider
- Enter a prompt and generate images
Run (CLI)
CODEBLOCK2
UniImage — 统一多平台 AI 图片生成
面向 OpenClaw 的多平台 AI 图片生成技能。支持通过绘画页面上的下拉模型选择器切换提供商。
支持的平台
| 模型 ID | 显示名称 | 提供商 | 描述 |
|---|
| doubao-seedream-5-0-260128 | Seedream 5.0 | 火山引擎方舟 | 多角色超强一致性,中文处理能力极强 |
| qwen-image-plus |
通义千问图像 | 阿里云百炼 | 单图一致性强,适合中文相关的多图处理场景 |
| gemini-3-pro-image-preview | 香蕉 Pro | Google Gemini | 最强修图模型,适合电商和专业设计 |
| gemini-3.1-flash-image-preview | 香蕉 V2 | Google Gemini | 最新香蕉模型,极致速度和超高性价比 |
架构
渲染器(绘画页面)
↓ fetch(/v1/images/generations)
↓ [fetch 拦截器重写 URL + 模型]
UniImage 代理(端口 18800)
├── 火山引擎方舟 API(Seedream)
├── 阿里云百炼 API(通义千问图像,异步轮询)
└── Google Gemini API(纳米香蕉)
文件
- - uni-image-proxy.js — 支持多提供商路由的 HTTP 代理服务器
- uni-image-inject.js — 渲染器注入脚本(fetch 包装器 + 模型选择器 UI)
- SKILL.md — 技能清单文件
配置
通过绘画页面上的 🔑 按钮配置 API 密钥,或设置环境变量:
bash
火山引擎方舟(Seedream)
ARK
APIKEY=your-volcengine-key
阿里云百炼(通义千问图像)
DASHSCOPE
IMAGEKEY=your-dashscope-key
Google AI(纳米香蕉 / Gemini)
GOOGLE
APIKEY=your-google-api-key
密钥存储在 ~/.openclaw-dev/uni-image-config.json 文件中。
使用方法
- 1. 导航到绘画助手页面
- 从模型平台下拉菜单中选择一个模型
- 点击 🔑 配置所选提供商的 API 密钥
- 输入提示词并生成图片
运行(命令行)
bash
Seedream(默认)
node {baseDir}/../../uni-image-proxy.js &
curl -X POST http://127.0.0.1:18800/v1/images/generations \
-H Content-Type: application/json \
-d {model:doubao-seedream-5-0-260128,prompt:一只可爱的猫,size:1024x1024}
通义千问图像
curl -X POST http://127.0.0.1:18800/v1/images/generations \
-H Content-Type: application/json \
-d {model:qwen-image-plus,prompt:一只可爱的猫,size:1024*1024}
Google Gemini(纳米香蕉)
curl -X POST http://127.0.0.1:18800/v1/images/generations \
-H Content-Type: application/json \
-d {model:gemini-3.1-flash-image-preview,prompt:一只可爱的猫}