RunningHub AI Platform 直接调用 - 文生图、图生图、视频生成等,支持智能存储判断和链式工作流
直接调用 RunningHub API,支持生图、生视频、音频处理等 AI 任务。
与 RHMCP 的关系:
bash
export RUNNINGHUBAPIKEY=your-api-key
export RUNNINGHUBBASEURL=www.runninghub.cn # 或 www.runninghub.ai
编辑 ~/.openclaw/openclaw.json:
json5
{
skills: {
entries: {
runninghub-api: {
enabled: true,
env: {
RUNNINGHUBAPIKEY: your-api-key,
RUNNINGHUBBASEURL: www.runninghub.cn,
},
config: {
defaultStorage: auto, // auto/none/cloud
defaultCloudProvider: auto, // auto/bdpan/gog
}
}
}
}
}
| 模式 | 说明 | 触发条件 |
|---|---|---|
| none | 返回 RH 服务器 URL | 默认、直接交付、链式流程 |
| cloud |
javascript
if (storage === auto) {
if (链式流程 || 直接交付) → none
else if (要求保存 || 需要确认) → cloud
else → none
}
if (cloudProvider === auto) {
if (提到 Google/Sheet) → gog
else → bdpan
}
列出可用的 RunningHub APP。
javascript
rhlistapps({ refresh: false })
// 返回: { apps: [{ alias, appId, category, description }] }
执行 APP 任务。
javascript
rh_execute({
alias: string, // APP 别名
params: Record
storage?: none | cloud | auto,
cloudProvider?: bdpan | gog | auto,
projectName?: string, // 项目名称
mode?: sync | async, // 同步/异步
timeout?: number // 超时时间(秒)
})
// 返回: {
// taskId: string,
// status: SUCCESS | PENDING,
// outputs: [{
// originalUrl: string, // RH 服务器 URL
// cloudUrl?: string // 网盘 URL(cloud 模式)
// }]
// }
查询任务状态(用于异步模式)。
javascript
rhquerytask({ taskId: string })
// 返回: { taskId, status, outputs?, progress? }
用户: 生成一只可爱的猫咪
Agent 调用:
rh_execute({
alias: qwen-text-to-image,
params: { text: 一只可爱的猫咪,卡通风格 },
storage: none
})
// 返回 RH 服务器 URL
用户: 生成一张风景图保存到网盘
Agent 调用:
rh_execute({
alias: qwen-text-to-image,
params: { text: 美丽的风景 },
storage: cloud,
cloudProvider: bdpan,
projectName: landscape
})
// 返回 bdpan://runninghub/landscape/...
用户: 生成主角图片,然后用它生成视频
步骤1: 生成图片(storage: none)
const imageResult = await rh_execute({
alias: qwen-text-to-image,
params: { text: 主角形象 },
storage: none
});
const imageUrl = imageResult.outputs[0].originalUrl;
步骤2: 图生视频(使用上一步 URL)
rh_execute({
alias: image-to-video,
params: { image: imageUrl, prompt: 奔跑动画 },
storage: cloud
});
内置共享测试 APP(来自 RHMCP 官方):
| 别名 | APP ID | 类型 | 说明 |
|---|---|---|---|
| qwen-text-to-image | 2037760725296357377 | image | Qwen 文生图 |
| qwen-image-to-image |
| 问题 | 原因 | 解决 |
|---|---|---|
| 提交任务失败 | APP 参数不匹配 | 检查 shared-apps.json 中的 inputs 配置 |
| bdpan 上传失败 |
编辑 references/shared-apps.json:
json
{
apps: {
my-new-app: {
appId: your-app-id,
alias: my-new-app,
category: video,
description: 描述,
inputs: {
param1: { nodeId: 1, fieldName: field1 }
}
}
}
}
MIT
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 rhskill-1775943844 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 rhskill-1775943844 技能
skillhub install rhskill-1775943844
文件大小: 13.49 KB | 发布时间: 2026-4-12 11:15