WeryAI Video Toolkits
WeryAI video tools, video editing, video post-processing, subtitle translate, subtitle erase, watermark remove, face change, lip sync, background remove, video extend, anime replace, magic style transfer, video upscale.
WeryAI video tools for video editing and video post-processing on existing videos.
Use this skill for official WeryAI video editing, video post-processing, and WeryAI video tools on existing video/media sources. Use when you need WeryAI video tools for subtitle translate, subtitle erase, watermark remove, face change, lip sync, background remove, video extend, anime replace, magic style transfer, or video upscale. This skill is intentionally strict about secret declaration and input safety: the only runtime secret is WERYAI_API_KEY, and media inputs support http/https URLs plus local/file sources that are uploaded first.
This is not a text-to-video generator. Use it when the user wants to edit, transform, clean up, translate, upscale, or extend an existing video with WeryAI rather than create a brand-new video from a prompt.
Dependencies: scripts/video_toolkits.js at the skill package root (alongside SKILL.md), WERYAI_API_KEY, and Node.js 18+. No other skills are required.
Example Prompts
- - INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
- INLINECODE9
Quick Summary
- - Main jobs:
anime-replace, background-remove, extend, face-change, lips-change, magic-style, subtitle-erase, subtitle-translate, upscaler, INLINECODE19 - Main inputs:
video_url plus tool-specific parameters such as image_url, audio_url, target_language, rect_vo_list, style, resolution, INLINECODE27 - Main trust signals: dry-run support, explicit per-tool validation, parameter guidance by intent, paid-run warning,
WERYAI_API_KEY alignment with other WeryAI skills
Authentication and first-time setup
Before the first real processing run:
- 1. Create a WeryAI account.
- Open the API key page at
https://www.weryai.com/api/keys. - Create a new API key and copy the secret value.
- Add it to the required environment variable
WERYAI_API_KEY. - Make sure the WeryAI account has available balance or credits before paid processing.
OpenClaw-friendly setup
- - This skill already declares
WERYAI_API_KEY in metadata.openclaw.requires.env and primaryEnv. - After installation, if the runtime asks for required environment variables, paste the key into
WERYAI_API_KEY. - If you are configuring the runtime manually, export it before running commands:
CODEBLOCK0
Quick verification
Use one safe check before the first paid run:
CODEBLOCK1
- -
tools confirms the local CLI is available and shows the supported tool registry. - INLINECODE36 validates the request shape without calling WeryAI or spending credits.
Prerequisites
- -
WERYAI_API_KEY must be set before running video_toolkits.js for paid calls. - Node.js
>=18 is required because the runtime uses built-in fetch. - INLINECODE41 ,
image_url, and audio_url can be http/https URLs or local/file sources. Local/non-http(s) sources are uploaded first. - Real
submit, wait, and status commands can consume WeryAI credits or depend on existing paid tasks.
Security and API hosts
- -
WERYAI_API_KEY: Treat it as a secret. Configure it only in the runtime environment; never write the secret value into the skill files. - This skill supports directly passing local file paths. If a local file path is provided, the runtime will automatically upload the local file to the WeryAI server for processing.
- Optional override
WERYAI_BASE_URL defaults to https://api.weryai.com. Only override it with a trusted host. - For higher assurance, run paid jobs in a short-lived shell or isolated environment, and review
scripts/video_toolkits.js before production use.
Tool Routing
Route user intent to the narrowest tool:
- - Replace or move an object in anime style -> INLINECODE52
- Remove background or swap it to a flat color -> INLINECODE53
- Continue a short clip -> INLINECODE54
- Swap a face in a source video -> INLINECODE55
- Lip-sync video to audio -> INLINECODE56
- Apply a preset visual style -> INLINECODE57
- Remove subtitles or burnt-in text -> INLINECODE58
- Translate subtitles -> INLINECODE59
- Improve resolution -> INLINECODE60
- Remove watermark -> INLINECODE61
If the user asks for text-to-video or image-to-video generation from scratch, use weryai-video-generator instead of this skill.
Parameter Guidance
Guide the user progressively. Ask only for the smallest missing set of parameters required for the selected tool.
Recommended guidance pattern
Use short operator-style guidance like this:
- - General help: When the user asks "how to use this skill", DO NOT paste raw shell commands. Instead, explain the capabilities in natural language and give 2-3 prompt examples.
Defaults you may apply safely
- -
anime-replace: type=replace, INLINECODE65 - INLINECODE66 : INLINECODE67
- INLINECODE68 :
style=anime, resolution=720p, INLINECODE71 - INLINECODE72 : INLINECODE73
- INLINECODE74 : INLINECODE75
- INLINECODE76 and
watermark-remove: omit rect_vo_list to let WeryAI auto-detect regions
Parameters that usually require user confirmation
- - INLINECODE79
- INLINECODE80
- INLINECODE81
- precise
rect_vo_list region coordinates when auto-detection is not good enough
When to ask follow-up questions
- - Ask for
target_language when the user says “translate subtitles” but does not name the destination language. - Ask for the reference
image_url when the user wants face replacement but has not supplied a face image. - Ask for
audio_url when the user wants lip-sync but has not supplied audio. - Ask for
rect_vo_list only when the user wants precise control over subtitle or watermark regions. - Ask about
style, duration, or resolution for extend only if the user wants something different from the default continuation setup.
Tool Matrix
Read references/video-tools-matrix.md when you need the exact required fields, enum values, or defaults for a tool.
Preferred Commands
CODEBLOCK2
Workflow
- 1. Identify whether the user wants video editing/post-processing or brand-new video generation.
- Route the request to one tool ID.
- Collect
video_url and only the extra parameters required by that tool. - Apply supported defaults where safe.
- Show the final tool, parameters, and URLs before the paid run if the request is ambiguous or expensive.
- Use
--dry-run when you need to verify the payload locally first. - Use
wait by default to deliver final processed video URLs in the same turn. - Enforce bounded polling with a maximum timeout of 30 minutes (1800 seconds); do not run unbounded loops.
- If timeout is reached, return the
taskId to the user and ask if they want you to check the status again. Do NOT show the raw node status command to the user; use it internally to check the status when asked. - Use
submit only when the user explicitly wants task creation without polling. - Use
status when the user already has a task_id.
Input Rules
- -
video_url, image_url, and audio_url can be http/https URLs or local/file sources. - Do not invent undocumented fields.
- Use normalized
rect_vo_list coordinates between 0 and 1. - For subtitle or watermark removal, omit
rect_vo_list when auto-detection is acceptable. - For subtitle translation, use standard language codes such as
en, zh, ja, ko, fr, de, es.
Output
All commands print JSON to stdout. Successful results can include:
- -
taskId, taskIds, INLINECODE115 - INLINECODE116
- INLINECODE117
- INLINECODE118
- INLINECODE119 , INLINECODE120
User-facing delivery requirement:
- - If video URLs are available, return at least one playable Markdown link (for example
[Video](https://...)). If multiple videos are generated, render all of them using markdown links consecutively. - Alongside video output, include key parameters when available:
tool, style, duration, resolution, type, target_language. - Do not use
taskId as the sole deliverable unless the user explicitly requested task creation without waiting. - If timeout is reached before completion, return the
taskId to the user and ask if they want you to check the status again. Do NOT show the raw node status command to the user; use it internally to check the status when asked.
The task is done when:
- - local validation passes without CLI-side errors,
- INLINECODE130 returns a valid task ID or batch ID,
- or
wait reaches a terminal result with at least one processed video URL, - or
status returns a clear in-progress or terminal state, - and the output makes it explicit whether final video URLs are present.
Constraints
- - Do not treat this skill as a text-to-video generator.
- Do not ask the user to choose raw API fields when a safe default already fits the request.
- Do not use unsupported file types for
video_url, image_url, or audio_url; local sources are uploaded before the toolkit request. - Do not re-run paid processing casually because each
submit or wait call can create a new paid task. - Do not broaden this skill beyond the documented WeryAI video-tools API surface.
Re-run behavior
- -
submit and wait are not idempotent. - INLINECODE140 and
tools are safe to re-run.
References
WeryAI 视频工具包
WeryAI 视频工具,视频编辑,视频后期处理,字幕翻译,字幕擦除,水印去除,换脸,唇形同步,背景去除,视频扩展,动漫替换,魔法风格迁移,视频增强。
WeryAI 视频工具用于对现有视频进行视频编辑和视频后期处理。
使用此技能进行官方 WeryAI 视频编辑、视频后期处理以及针对现有视频/媒体源的 WeryAI 视频工具。当您需要 WeryAI 视频工具进行字幕翻译、字幕擦除、水印去除、换脸、唇形同步、背景去除、视频扩展、动漫替换、魔法风格迁移或视频增强时使用。此技能在密钥声明和输入安全性方面严格限制:唯一的运行时密钥是 WERYAIAPIKEY,媒体输入支持 http/https URL 以及需要先上传的本地/文件源。
这不是文本转视频生成器。当用户想要使用 WeryAI 编辑、转换、清理、翻译、增强或扩展现有视频,而不是根据提示创建全新视频时使用。
依赖项: 技能包根目录下的 scripts/videotoolkits.js(与 SKILL.md 同级)、WERYAIAPI_KEY 和 Node.js 18+。不需要其他技能。
示例提示
- - 使用 WeryAI 从此 HTTPS 视频中去除水印。
- 将此视频中的字幕翻译成英文,并给我最终的视频 URL。
- 使用 WeryAI 用此参考照片替换此视频中的面部。
- 以动漫风格将此片段扩展 5 秒。
- 将此说话头像视频与提供的音频轨道进行唇形同步。
快速摘要
- - 主要任务:anime-replace、background-remove、extend、face-change、lips-change、magic-style、subtitle-erase、subtitle-translate、upscaler、watermark-remove
- 主要输入:videourl 以及工具特定参数,如 imageurl、audiourl、targetlanguage、rectvolist、style、resolution、duration
- 主要信任信号:支持试运行、每个工具的显式验证、按意图的参数指导、付费运行警告、WERYAIAPIKEY 与其他 WeryAI 技能的一致性
身份验证和首次设置
在首次实际处理运行之前:
- 1. 创建 WeryAI 账户。
- 打开 API 密钥页面 https://www.weryai.com/api/keys。
- 创建新的 API 密钥并复制密钥值。
- 将其添加到所需的环境变量 WERYAIAPIKEY。
- 确保 WeryAI 账户在付费处理前有可用余额或积分。
OpenClaw 友好设置
- - 此技能已在 metadata.openclaw.requires.env 和 primaryEnv 中声明了 WERYAIAPIKEY。
- 安装后,如果运行时要求提供所需的环境变量,请将密钥粘贴到 WERYAIAPIKEY 中。
- 如果您手动配置运行时,请在运行命令前导出它:
sh
export WERYAIAPIKEY=yourapikey_here
快速验证
在首次付费运行前使用一次安全检查:
sh
node scripts/video_toolkits.js tools
node scripts/videotoolkits.js wait --tool background-remove --json {videourl:https://example.com/video.mp4} --dry-run
- - tools 确认本地 CLI 可用并显示支持的工具注册表。
- --dry-run 验证请求格式而不调用 WeryAI 或消耗积分。
先决条件
- - 在运行 videotoolkits.js 进行付费调用之前,必须设置 WERYAIAPIKEY。
- 需要 Node.js >=18,因为运行时使用内置的 fetch。
- videourl、imageurl 和 audiourl 可以是 http/https URL 或本地/文件源。本地/非 http(s) 源会先上传。
- 真实的 submit、wait 和 status 命令会消耗 WeryAI 积分或依赖于现有的付费任务。
安全性和 API 主机
- - WERYAIAPIKEY:将其视为机密。仅在运行时环境中配置;切勿将密钥值写入技能文件。
- 此技能支持直接传递本地文件路径。如果提供了本地文件路径,运行时将自动将本地文件上传到 WeryAI 服务器进行处理。
- 可选覆盖 WERYAIBASEURL,默认为 https://api.weryai.com。仅使用可信主机覆盖它。
- 为了更高的安全性,在短生命周期的 shell 或隔离环境中运行付费任务,并在生产使用前审查 scripts/video_toolkits.js。
工具路由
将用户意图路由到最精确的工具:
- - 以动漫风格替换或移动对象 -> anime-replace
- 去除背景或将其替换为纯色 -> background-remove
- 延续短视频片段 -> extend
- 在源视频中交换面部 -> face-change
- 视频与音频唇形同步 -> lips-change
- 应用预设视觉风格 -> magic-style
- 去除字幕或烧录文本 -> subtitle-erase
- 翻译字幕 -> subtitle-translate
- 提高分辨率 -> upscaler
- 去除水印 -> watermark-remove
如果用户要求从头开始进行文本转视频或图像转视频生成,请使用 weryai-video-generator 而不是此技能。
参数指导
逐步引导用户。仅询问所选工具所需的最小缺失参数集。
推荐指导模式
使用如下简短的操作员式指导:
- - 一般帮助:当用户询问如何使用此技能时,不要粘贴原始 shell 命令。相反,用自然语言解释功能并给出 2-3 个提示示例。
您可以安全应用的默认值
- - anime-replace:type=replace,resolution=720p
- background-remove:backgroundcolor=BLACK
- extend:style=anime,resolution=720p,duration=5
- magic-style:videostyle=animestyle3
- upscaler:resolution=1080p
- subtitle-erase 和 watermark-remove:省略 rectvolist 让 WeryAI 自动检测区域
通常需要用户确认的参数
- - subtitle-translate.targetlanguage
- face-change.imageurl
- lips-change.audiourl
- 当自动检测不够好时的精确 rectvo_list 区域坐标
何时提出后续问题
- - 当用户说翻译字幕但没有指定目标语言时,询问 targetlanguage。
- 当用户想要换脸但未提供面部图像时,询问参考 imageurl。
- 当用户想要唇形同步但未提供音频时,询问 audiourl。
- 仅当用户想要精确控制字幕或水印区域时,询问 rectvo_list。
- 仅当用户想要与默认延续设置不同的内容时,询问 extend 的 style、duration 或 resolution。
工具矩阵
当您需要某个工具的确切必填字段、枚举值或默认值时,请阅读 references/video-tools-matrix.md。
推荐命令
sh
使用默认黑色填充去除背景
node scripts/video
toolkits.js wait --tool background-remove --json {videourl:https://example.com/video.mp4}
以动漫风格替换或移动对象
node scripts/video
toolkits.js wait --tool anime-replace --json {videourl:https://example.com/video.mp4,image_url:https://example.com/ref.jpg,type:replace,resolution:720p}
轮询现有任务
node scripts/video_toolkits.js status --task-id
工作流程
- 1. 确定用户想要的是视频编辑/后期处理还是全新的视频生成。
- 将请求路由到一个工具 ID。
- 收集 video_url 以及该工具所需的额外参数。
- 在安全的情况下应用支持的默认值。
- 如果请求不明确或成本较高,在付费运行前显示最终的工具、参数和 URL。
- 当需要先在本地验证负载时,使用 --dry-run。
- 默认使用 wait 在同一轮中交付最终处理后的视频 URL。
- 实施有界轮询,最大超时时间为 30 分钟(1800 秒);不要运行无界循环。
- 如果达到超时,将 taskId 返回给用户,并询问他们是否希望您再次检查状态