コンテンツへスキップ

Happy Horse Video Edit

統合

モデルID alibaba/happy-horse/video-edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/happy-horse/video-edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

例と同様のファイル: $5.60 5,600 APIクレジット · ≈ ₽602.45 実行前にファイルを計測します このページで実行

APIキーを取得
Alibaba 動画変換 参照入力1080pまで #happy-horse#video-editing#video-to-video

自然言語のプロンプトで既存の動画を編集します。最大 5 枚の参照画像に対応します

Alibaba · 動画

最初の結果がここに表示されます

以下でリクエストを作成し、APIキーで実行してください。出力はストレージにコピーされ、永久保存または無料で7日保存されます。

リクエストを作成

コントロールはモデルスキーマから生成されます。値を変更するとコードと価格が更新されます。

•必須

行う編集の説明テキスト。2500 文字以内。指定した画像は @Image1、@Image2 から @Image5 で参照します。

•必須 video_url
ファイルをドロップ、または

編集用のソース動画 URL。出力はアスペクト比を維持し、長い入力では最初の部分のみを残して、長さは最大 15 s まで入力動画に合わせます。MP4 または MOV(H.264 推奨)を指定し、長さは 3–60 s、サイズは 100 MB 以下、フレームレートは 8 fps 超、アスペクト比は 1:2.5–2.5:1、長辺は最大 2160 px、短辺は 320 px 以上にしてください。タイムアウトは 30.0 s です。

resolution デフォルト 1080p

結果の動画の解像度ティア。

詳細設定 images · audio_setting · seed · enable_safety_checker
reference_image_urls
ファイルをドロップ、または

任意の編集ガイダンス画像。各ファイルは 10 MB 以下で、両方の寸法が 300px 以上。JPEG、JPG、PNG、WEBP 形式で 5 枚以内、アスペクト比は 1:2.5–2.5:1 の範囲で指定します。

audio_setting デフォルト auto

入力動画の音声を変更せず引き継ぐには 'origin' を選択し、モデルに音声を再生成するか判断させるには 'auto' を選択します。

再現可能な結果を得るためのランダムシード。0~2147483647。

POST /run/alibaba/happy-horse/video-edit?wait=20 見積もり → $5.60
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/alibaba/happy-horse/video-edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

このリクエストを実行

キーはこのブラウザ内に保持されます。Doitong APIにのみ送信され、「記憶する」にチェックを入れた場合のみlocalStorageに保存されます。 APIキーを取得

Happy Horse Video Editについて

3 秒から 60 秒のソース動画(MP4 または MOV、最大 100 MB)を `prompt` に従って編集します。最大 5 枚の参照画像を、プロンプト内で @Image1 から @Image5 として指定できます。`resolution` は 720p または 1080p で、`audio_setting` はモデルに任せる ('auto') か、元の音声を保持する ('origin') かを選べます。

パラメータ

正式名称またはネイティブ名のいずれか一方を送信してください。両方は送信しないでください。 正式名称

名前型 デフォルト許可される値 説明
video_url必須 video
型url · video
編集用のソース動画 URL。出力はアスペクト比を維持し、長い入力では最初の部分のみを残して、長さは最大 15 s まで入力動画に合わせます。MP4 または MOV(H.264 推奨)を指定し、長さは 3–60 s、サイズは 100 MB 以下、フレームレートは 8 fps 超、アスペクト比は 1:2.5–2.5:1、長辺は最大 2160 px、短辺は 320 px 以上にしてください。タイムアウトは 30.0 s です。
prompt必須
型string
行う編集の説明テキスト。2500 文字以内。指定した画像は @Image1、@Image2 から @Image5 で参照します。
reference_image_urls任意 images
型url[] · image
任意の編集ガイダンス画像。各ファイルは 10 MB 以下で、両方の寸法が 300px 以上。JPEG、JPG、PNG、WEBP 形式で 5 枚以内、アスペクト比は 1:2.5–2.5:1 の範囲で指定します。
resolution任意
型enum
デフォルト1080p
720p1080p
結果の動画の解像度ティア。
audio_setting任意
型enum
デフォルトauto
autoorigin
入力動画の音声を変更せず引き継ぐには 'origin' を選択し、モデルに音声を再生成するか判断させるには 'auto' を選択します。
seed任意
型integer | null
再現可能な結果を得るためのランダムシード。0~2147483647。
enable_safety_checker任意
型boolean
デフォルトtrue
入力と出力のモデレーション。アカウントに無効化権限があり、オプションをオフにしない限り、すべてのリクエストで適用されます。
必須 正式名称(こちらも使用可能)

ファイルパラメータには、公開されたhttps:// URL、10 MBまでのdata: URI、またはアップロードしたファイルのfile_urlを指定します。 ファイル

出力

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/happy-horse/video-edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 5600,
    "usd": "5.60",
    "charged": 5600,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ファイルの保存期間を選択すべてのoutputs[].urlはストレージ上のコピーです。アカウント設定または?storage=により、永久保存(GB・月単位で有料)または無料で7日保存できます。
すべてのモデルで同じ形式画像、動画、音声のいずれでも、type、url、content_type、width、height、durationが含まれます。outputはモデル独自の結果オブジェクトです。
出力フィールド
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}生成された動画ファイル。
seed
integer生成時に適用したシード値。

その他のモデル: 動画変換

AIエージェント向け:このページのMarkdown版はこちらです: https://doitong.com/ja/developers/models/alibaba/happy-horse/video-edit.md. すべてのモデルとガイド: https://doitong.com/developers/llms.txt