Xpersona
C

Chanjing Video Compose

CLAWHUB · Unverified

Use Chanjing video synthesis APIs to create digital human videos from text or audio, with optional background upload, task polling, and explicit download whe...

62
Rank
84
Safety
973
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 973 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174j65y6gke3t6ev7f9w23nax83qpk9:chanjing-video-compose
  1. Install using `clawhub skill install s174j65y6gke3t6ev7f9w23nax83qpk9:chanjing-video-compose` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/iamzn1018/chanjing-video-compose before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-iamzn1018-chanjing-video-compose/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

67,133 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: chanjing-video-compose
description: "Use Chanjing video synthesis APIs to create digital human videos from text or audio, with optional background upload, task polling, and explicit download when the user asks to save the result locally. Primary credential: credentials.json (app_id/secret_key; access_token persisted on disk—do not commit; user accepts file-based secrets). Same credentials file as chanjing-credentials-guard. Not OpenClaw primaryEnv. Default path in metadata.openclaw.credentialModel. Optional env: CHANJING_API_BASE, CHANJING_CONFIG_DIR. May invoke open_login_page.py when AK/SK missing. create_task.py optional --callback may cause the API to POST task result payloads to a user-supplied URL. This skill's scripts do not require ffmpeg/ffprobe."
author: chan-skills
binaries: []
env:
  - CHANJING_CONFIG_DIR
  - CHANJING_API_BASE
category: 媒体处理
tags:
  - 视频合成
  - 数字人
  - ChanjingAPI
  - 蝉镜
sibling_skills:
  - chanjing-credentials-guard
credential_hint: "~/.chanjing/credentials.json(可用 CHANJING_CONFIG_DIR 覆盖目录)"
metadata:
  openclaw:
    homepage: https://doc.chanjing.cc
    credentialModel:
      type: credentials_json
      defaultPath: "~/.chanjing/credentials.json"
      optionalEnv:
        - CHANJING_CONFIG_DIR
        - CHANJING_API_BASE
      apiBaseDefault: https://open-api.chanjing.cc
      primaryEnvIntentionallyOmitted: true
      persistAccessTokenOnDisk: true
      sensitiveFields:
        - app_id
        - secret_key
        - access_token
        - expire_in
      doNotCommitToVcs:
        - credentials.json
    agentPolicy:
      alwaysSkill: false
      modifiesOtherSkillsOrGlobalAgent: false
---

# Chanjing Video Compose

技能包标识:`chanjing-video-compose`。

## 功能说明

调用蝉镜**视频合成** Open API:列举公共/定制形象、上传素材、文本或音频驱动数字人、轮询任务;用户明确要求时用脚本下载成片。本 skill 脚本**不**依赖 ffmpeg/ffprobe(与一键成片编排不同)。机器可读凭据路径与敏感字段见篇首 **`metadata.openclaw.credentialModel`**。

## 运行依赖

- **python3** 与同仓库 `scripts/*.py`
- **无** ffmpeg/ffprobe 门控

## 环境变量

1. **CHANJING_CONFIG_DIR**(可选):`credentials.json` 所在目录,默认 `~/.chanjing`
2. **CHANJING_API_BASE**(可选):Open API 基址,默认 `https://open-api.chanjing.cc`

## 使用命令

- **ClawHub**(slug 以注册表为准):`clawhub run chanjing-video-compose`
- **本仓库**:`python skills/chanjing-video-compose/scripts/create_task.py …`(见 **Standard Workflow**)

---

## 登记摘要(英文 · ClawHub / OpenClaw)

**Primary credential (not `primaryEnv`)**: `app_id` + `secret_key` in `~/.chanjing/credentials.json` (or `$CHANJING_CONFIG_DIR/credentials.json`); `access_token` / expiry **read/written** in the same file. **`primaryEnv` is omitted** on purpose (OpenClaw uses it for a single env-injected API key; this client uses **file-based dual keys**).

**Required vs optional**: **`CHANJING_API_BASE`** is **optional** (defaults to `https://open-api.chanjing.cc`). **`CHANJING_CONFIG_DIR`** is optional. **No `ffmpeg` / `ffprobe` gate** in this skill's `metadata`—orchestration-only use of this skill does not bundle local concat.

**Purpose alignment**: Chanjing **digi

_meta.json

{
  "ownerId": "kn71vgyzhzv3s4w62tvwf8v18d837rh4",
  "slug": "chanjing-video-compose",
  "version": "1.0.3",
  "publishedAt": 1774599916836
}

examples.md

# Examples

## Natural Language Triggers

这些说法通常应该触发本 skill:

* “帮我做一个蝉镜数字人视频”
* “用这段文案生成一个数字人口播视频”
* “先列一下公共数字人”
* “先列一下我自己的定制数字人”
* “把这段 wav 上传后做成数字人视频”
* “帮我轮询视频合成任务状态”
* “把生成好的视频下载到本地”

## Minimal CLI Flows

### 1. 公共数字人文本驱动

```bash
python skills/chanjing-video-compose/scripts/list_figures.py --source common

VIDEO_ID=$(python skills/chanjing-video-compose/scripts/create_task.py \
  --person-id "C-ef91f3a6db3144ffb5d6c581ff13c7ec" \
  --figure-type "sit_body" \
  --audio-man "C-0ae461135d8a4eb2b59c853162ea9848" \
  --subtitle "show" \
  --text "你好,这是一个蝉镜视频合成测试。")

python skills/chanjing-video-compose/scripts/poll_task.py --id "$VIDEO_ID"
```

说明:

* 仅传 `--subtitle show` 时,脚本会自动补官方推荐字幕参数
* 如需自定义位置或样式,再继续补充 `--subtitle-x` / `--subtitle-y` / `--subtitle-width` / `--subtitle-height` / `--subtitle-font-size` 等参数

### 2. 公共数字人文本驱动,自定义字幕位置

```bash
VIDEO_ID=$(python skills/chanjing-video-compose/scripts/create_task.py \
  --person-id "C-ef91f3a6db3144ffb5d6c581ff13c7ec" \
  --figure-type "sit_body" \
  --audio-man "C-0ae461135d8a4eb2b59c853162ea9848" \
  --subtitle "show" \
  --subtitle-x 31 \
  --subtitle-y 1521 \
  --subtitle-width 1000 \
  --subtitle-height 200 \
  --subtitle-font-size 64 \
  --subtitle-stroke-width 7 \
  --text "你好,这是一个蝉镜视频合成测试。")

python skills/chanjing-video-compose/scripts/poll_task.py --id "$VIDEO_ID"
```

### 3. 定制数字人本地音频驱动

```bash
python skills/chanjing-video-compose/scripts/list_figures.py --source customised

AUDIO_FILE_ID=$(python skills/chanjing-video-compose/scripts/upload_file.py \
  --service make_video_audio \
  --file ./demo.wav)

VIDEO_ID=$(python skills/chanjing-video-compose/scripts/create_task.py \
  --person-id "C-ef91f3a6db3144ffb5d6c581ff13c7ec" \
  --audio-file-id "$AUDIO_FILE_ID")

python skills/chanjing-video-compose/scripts/poll_task.py --id "$VIDEO_ID"
```

### 4. 带背景图

```bash
BG_FILE_ID=$(python skills/chanjing-video-compose/scripts/upload_file.py \
  --service make_video_background \
  --file ./background.png)

VIDEO_ID=$(python skills/chanjing-video-compose/scripts/create_task.py \
  --person-id "C-ef91f3a6db3144ffb5d6c581ff13c7ec" \
  --figure-type "whole_body" \
  --audio-man "C-0ae461135d8a4eb2b59c853162ea9848" \
  --text "欢迎来到我的频道。" \
  --bg-file-id "$BG_FILE_ID")
```

### 5. 显式下载

```bash
python skills/chanjing-video-compose/scripts/download_result.py \
  --url "https://example.com/output.mp4"
```

## Expected Outputs

* `list_figures.py` 默认输出表格,便于挑选 `person.id`,公共数字人还会显示 `figure_type`
* `upload_file.py` 输出 `file_id`
* `create_task.py` 输出 `video_id`
* `poll_task.py` 默认输出 `video_url`
* `download_result.py` 输出本地文件路径

reference.md

# Reference

## Covered APIs

本 skill 当前覆盖这些接口:

* `GET /open/v1/list_common_dp`
* `POST /open/v1/list_customised_person`
* `POST /open/v1/create_video`
* `GET /open/v1/video`
* `GET /open/v1/common/create_upload_url`
* `GET /open/v1/common/file_detail`

## Figure List Notes

### 定制数字人接口

```http
POST /open/v1/list_customised_person
```

典型用途:

* 获取 `person.id`
* 获取默认可复用的 `audio_man_id`
* 查看是否支持 `support_4k`
* 获取 `preview_url` 便于人工选择形象

脚本默认关注这些字段:

* `id`
* `name`
* `audio_man_id`
* `support_4k`
* `preview_url`

### 公共数字人接口

```http
GET /open/v1/list_common_dp?page=<page>&size=<size>
```

典型用途:

* 获取公共数字人 `person.id`
* 获取该人物可用的 `figures[].type`
* 获取默认可复用的 `audio_man_id`
* 获取 `figures[].preview_video_url` 便于人工选择形象

脚本默认关注这些字段:

* `id`
* `name`
* `figures[].type`
* `figures[].width`
* `figures[].height`
* `audio_man_id`
* `audio_name`
* `figures[].preview_video_url`

## Create Task Notes

接口:

```http
POST /open/v1/create_video
```

这是异步任务接口,响应 `data` 即视频任务 id,需要继续调用详情接口轮询。

### Minimum body for TTS mode

```json
{
  "person": {
    "id": "C-figure-id",
    "x": 0,
    "y": 0,
    "width": 1080,
    "height": 1920
  },
  "audio": {
    "type": "tts",
    "volume": 100,
    "language": "cn",
    "tts": {
      "text": ["你好,这是一个测试。"],
      "speed": 1,
      "audio_man": "C-audio-man-id",
      "pitch": 1
    }
  },
  "bg_color": "#EDEDED",
  "screen_width": 1080,
  "screen_height": 1920
}
```

### Minimum body for audio mode

```json
{
  "person": {
    "id": "C-figure-id",
    "x": 0,
    "y": 0,
    "width": 1080,
    "height": 1920
  },
  "audio": {
    "type": "audio",
    "file_id": "uploaded-audio-file-id",
    "volume": 100,
    "language": "cn"
  },
  "bg_color": "#EDEDED",
  "screen_width": 1080,
  "screen_height": 1920
}
```

### Common request fields

* `person.id`: 形象 id,来自 `list_common_dp` 或 `list_customised_person`
* `person.figure_type`: 公共数字人形态,如 `whole_body` / `sit_body` / `circle_view`;使用公共数字人时必传
* `audio.type`: `tts` 或 `audio`
* `audio.tts.text`: 文本数组,建议把所有文本放进一个字符串
* `audio.tts.audio_man`: 声音 id,优先使用该形象返回的 `audio_man_id`
* `audio.file_id`: 本地上传音频的 file id
* `audio.wav_url`: 远端音频链接
* `bg.file_id`: 背景素材 file id
* `bg.src_url`: 背景图片地址
* `drive_mode`: `random` 表示随机帧动作;不传表示正常顺序驱动
* `backway`: 人物素材播放顺序,`1` 正放,`2` 倒放
* `is_rgba_mode`: 是否生成四通道 webm
* `model`: `0` 基础版,`1` 高质版
* `resolution_rate`: `0` 为 1080p,`1` 为 4K
* `subtitle_config.show`: 是否显示字幕
* `subtitle_config.x`: 字幕区域起始 x 坐标,默认推荐 `31`(4K 推荐 `80`)
* `subtitle_config.y`: 字幕区域起始 y 坐标,默认推荐 `1521`(4K 推荐 `2840`)
* `subtitle_config.width`: 字幕显示范围宽度,默认推荐 `1000`(4K 推荐 `2000`)
* `subtitle_config.height`: 字幕显示范围高度,默认推荐 `200`(4K 推荐 `1000`)
* `subtitle_config.font_size`: 字幕字号,默认推荐 `64`(4K 推荐 `150`)
* `subtitle_config.color`: 字幕颜色,格式 `#RRGGBB`
* `subtitle_config.stroke_color`: 字幕描边颜色,格式 `#RRGGBB`
* `subtitle_config.stroke_width`: 字幕描边宽度,推荐 `7`
* `subtitle_config.font_id`: 字幕字体 ID
* `subtitle_config.asr_type`: 字幕时间戳来源,`0` 自动生成,`1` 用户输入
* `callback`: 任务完成回调 URL

脚本约定:

* `create_task.py --subti

skill-card.md

## Description:

Chanjing Video Compose helps agents use Chanjing video synthesis APIs to list digital human figures, create text- or audio-driven videos, poll task status, and download completed videos when requested.

This skill is ready for commercial/non-commercial use.

## Publisher:

[iamzn1018](https://clawhub.ai/user/iamzn1018)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to compose Chanjing digital-human videos from scripts or uploaded audio, select public or customized figures, monitor generation tasks, and save completed results on request.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill stores Chanjing app credentials and access tokens in ~/.chanjing/credentials.json or a CHANJING_CONFIG_DIR override.

Mitigation: Use a private configuration directory, avoid shared machines, restrict file permissions, and never commit credentials.json.

Risk: CHANJING_API_BASE can redirect API calls to a non-default endpoint.

Mitigation: Set CHANJING_API_BASE only to endpoints you fully trust.

Risk: Callback URLs and media URLs cross a trust boundary and may receive or provide task-result payloads.

Mitigation: Use only trusted callback endpoints and verify media URLs before requesting or downloading content.

Risk: Custom download output paths can overwrite local files.

Mitigation: Choose output paths deliberately and review existing files before saving generated videos.

## Reference(s):

- [Chanjing API documentation](https://doc.chanjing.cc)
- [ClawHub skill page](https://clawhub.ai/iamzn1018/skills/chanjing-video-compose)
- [reference.md](artifact/reference.md)
- [examples.md](artifact/examples.md)

## Skill Output:

**Output Type(s):** [Text, Shell commands, Configuration, Files, Guidance]

**Output Format:** [Markdown with inline shell commands and plain-text task IDs, file IDs, URLs, or local file paths]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May return Chanjing task IDs, uploaded file IDs, video URLs, or a saved video path.]

## Skill Version(s):

1.0.3 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Chanjing Video Compose and adjacent AI workflows.