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-image-to-video",
"prompt": "Make the cat in the picture run on the grass",
"image_urls": [
"https://cdn.example.com/cat.png"
],
"quality": "720p",
"duration": 5
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1i2vcd9",
"model": "happyhorse-1.1-image-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,
"user_group": "default"
}
}{
"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-image-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 Image-to-Video 画像から動画
- HappyHorse 1.1 画像から動画。1枚の先頭フレーム画像から動画を生成
promptは任意(省略時は先頭フレームによる自由な解釈)- 出力アスペクト比は先頭フレームから自動決定。
aspect_ratioには対応していません - 非同期処理モード。返却されたタスクIDで照会してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
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-image-to-video",
"prompt": "Make the cat in the picture run on the grass",
"image_urls": [
"https://cdn.example.com/cat.png"
],
"quality": "720p",
"duration": 5
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1i2vcd9",
"model": "happyhorse-1.1-image-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,
"user_group": "default"
}
}{
"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-image-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
動画生成モデル名
利用可能なオプション:
happyhorse-1.1-image-to-video 例:
"happyhorse-1.1-image-to-video"
先頭フレーム画像URL、必須(配列の最初の要素を先頭フレームとして使用)
画像要件:
- 対応フォーマット:JPEG、JPG、PNG、WEBP
- 解像度:幅・高さ共に ≥
300px - アスペクト比:
1:2.5~2.5:1 - ファイルサイズ:≤
10MB - 画像URLは 公開アクセス可能(HTTP または HTTPS) である必要があります。プライベートOSS、イントラネット、認証必須リンクは非対応
Required array length:
1 element例:
["https://cdn.example.com/cat.png"]
テキストプロンプト、任意(省略時は先頭フレームによる自由な解釈)
長さ制限:
- 中国語:最大
2500文字 - 中国語以外:最大
5000文字 - 超過部分は自動的に切り詰められます
例:
"Make the cat in the picture run on the grass"
動画解像度ランク、デフォルトは 720p
選択可能な値:
720p:標準解像度、デフォルト値1080p:HD解像度
課金注意: 解像度ランクは課金に直接影響します
利用可能なオプション:
720p, 1080p 例:
"720p"
動画の再生時間(秒)、デフォルトは 5 秒
範囲:
- 整数
3~15 - 再生時間は課金に直接影響します
必須範囲:
3 <= x <= 15例:
5
ランダムシード、デフォルトはランダム
説明:
- 範囲:
1~2147483647 - 固定シードはプロンプト調整時のパラメータ変動を抑え、再現性を向上させます
必須範囲:
1 <= x <= 2147483647例:
42
タスク完了後の 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-h1i2vcd9"
実際に使用されたモデル名
例:
"happyhorse-1.1-image-to-video"
タスクの具体的なタイプ
利用可能なオプション:
video.generation.task タスク進捗パーセンテージ (0-100)
必須範囲:
0 <= x <= 100例:
0
タスクステータス
利用可能なオプション:
pending, processing, completed, failed, cancelled 例:
"pending"
動画タスクの詳細情報
Show child attributes
Show child attributes
タスクの出力タイプ
利用可能なオプション:
text, image, audio, video 例:
"video"
使用量と課金情報
Show child attributes
Show child attributes