curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happyhorse-1.1-reference-to-video",
"prompt": "A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head.",
"image_urls": [
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1r2vef0",
"model": "happyhorse-1.1-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 607500
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"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.1-reference-to-video",
"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.1
HappyHorse 1.1 Reference-to-Video 参照画像から動画
- HappyHorse 1.1 参照画像から動画。1〜9枚の参照画像とテキストプロンプトに対応
- キャラクター参照規約:
prompt内でcharacter1、character2、character3… のキーワードを使用し、image_urls配列内の画像を順に参照 - 非同期処理モード。返却されたタスクIDで照会してください
- 生成された動画リンクの有効期限は7日間です。お早めに保存してください
- まれに、生成結果が公式の元リンクで提供され、有効期限が7日未満になることがあります。早めにダウンロードして保存してください。
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happyhorse-1.1-reference-to-video",
"prompt": "A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head.",
"image_urls": [
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
],
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1r2vef0",
"model": "happyhorse-1.1-reference-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 607500
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"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.1-reference-to-video",
"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
ボディ
application/json
テキストプロンプト、必須
長さ制限:
- 中国語:最大
2500文字 - 中国語以外:最大
5000文字 - 超過部分は自動的に切り詰められます
キャラクター参照規約(重要):
- プロンプトでは
character1、character2、character3... のキーワードを明示的に使用し、image_urls内の画像を順に参照する必要があります - 1枚目は
character1、2枚目はcharacter2に対応、以下同様 - 明示的な参照がないと、キャラクターの混同が発生する可能性があります
例:
"A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head."
参照画像URL配列、必須、1 ~ 9 枚
画像要件:
- 対応フォーマット:JPEG、JPG、PNG、WEBP
- 解像度:短辺 ≥
400px、720P以上の鮮明な画像を推奨(極端に小さい・ぼやけた・強圧縮された画像は避ける) - 推奨アスペクト比:短辺 / 長辺 ≥
0.4、複数画像のアスペクト比を一致させる(ターゲット動画の比率に近づける) - ファイルサイズ:1枚あたり ≤
10MB - 画像URLは 公開アクセス可能(HTTP または HTTPS) である必要があります。プライベートOSS、イントラネット、認証必須リンクは非対応
順序: 配列の順序がプロンプト内の character1、character2 ... 参照に対応
Required array length:
1 - 9 elements例:
[
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
]
タスク完了後の 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"
レスポンス
動画生成タスクの作成に成功