{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660,
"user_group": "default"
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: happyhorse-1.0-video-edit",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}HappyHorse 1.0 Video-Edit 動画編集
- HappyHorse 1.0 動画編集。1つのソース動画とテキスト指示でスタイル変換、ローカル置換などを実行
- スタイル / 主体ガイド用に 0〜5 枚の参照画像を任意で受け付け
duration非対応:出力動画の再生時間 =min(入力動画の再生時間, 15)、モデルが決定aspect_ratio非対応:出力アスペクト比はソース動画と一致- 特殊な課金ルール:
(入力動画の再生時間 + 出力動画の再生時間) × 解像度単価。モデルは15秒を超える入力を15秒に切り詰め - 非同期処理モード。返却されたタスクIDで照会してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660,
"user_group": "default"
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: happyhorse-1.0-video-edit",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}承認
##すべてのAPIはBearer Tokenによる認証が必要です##
APIキーの取得:
APIキー管理ページ にアクセスしてAPIキーを取得してください
リクエストヘッダーに以下を追加:
Authorization: Bearer YOUR_API_KEY
ボディ
動画生成モデル名
happyhorse-1.0-video-edit "happyhorse-1.0-video-edit"
編集指示テキスト、必須
長さ制限:
- 中国語:最大
2500文字 - 中国語以外:最大
5000文字 - 超過部分は自動的に切り詰められます
プロンプトのヒント:
- 創造的な記述ではなく編集指示を使用してください
- 例:
主人公の服を画像のストライプセーターに変更、動画の背景を雪山に変更
"Have the character in the video wear the striped sweater from the image"
編集対象のソース動画URL、必須、1個のみ(配列の最初の要素を使用)
動画要件:
- 対応フォーマット:MP4、MOV(H.264エンコード推奨)
- 再生時間:
3~60秒 - モデルは
15秒を超える入力を自動的に最初の15秒に切り詰め - 解像度:長辺 ≤
2160px、短辺 ≥320px - アスペクト比:
1:2.5~2.5:1 - ファイルサイズ:≤
100MB - フレームレート:>
8fps - 動画URLは 公開アクセス可能(HTTP または HTTPS) である必要があります。プライベートOSS、イントラネット、認証必須リンクは非対応
互換フィールド: video_url / video も受け付け(video_urls より優先度が低い)
1 element["https://cdn.example.com/source.mp4"]
参照画像URL配列、任意、0 ~ 5 枚
スタイル / 主体ガイドに使用。
画像要件:
- 対応フォーマット:JPEG、JPG、PNG、WEBP
- 解像度:幅・高さ共に ≥
300px - アスペクト比:
1:2.5~2.5:1 - ファイルサイズ:≤
10MB - 画像URLは 公開アクセス可能(HTTP または HTTPS) である必要があります
5["https://cdn.example.com/sweater.jpg"]
入力動画の元音声を保持するか、デフォルトは false
選択可能な値:
true:入力動画の元音声を保持false:元音声を破棄。モデルが新しい音声を生成
false
動画解像度ランク、デフォルトは 720p
選択可能な値:
720p:標準解像度、デフォルト値1080p:HD解像度
課金注意: 解像度ランクは課金に直接影響します
720p, 1080p "720p"
ランダムシード、デフォルトはランダム
説明:
- 範囲:
1~2147483647 - 固定シードはプロンプト調整時のパラメータ変動を抑え、再現性を向上させます
1 <= x <= 214748364742
タスク完了後の HTTPS コールバックアドレス
コールバックタイミング:
- タスク完了、失敗、またはキャンセル時にトリガー
- 課金確認完了後に送信
セキュリティ制限:
- HTTPS プロトコルのみ対応
- プライベートIPアドレスへのコールバックは禁止(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x など)
- URL の長さは
2048文字以内
コールバックメカニズム:
- タイムアウト:
10秒 - 失敗後最大
3回リトライ(失敗後1/2/4秒でそれぞれリトライ) - コールバックレスポンスボディのフォーマットはタスク照会APIの返却フォーマットと同一
- 2xx ステータスコードを成功とみなし、その他のステータスコードでリトライをトリガー
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクの作成に成功
タスク作成タイムスタンプ
1761313744
タスクID
"task-unified-1761313744-h1edgh12"
実際に使用されたモデル名
"happyhorse-1.0-video-edit"
タスクの具体的なタイプ
video.generation.task タスク進捗パーセンテージ (0-100)
0 <= x <= 1000
タスクステータス
pending, processing, completed, failed, cancelled "pending"
動画タスクの詳細情報
Show child attributes
Show child attributes
タスクの出力タイプ
text, image, audio, video "video"
使用量と課金情報
Show child attributes
Show child attributes