Aliyun Happyhorse Videoeditのロゴ

Aliyun Happyhorse Videoedit

コミュニティ
cinience
aliyun-happyhorse-videoedit

Use when editing videos with DashScope HappyHorse 1.0 video editing model (happyhorse-1.0-video-edit). Use when implementing instruction-based video editing such as style transfer or local replacement, optionally guided by 0-5 reference images, via the video-synthesis async API on Alibaba Cloud Model Studio.

概要

公開者cinience
リポジトリalicloud-skills
スキル名aliyun-happyhorse-videoedit
スター
397
フォーク
34
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    cinienceがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Aliyun Happyhorse Videoedit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/cinience/alicloud-skills/tree/main/skills/ai/video/aliyun-happyhorse-videoedit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cinience/alicloud-skills.git /tmp/alicloud-skills
mkdir -p .claude/skills
cp -r /tmp/alicloud-skills/skills/ai/video/aliyun-happyhorse-videoedit .claude/skills/aliyun-happyhorse-videoedit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAliyun Happyhorse Videoeditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAliyun Happyhorse Videoeditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Aliyun Happyhorse Videoeditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

HappyHorse 1.0 Video Editing

Validation

bash
mkdir -p output/aliyun-happyhorse-videoedit
python -m py_compile skills/ai/video/aliyun-happyhorse-videoedit/scripts/edit_happyhorse.py && echo "py_compile_ok" > output/aliyun-happyhorse-videoedit/validate.txt

Pass criteria: command exits 0 and output/aliyun-happyhorse-videoedit/validate.txt is generated.

Output And Evidence

  • Save task IDs, polling responses, and final video URLs to output/aliyun-happyhorse-videoedit/.
  • Keep at least one end-to-end run log for troubleshooting.

Prerequisites

  • Install dependencies (recommended in a venv):
bash
python3 -m venv .venv
. .venv/bin/activate
python -m pip install requests
  • Set DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.

Critical model names

  • happyhorse-1.0-video-edit — instruction-based video editing with optional reference images and audio retention control

Capabilities

CapabilityDescriptionRequired media
Style transferConvert the input video to a different visual style via a text instructionexactly 1 video
Local replacement / instruction editReplace or modify subjects guided by a prompt and optional reference images1 video + 0-5 reference_image

API endpoint (async only)

POST https://dashscope.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

Required headers:

  • Authorization: Bearer $DASHSCOPE_API_KEY
  • Content-Type: application/json
  • X-DashScope-Async: enable

Singapore endpoint: replace dashscope.aliyuncs.com with dashscope-intl.aliyuncs.com.

Polling endpoint: GET https://dashscope.aliyuncs.com/api/v1/tasks/{task_id} — recommended interval 15s.

Normalized interface

Request

  • model (string, required) — fixed happyhorse-1.0-video-edit
  • input.prompt (string, required) — up to 5000 non-CJK / 2500 CJK characters describing the edit
  • input.media (array, required) — exactly 1 video element, plus 0-5 reference_image elements:
    • type: video (required, exactly 1) | reference_image (optional, 0-5)
    • url: public HTTP/HTTPS URL
  • parameters.resolution (string, optional) — 720P or 1080P (default: 1080P)
  • parameters.audio_setting (string, optional) — auto (default, model decides) or origin (keep input audio)
  • parameters.watermark (boolean, optional) — bottom-right "Happy Horse" watermark (default: true)
  • parameters.seed (integer, optional) — range [0, 2147483647]

Media input limits

Input video (type=video):

  • Formats: MP4, MOV (H.264 encoding recommended)
  • Duration: 3-60 seconds (output is capped at 15s; videos >15s are truncated to the first 15s)
  • Resolution: long side ≤ 2160 px, short side ≥ 320 px
  • Aspect ratio: 1:2.5 ~ 2.5:1
  • Frame rate: > 8 fps
  • Max size: 100 MB

Reference image (type=reference_image):

  • Formats: JPEG, JPG, PNG, WEBP
  • Resolution: width and height ≥ 300 pixels
  • Aspect ratio: 1:2.5 ~ 2.5:1
  • Max size: 10 MB

Output duration rule

  • Input ≤ 15s → output duration = input duration.
  • Input > 15s → input is truncated to the first 15s; output ≤ 15s.

Response (task creation)

  • output.task_id (string) — valid 24 hours
  • output.task_status (string) — PENDING | RUNNING | SUCCEEDED | FAILED | CANCELED | UNKNOWN
  • request_id (string)

Response (task result, on SUCCEEDED)

  • output.video_url (string) — edited MP4 (H.264) URL, valid 24 hours
  • output.orig_prompt (string)
  • output.submit_time / output.scheduled_time / output.end_time (string)
  • usage.duration (float) — billable duration in seconds
  • usage.input_video_duration (float)
  • usage.output_video_duration (float)
  • usage.SR (integer) — output resolution tier
  • usage.video_count (integer) — fixed 1

Quick start (Python + HTTP)

python
import os
import time
import requests

API_KEY = os.getenv("DASHSCOPE_API_KEY")
BASE_URL = "https://dashscope.aliyuncs.com/api/v1"


def create_videoedit_task(req: dict) -> str:
    """Create a video-edit task and return task_id."""
    media = [{"type": "video", "url": req["video_url"]}]
    for url in req.get("reference_images", []):
        media.append({"type": "reference_image", "url": url})
    if len(media) - 1 > 5:
        raise ValueError("At most 5 reference images")

    payload = {
        "model": "happyhorse-1.0-video-edit",
        "input": {"prompt": req["prompt"], "media": media},
        "parameters": {
            "resolution": req.get("resolution", "1080P"),
            "watermark": req.get("watermark", True),
        },
    }
    if req.get("audio_setting"):
        payload["parameters"]["audio_setting"] = req["audio_setting"]
    if req.get("seed") is not None:
        payload["parameters"]["seed"] = req["seed"]

    resp = requests.post(
        f"{BASE_URL}/services/aigc/video-generation/video-synthesis",
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json",
            "X-DashScope-Async": "enable",
        },
        json=payload,
    )
    resp.raise_for_status()
    return resp.json()["output"]["task_id"]


def poll_task(task_id: str, interval: int = 15) -> dict:
    while True:
        resp = requests.get(
            f"{BASE_URL}/tasks/{task_id}",
            headers={"Authorization": f"Bearer {API_KEY}"},
        )
        resp.raise_for_status()
        data = resp.json()
        if data["output"]["task_status"] in ("SUCCEEDED", "FAILED", "CANCELED"):
            return data
        time.sleep(interval)

Usage examples

python
# Style transfer — instruction only, no reference image
task_id = create_videoedit_task({
    "video_url": "https://example.com/input.mp4",
    "prompt": "将整个画面转换为水墨画风格",
    "resolution": "720P",
})

# Local replacement with a reference image, keep original audio
task_id = create_videoedit_task({
    "video_url": "https://example.com/character.mp4",
    "reference_images": ["https://example.com/striped-sweater.webp"],
    "prompt": "让视频中的马头人身角色穿上图片中的条纹毛衣",
    "audio_setting": "origin",
})

Error handling

ErrorLikely causeAction
401 / InvalidApiKeyMissing or invalid DASHSCOPE_API_KEYCheck env var or credentials file
400 InvalidParameterBad resolution, >5 reference images, video out of duration / size limitsValidate parameters and media
current user api does not support synchronous callsMissing X-DashScope-Async: enable headerAdd the required header
task_status: UNKNOWNtask_id older than 24 hoursRe-create the task
429RPS or quota exceededRetry with backoff; query RPS default 20

Output location

  • Default output: output/aliyun-happyhorse-videoedit/videos/
  • Override base dir with OUTPUT_DIR.

Anti-patterns

  • Do not use any model ID other than happyhorse-1.0-video-edit.
  • Do not call this API synchronously — async header is required.
  • Do not pass more than 1 video, more than 5 reference images, or any first_frame / last_frame / driving_audio.
  • Do not pass ratio or duration — output ratio follows the input video and duration follows the truncation rule.
  • Video URLs expire after 24 hours; download and persist immediately.
  • Do not use this skill for generation from scratch — use aliyun-happyhorse-t2v, aliyun-happyhorse-i2v, or aliyun-happyhorse-r2v instead.

Workflow

  1. Confirm intent: style transfer vs. instruction edit, and whether reference images are needed.
  2. Validate the input video meets format / duration / resolution / fps / size limits.
  3. Build the media array with exactly 1 video plus 0-5 reference_image entries.
  4. Create async task and poll /tasks/{task_id} every ~15s; download output.video_url before 24-hour expiration.

References

  • See references/api_reference.md for full HTTP API details.
  • See references/sources.md for source links.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Aliyun Happyhorse Videoedit」では何ができますか?

Use when editing videos with DashScope HappyHorse 1.0 video editing model (happyhorse-1.0-video-edit). Use when implementing instruction-based video editing such as style transfer or local replacement, optionally guided by 0-5 reference images, via the video-synthesis async API on Alibaba Cloud Model Studio.

TypingMindでAliyun Happyhorse Videoeditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Aliyun Happyhorse Videoeditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAliyun Happyhorse Videoeditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/cinience/alicloud-skills/tree/main/skills/ai/video/aliyun-happyhorse-videoeditを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Aliyun Happyhorse Videoeditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Aliyun Happyhorse Videoeditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAliyun Happyhorse Videoeditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Aliyun Happyhorse Videoedit」は無料ですか?

はい。cinienceがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇