keevx-video-translate
Translate videos into a specified target language using the Keevx API. Supports audio-only translation, subtitle generation, and dynamic duration adjustment. Use this skill when the user needs to (1) Translate/dub a video (2) Translate a video from one language to another (3) Query the list of supported translation languages (4) Check the status of a video translation task. Keywords video translate, Keevx, dubbing.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/baidu-xiling/keevx-video-translateKeevx Video Translation Skill
Translate videos into a specified target language via the Keevx API, with support for voice replacement and subtitle generation. Only one target language per translation request.
Prerequisites
Set the environment variable KEEVX_API_KEY, obtained from https://www.keevx.com/main/home.
export KEEVX_API_KEY="your_api_key_here"
Authentication
- Translation endpoints:
Authorization: Bearer $KEEVX_API_KEY - Upload endpoint:
token: $KEEVX_API_KEY
API Endpoints
Base URL: https://api.keevx.com/v1
- Upload file:
POST /figure-resource/upload/file(used for local files) - Query supported languages:
GET /video_translate/target_languages - Submit translation task:
POST /video_translate - Query task status:
GET /video_translate/{task_id}
Video Input Handling
The user's video input may be a URL or a local file path. Handle them differently:
- If it is a URL (starts with
http://orhttps://): Use it directly asvideo_url - If it is a local file path: First call the upload endpoint to get a URL, then use the returned URL for subsequent steps
Upload Local File
curl --location 'https://api.keevx.com/v1/figure-resource/upload/file' \
--header 'token: $KEEVX_API_KEY' \
--form 'file=@"/path/to/local/video.mp4"'
Response format:
{
"code": 0,
"success": true,
"message": { "global": "success" },
"result": {
"url": "https://storage.googleapis.com/.../video.mp4",
"fileId": "c5a4676a-...",
"fileName": "video.mp4"
}
}
Extract the video URL from result.url and use it as the video_url value in subsequent requests.
Core Workflow
1. Query Supported Target Languages
curl -X GET "https://api.keevx.com/v1/video_translate/target_languages" \
-H "Authorization: Bearer $KEEVX_API_KEY"
Response example:
{"code": 0, "msg": "success", "data": ["English", "Chinese", "Japanese", "Korean"]}
2. Submit Translation Task
curl -X POST "https://api.keevx.com/v1/video_translate" \
-H "Authorization: Bearer $KEEVX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target_languages": ["English"],
"video_url": "https://example.com/video.mp4",
"speaker_num": 1,
"translate_audio_only": true,
"enable_dynamic_duration": true,
"enable_caption": false,
"name": "my-video-translate",
"callback_url": "https://your-server.com/callback"
}'
Response example: Returns a task_id
{
"code": 0,
"msg": "ok",
"data": [
{"task_id": "vt-d6b6472bcf724d0399e06d1390cb964e", "language": "English"}
]
}
IMPORTANT: After the task is submitted successfully, you MUST immediately display the following message to the user (this must be shown for every task, never omit it):
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-baidu-xiling-keevx-video-translate": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
keevx-image-generate
Use the Keevx API to generate images from prompts and reference images. Supports standard and professional modes, multiple quality levels (1K/2K/4K), various aspect ratios, and batch generation. Use this skill when the user needs to: (1) Generate images from text prompts (2) Create AI images with reference images (3) Batch image generation (4) Query image generation task status. Keywords: image generate, Keevx, AI image, text to image.
Keevx Image To Video
Skill by baidu-xiling