技能:OpenClaw接入vapi的nao-banana、gpt-image生图
最近openClaw爆火,我们也积极跟进做好了生图的skill,支持多种模型和分辨率。配置完成后,你可以直接用自然语言让 AI 帮你生成图片。
第一步:获取 API Key
前往https://api.morphogen.top注册账号并前往-令牌管理页面-获取你的APIKEY,格式类似sk-xxxxxxxx,我们后面需要用到。
第二步:配置环境变量
在您的~/.openclaw 文件夹根目录的.env文件(没有可以创建)中添加两个环境变量
# VAPI
VAPI_BASE_URL=https://api.morphogen.top/v1
VAPI_API_KEY=sk-xxxxxxVAPI_BASE_URL 可选项配置 VAPI_API_KEY 必填,填写您从https://api.morphogen.top获取的apikey。
配置环境变量是让您的apikey更安全,我们要养成敏感key存到环境变量的好习惯。
第三步:安装skill
在安装了openclaw的设备上运行插件安装终端命令:
sh
clawhub install vapi-image-gen
# 或
clawhub install popdo/vapi-image-gen技能安装完成后重启clawhub:
sh
openclaw gateway restart💬 示例提示词
Once configured, just tell your AI assistant what you want:
配置好后,直接用自然语言告诉 AI 你想要什么:
🖼️ 1. Basic Generation / 基础生图
| English | 中文 |
|---|---|
| Draw a sunset over the ocean | 画一张海上日落的风景 |
| Generate a cyberpunk city at night | 生成一张赛博朋克风格的城市夜景 |
| Create a cute cartoon cat illustration | 画一只可爱的卡通猫咪插画 |
📐 2. With Aspect Ratio / 指定比例
| English | 中文 |
|---|---|
| Generate a 16:9 wallpaper of a starry sky | 生成一张 16:9 的星空壁纸 |
| Draw a 2:3 portrait of a fantasy warrior | 画一张 2:3 竖版奇幻战士肖像 |
| Create a 1:1 square avatar of a fox in a suit | 画一个穿西装的狐狸头像,1:1 方形 |
💾 3. Save to Local / 保存到本地
| English | 中文 |
|---|---|
| Generate a forest scene and save it | 生成一张森林场景的图片,保存到本地 |
| Draw 3 variations of a mountain landscape and save | 画 3 张山景图,保存到本地 |
🔍 4. High Resolution / 高清生图
| English | 中文 |
|---|---|
| Generate a high-res 4K illustration of a dragon | 用高清 4K 模型画一条龙的插画 |
| Create a 2K detailed city map illustration | 生成一张 2K 高清城市地图插画 |
🤖 支持的模型
| Model | Quality | Output |
|---|---|---|
nano-banana | Standard | URL |
nano-banana-pro ⭐ | Better — Default | URL |
nano-banana-2 | Gen 2 | URL |
nano-banana-pro-2k | High-res 2K | URL |
nano-banana-pro-4k | Ultra 4K | URL |
gpt-image-1 | High quality | Saved file |
gpt-image-1.5 | Higher quality | Saved file |
📁 图片保存说明
| Flag | Behavior |
|---|---|
| (default) | Returns image URL only, no local file |
--save | Saves to ~/.openclaw/media/ |
--oss | Saves to ~/.openclaw/oss/ |
gpt-image models | Always saved (API returns base64 only) |