Xpersona
C

Chanjing Ai Creation

CLAWHUB · Unverified

Chanjing AI creation Open API client: submit image/video tasks, poll task status, list and get tasks, and optionally download outputs when the user runs down...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K 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 s17dzfw0aahqzz6dr91bzpma4h83gh5n:chanjing-ai-creation
  1. Install using `clawhub skill install s17dzfw0aahqzz6dr91bzpma4h83gh5n:chanjing-ai-creation` 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/binkes/chanjing-ai-creation before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-binkes-chanjing-ai-creation/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

105,715 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: chanjing-ai-creation
description: >-
  Chanjing AI creation Open API client: submit image/video tasks, poll task
  status, list and get tasks, and optionally download outputs when the user runs
  download_result.py. Reads and writes local credentials.json; calls
  open-api.chanjing.cc.
credential: credentials.json (read/write app_id, secret_key, access_token on disk)
openclaw_primary_env: false
environment: CHANJING_OPENAPI_CREDENTIALS_DIR, CHANJING_OPENAPI_BASE_URL
legacy_environment: CHANJING_CONFIG_DIR, CHANJING_API_BASE
machine_readable: manifest.yaml
requires_ffmpeg: false
requires_ffprobe: false
---

# Chanjing AI Creation

## 功能说明

调用蝉镜 **AI 创作** Open API:**提交任务**、**轮询状态**、**列表与单条查询**;仅在用户明确要求时用 `download_result.py` **可选下载**输出。需**读写**本地 `credentials.json` 并访问 Open API。跨模型文生图/视频等由 `submit_task.py` 参数与透传体决定。本 skill 脚本**不**依赖 ffmpeg/ffprobe。

## 运行依赖

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

## 环境变量与机器可读声明

- 环境变量键名与说明:**`manifest.yaml`**(`environment` 段)及本文
- 变量、凭据、合规 **`permissions`**、**`clientPermissions`、`agentPolicy`**:**`manifest.yaml`**

## 使用命令

- **ClawHub**(slug 以注册表为准):`clawhub run chanjing-ai-creation`
- **本仓库示例**:`python skills/chanjing-ai-creation/scripts/submit_task.py …`(见正文 **Standard Workflow**)

---

## 登记与审稿(单一事实来源)

主凭据、可选 env、下载信任边界等:**以 `manifest.yaml` 为准**。本篇从 **When to Use** 起写业务能力。

## When to Use This Skill

当用户要做这些事时使用本 Skill:

* **提交**图片或视频 AI 创作任务(`submit_task.py`)
* **列表 / 单条查询**任务(`list_tasks.py`、`get_task.py`)
* **轮询**异步结果直至完成(`poll_task.py`)
* 仅在用户明确要求时**下载**输出(`download_result.py`)

上述流程依赖读写本地 `credentials.json` 并调用 `open-api.chanjing.cc`。

如果需求更接近“文生数字人”,优先使用 `chanjing-text-to-digital-person`。  
如果需求更接近“已有数字人视频合成”,优先使用 `chanjing-video-compose`。

## Preconditions

执行本 Skill 前,必须先通过 `chanjing-credentials-guard` 完成 AK/SK 与 Token 校验。

本 Skill 与 guard 共用:

* `~/.chanjing/credentials.json`
* `https://open-api.chanjing.cc`

无凭证时,脚本会自动打开蝉镜登录页,并提示配置命令。

### 审阅与安全(凭据)

与 **Purpose / Credentials / Persistence**、**`download_result.py`** 信任边界相关的逐项说明见 **`manifest.yaml`**。

**运行时范围**:本 Skill 的说明与脚本仅服务于已声明用途——读取本地 **`credentials.json`**、调用蝉镜 **Open API** 端点;**不**在轮询或查询成功时自动落盘生成物,**仅**在用户显式执行 **`download_result.py`** 时下载资源。

**`_auth.py` 与仓库布局**:鉴权辅助可能打开系统浏览器,或按相对路径调用同仓库下的 **`chanjing-credentials-guard`** 脚本(例如 `open_login_page.py`)。这假设当前工作区为 **chan-skills 式多 Skill 目录结构**,或已单独安装并具备等效路径的 guard skill;否则将回退为仅打开登录页 URL。

**敏感数据与持久化**:预期仅处理 **`credentials.json`** 中的 `app_id`、`secret_key`、`access_token`(及与 token 生命周期相关的字段,见 `manifest.yaml`)。将 **`access_token` 写入磁盘** 是有意设计且已文档化,对 API 客户端而言通常可接受;但在**多人共用主机**、**全盘备份/同步到不可信存储**等场景下,磁盘上的 token 会**扩大泄露面**,需按环境自行评估。

## Standard Workflow

AI 创作的主接口是统一提交器:

1. 调用 `submit_task.py` 提交图片或视频生成任务,得到 `unique_id`
2. 调用 `poll_task.py` 轮询直到成功,得到 `output_url`
3. 如需回看任务参数或错误原因,调用 `get_task.py`
4. 如需看历史记录,调用 `list_tasks.py`
5. 只有在用户明确要求保存到本地时,才调用 `download_result.py`

这个 skill 默认做成“通用任务提交器”:

* 对常见图片/视频模型,优先使用脚本提供的通用参数
* 对特殊模型参数,使用 `--body-file` 或 `--body-json` 透传完整请求体

_meta.json

{
  "ownerId": "kn7eezc93vqy58g3xkkwm9jr1x8366f3",
  "slug": "chanjing-ai-creation",
  "version": "1.0.8",
  "publishedAt": 1774609187892
}

examples.md

# Examples

## Natural Language Triggers

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

* “用 Seedream 帮我生成一张海报图”
* “用 Kling 做一个图生视频”
* “帮我提交一个 AI 创作视频任务”
* “查一下这个 AI 创作任务现在到哪了”
* “把刚生成的图片下载到本地”
* “我有完整 payload.json,帮我直接提交”

## Minimal CLI Flows

### 1. Seedream 3.0 文生图

```bash
TASK_ID=$(python3 skills/chanjing-ai-creation/scripts/submit_task.py \
  --creation-type 3 \
  --model-code "doubao-seedream-3.0-t2i" \
  --prompt "赛博朋克城市夜景,霓虹灯,雨夜,电影镜头" \
  --aspect-ratio "16:9" \
  --clarity 2048 \
  --number-of-images 1)

python3 skills/chanjing-ai-creation/scripts/poll_task.py \
  --unique-id "$TASK_ID"
```

### 2. 腾讯 Kling v2.1 Master 图生视频

```bash
TASK_ID=$(python3 skills/chanjing-ai-creation/scripts/submit_task.py \
  --creation-type 4 \
  --model-code "tx_kling-v2-1-master" \
  --ref-img-url "https://res.chanjing.cc/chanjing/res/aigc_creation/photo/start.jpg" \
  --ref-img-url "https://res.chanjing.cc/chanjing/res/aigc_creation/photo/end.jpg" \
  --prompt "角色从静止到转身,镜头平滑移动,叙事感强" \
  --aspect-ratio "9:16" \
  --clarity 1080 \
  --quality-mode pro \
  --video-duration 5)

python3 skills/chanjing-ai-creation/scripts/poll_task.py \
  --unique-id "$TASK_ID"
```

### 3. 直接透传完整 JSON

```bash
python3 skills/chanjing-ai-creation/scripts/submit_task.py \
  --body-file ./payload.json
```

### 4. 查看历史任务

```bash
python3 skills/chanjing-ai-creation/scripts/list_tasks.py --type 3
python3 skills/chanjing-ai-creation/scripts/list_tasks.py --type 4 --success-only
```

### 5. 显式下载

```bash
python3 skills/chanjing-ai-creation/scripts/download_result.py \
  --url "https://example.com/output.png"
```

## Expected Outputs

* `submit_task.py` 输出任务 `unique_id`
* `poll_task.py` 默认输出第一个结果 URL
* `get_task.py` 默认输出任务详情 JSON
* `list_tasks.py` 默认输出摘要行
* `download_result.py` 输出本地文件路径

reference.md

# Reference

脚本职责与 **SKILL.md** 一致:`submit_task.py` 提交、`poll_task.py` 轮询、`list_tasks.py` / `get_task.py` 列表与详情、`download_result.py` 仅在显式需要时落盘;鉴权读写本地 `credentials.json` 并访问 Open API。

## Covered APIs

本 skill 当前覆盖这些接口:

* `POST /open/v1/ai_creation/task/submit`
* `POST /open/v1/ai_creation/task/page`
* `GET /open/v1/ai_creation/task`

## Why A Generic Submitter

蝉镜 AI 创作有很多图片/视频模型,但它们大都复用同一个提交端点:

```http
POST /open/v1/ai_creation/task/submit
```

不同模型主要差在请求体字段和 `model_code`,因此本 skill 采用:

* 一个通用 `submit_task.py`
* 一个通用 `list_tasks.py`
* 一个通用 `get_task.py`
* 一个通用 `poll_task.py`

对常见字段做 CLI 参数映射,对模型私有字段保留 `--body-file` / `--body-json` 透传能力。

## Submit Task

接口:

```http
POST /open/v1/ai_creation/task/submit
```

这是异步任务接口,成功响应中的 `data` 即任务 `unique_id`。

### Common request fields

* `creation_type`: `3=图片生成`,`4=视频生成`
* `model_code`: 模型编码
* `ref_prompt`: 提示词
* `ref_img_url`: 参考图 URL 数组
* `aspect_ratio`: 比例,如 `1:1`、`3:4`、`4:3`、`9:16`、`16:9`
* `clarity`: 图片常见 `1024/2048/4096`,视频常见 `720/1080`
* `quality_mode`: 常见 `std` / `pro`
* `number_of_images`: 图片生成数量,1-4
* `video_duration`: 视频时长(秒)
* `style`: 部分视频模型支持的视频风格

### Typical image model example

以 `doubao-seedream-3.0-t2i` 为例:

```json
{
  "ref_prompt": "赛博朋克城市夜景,霓虹灯,雨夜,电影镜头",
  "creation_type": 3,
  "aspect_ratio": "16:9",
  "clarity": 2048,
  "number_of_images": 1,
  "model_code": "doubao-seedream-3.0-t2i"
}
```

注意:

* Seedream 3.0 不支持 `ref_img_url`

### Typical video model example

以 `tx_kling-v2-1-master` 为例:

```json
{
  "ref_img_url": [
    "https://res.chanjing.cc/chanjing/res/aigc_creation/photo/start.jpg",
    "https://res.chanjing.cc/chanjing/res/aigc_creation/photo/end.jpg"
  ],
  "ref_prompt": "角色从静止到转身,镜头平滑移动,叙事感强",
  "creation_type": 4,
  "aspect_ratio": "9:16",
  "clarity": 1080,
  "quality_mode": "pro",
  "video_duration": 5,
  "model_code": "tx_kling-v2-1-master"
}
```

### Other model notes

* `Doubao-Seedance-1.0-pro` 支持文生视频和图生视频
* `kling-v2-1` 图片模型文档页虽然列了 `ref_img_url`,但备注明确说不支持参考图

## Get Task

接口:

```http
GET /open/v1/ai_creation/task?unique_id=<unique_id>
```

返回字段与任务列表里的单条对象一致。重点关注:

* `unique_id`
* `type`: `3=图片`,`4=视频`
* `progress_desc`: `Queued / Ready / Generating / Success / Error`
* `err_msg`
* `output_url`
* `photo_info`
* `motion_info`
* `model_code`
* `model_name`

## List Tasks

接口:

```http
POST /open/v1/ai_creation/task/page
```

请求体关键字段:

* `unique_ids`: 任务 ID 列表,空数组表示不过滤
* `type`: `3=图片`,`4=视频`
* `page`
* `page_size`: 最大 50
* `is_success`: 是否只看成功任务

## Poll Termination Rules

本 skill 按 `progress_desc` 判断:

* `Queued` / `Ready` / `Generating`: 继续轮询
* `Success`: 成功,返回 `output_url`
* `Error` / `Fail`: 失败,停止并报错

## Output Fields

常见输出:

* 图片任务:`output_url` 为图片地址数组
* 视频任务:`output_url` 为视频地址数组

默认脚本行为:

* `poll_task.py` 默认输出第一条结果地址
* 使用 `--all-urls` 时输出完整 `output_url` 数组

## Common Status Codes

任务提交、详情、列表文档里常见状态码基本一致:

* `0`: 成功
* `400`: 参数格式错误
* `10400`: AccessToken 验证失败
* `40000`: 参数错误
* `40001`: 超出 QPS 限制
* `50000`: 系统内部错误

## Script Mapping

| 脚本 | 对应接口 |
|------|---

skill-card.md

## Description:

Chanjing AI creation Open API client for submitting image and video tasks, polling task status, listing and retrieving tasks, and optionally downloading outputs when explicitly requested.

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to drive Chanjing AI Creation workflows through the Open API: submit image or video generation tasks, poll asynchronous status, inspect task history or details, and download generated media only when explicitly requested.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Credentialed network calls and downloads have broader control than the manifest safely scopes.

Mitigation: Review before installing, use only in a private trusted environment, and leave CHANJING_OPENAPI_BASE_URL and CHANJING_API_BASE unset unless the endpoint is fully trusted.

Risk: The skill reads and writes sensitive credentials and access tokens in ~/.chanjing/credentials.json or the configured credentials directory.

Mitigation: Protect the credentials file and directory, avoid shared or synced hosts for token storage, and do not commit credentials.json to version control.

Risk: download_result.py can fetch user-supplied URLs and write to custom output paths.

Mitigation: Download only trusted API response URLs, prefer the default outputs/ai-creation directory, and avoid custom output paths until downloader constraints are tightened.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/binkes/skills/chanjing-ai-creation)
- [Chanjing Open API documentation](https://doc.chanjing.cc)
- [Skill reference](artifact/reference.md)
- [Skill examples](artifact/examples.md)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [CLI text, JSON task data, URLs, and optional downloaded files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Submits credentialed API requests and only writes generated media locally when download_result.py is explicitly invoked.]

## Skill Version(s):

1.0.8 (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 Ai Creation and adjacent AI workflows.