返回顶部
r

runpod-mediaRunPod媒体生成

Generate images from text, edit images with text instructions, animate images to video, and generate video from text — all via RunPod public AI endpoints. Use when the user asks to generate/create/make an image or video, edit a photo, animate an image, or produce AI media. Requires a RunPod API key.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.2
安全检测
已通过
325
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

runpod-media

RunPod 媒体技能

使用 RunPod 公共端点生成 AI 图像和视频。所有输出均保存至 ~/runpod-media/。

API 密钥

需要一个密钥——添加至 ~/.openclaw/secrets.json:

密钥路径用途获取地址
/runpod/apiKey调用 RunPod 端点runpod.io/console/user/settings

本地图像在上传到 RunPod 端点之前,会先以预签名 URL(有效期 1 分钟)的形式上传至 Cloudflare R2。R2 凭证从 secrets.json 中的 /cloudflare/r2 读取——已配置 ✅

imgbb 已不再使用。所有本地文件上传均由 R2 预签名 URL 替代。

R2 清理: uploads/ 中的对象会在 1 天 后通过 openclaw 存储桶的生命周期规则自动删除。预签名 URL 在 1 分钟后过期(无法访问),对象会在 24 小时内清理完毕。

密钥按以下顺序解析:

  1. 1. OpenClaw secrets.json — ~/.openclaw/secrets.json ✅(已配置)
  2. 环境变量 — RUNPODAPIKEY

用户提问方式(自然语言示例)

用户永远不会输入 CLI 命令——将其自然语言请求转换为正确的脚本调用。

生成图像:

  • - 生成一张霓虹东京武士猫的图像 → generateimage --prompt ...
  • 给我做一张 16:9 的日落暴风雨海洋图像 → generateimage --prompt ... --aspect-ratio 16:9
  • 使用 Nano Banana 创建一张图像——未来城市 → call_endpoint --endpoint google-nano-banana-2-edit --prompt ...

编辑图像:

  • - 编辑这张图像——添加下雪效果 → editimage --images <文件> --prompt 添加下雪效果
  • 使用 Qwen 编辑这张照片,让它看起来像一幅画 → callendpoint --endpoint qwen-image-edit --image <文件> --prompt 让它看起来像一幅画

动画转视频:

  • - 让这张图像动起来——慢速平移镜头 → imagetovideo --image <文件> --prompt 慢速平移镜头
  • 用 Kling 把这个做成视频 → imagetovideo --image <文件> --model kling --prompt ...
  • 用 Sora 2 把这个变成 10 秒的片段 → call_endpoint --endpoint sora-2-pro-i2v --image <文件> --prompt ... --duration 10

文本转视频:

  • - 生成一段狼对月嚎叫的视频 → texttovideo --prompt ...

列出可用模型:

  • - 你有什么图像/视频模型?
  • 列出可用的端点
  • 显示可用的 RunPod 模型

→ 运行 list_endpoints 并用通俗语言向用户总结输出结果

添加新端点:

  • - 添加这个 RunPod 端点:https://console.runpod.io/hub/playground/voice/kokoro-tts
  • 探测并添加这些端点:kokoro-tts, flux-kontext-pro

→ 运行 discover_endpoints add --candidates


能力与成本


任务命令成本时间
文本 → 图像generateimage~$0.005/张3–8秒
编辑图像
editimage | ~$0.005/张 | 5–15秒 |
| 图像 → 视频 | imagetovideo | $0.03–$0.90/片段 | 30–120秒 |
| 文本 → 视频 | texttovideo | $0.04–$1.22/片段 | 30–120秒 |
| 任意端点 | call_endpoint | 视情况而定 | 视情况而定 |

内置命令使用默认端点。如需 更多模型(Nano Banana Pro、FLUX、Sora 2、Kling、TTS 等),请使用 call_endpoint 配合任意 RunPod 公共端点 ID。

端点注册表

所有已知的公共端点位于 scripts/endpoints.json。列出它们:

bash
$SKILLDIR/run.sh listendpoints

调用任意端点

bash
$SKILLDIR/run.sh callendpoint \
--endpoint \
[--prompt 文本] \
[--image 路径或URL] \
[--audio 路径或URL] \
[--duration 5] \
[--aspect-ratio 16:9] \
[--input {key: value}] # 完整 JSON 覆盖

示例:

bash

Nano Banana Pro 图像生成


$SKILLDIR/run.sh callendpoint --endpoint nano-banana-pro --prompt 太空中的金毛犬

Nano Banana Pro 图像编辑

$SKILLDIR/run.sh callendpoint --endpoint nano-banana-pro --prompt 变成夜晚 --image photo.jpg

Sora 2 Pro 图像转视频

$SKILLDIR/run.sh callendpoint --endpoint sora-2-pro-i2v --image photo.jpg --prompt 镜头缓慢拉远 --duration 5

Kokoro TTS

$SKILLDIR/run.sh callendpoint --endpoint kokoro-tts --text 你好世界

FLUX Schnell

$SKILLDIR/run.sh callendpoint --endpoint flux-schnell --prompt 赛博朋克城市 --input {width:1024,height:1024}

添加新端点

当用户要求使用注册表中不存在的端点,或 runpod 技能揭示了一个新端点时:

  1. 1. 直接使用 --endpoint 调用——无需注册表条目
  2. 可选择将其添加到 scripts/endpoints.json 以供后续会话使用

配合 runpod 技能: 使用 runpod 技能浏览/发现 RunPod 中心上的端点 ID,然后将该 ID 传递给此处的 call_endpoint。

生成图像

bash
$SKILLDIR/run.sh generateimage \
--prompt 提示词 \
[--aspect-ratio 1:1|16:9|9:16|4:3|3:4] \
[--seed 42]

编辑图像

bash
$SKILLDIR/run.sh editimage \
--images 路径或URL [路径或URL ...] \
--prompt 编辑指令 \
[--aspect-ratio 1:1] \
[--seed 42]

  • - 接受 1–5 张图像(本地路径或 URL)
  • 本地文件通过 imgbb 自动上传(需要 secrets.json 中的 /imgbb/apiKey)

图像动画转视频

bash
$SKILLDIR/run.sh imageto_video \
--image 路径或URL \
--prompt 运动描述 \
[--model wan25|kling|seedance] \
[--duration 5|10] \
[--negative-prompt 文本]

模型:

  • - wan25(默认)— WAN 2.5,~$0.026/5秒
  • kling — Kling v2.1 Pro,$0.45/5秒(最高质量)
  • seedance — Seedance 1.0 Pro,~$0.12/5秒

文本生成视频

bash
$SKILLDIR/run.sh textto_video \
--prompt 视频描述 \
[--model wan26|seedance] \
[--duration 5|10|15] \
[--size 1920x1080] \
[--negative-prompt 文本]

模型:

  • - wan26(默认)— WAN 2.6,~$0.04/5秒
  • seedance — Seedance 1.0 Pro,~$0.12/5秒

默认设置

  • - 发送后删除 — 成功发送后始终删除本地文件。仅在用户明确要求时保留(保留它、保存它、--keep)。
  • 标题 — 保持简短自然。除非用户询问,否则不要包含渲染时间或成本。示例:🦊 极光下的狐狸 而不是 🦊 狐狸 — 105秒渲染(~$0.026)。

向用户传递媒体

生成图像或视频后,务必通过用户的活跃频道将其传递给用户

###

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 runpod-media-1776198151 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 runpod-media-1776198151 技能

通过命令行安装

skillhub install runpod-media-1776198151

下载

⬇ 下载 runpod-media v1.1.2(免费)

文件大小: 16.77 KB | 发布时间: 2026-4-15 11:21

v1.1.2 最新 2026-4-15 11:21
Fix: p-image-t2i endpoint uses result field (not image_url); confirmed API host is api.runpod.ai

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部