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-text-to-video",
"prompt": "A miniature city built from cardboard and bottle caps comes to life at night. A cardboard train slowly passes through, dotted with tiny lights illuminating the path ahead.",
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"seed": 42
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1t2vab8",
"model": "happyhorse-1.1-text-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-text-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 Text-to-Video テキストから動画
- HappyHorse 1.1 テキストから動画。テキストプロンプトのみで動画を生成
- 非同期処理モード。返却されたタスクIDで照会してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
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-text-to-video",
"prompt": "A miniature city built from cardboard and bottle caps comes to life at night. A cardboard train slowly passes through, dotted with tiny lights illuminating the path ahead.",
"quality": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"seed": 42
}
'{
"created": 1761313744,
"id": "task-unified-1761313744-h1t2vab8",
"model": "happyhorse-1.1-text-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-text-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
ボディ
動画生成モデル名
happyhorse-1.1-text-to-video "happyhorse-1.1-text-to-video"
テキストプロンプト、必須
長さ制限:
- 中国語:最大
2500文字 - 中国語以外:最大
5000文字 - 超過部分は自動的に切り詰められます
プロンプトのヒント:
- ショットごとの詳細な記述により、より良いマルチショットの叙事効果が得られます
- 例:
ショット1 [0~3s] ロングショット:...; ショット2 [3~6s] ミディアムショット:...
"A miniature city built from cardboard and bottle caps comes to life at night. A cardboard train slowly passes through, dotted with tiny lights illuminating the path ahead."
動画解像度ランク、デフォルトは 720p
選択可能な値:
720p:標準解像度、デフォルト値1080p:HD解像度
課金注意: 解像度ランクは課金に直接影響します
720p, 1080p "720p"
動画のアスペクト比、デフォルトは 16:9
選択可能な値:
16:9(横向き)9:16(縦向き)1:1(正方形)4:33:44:55:49:2121:9
16:9, 9:16, 1:1, 4:3, 3:4, 4:5, 5:4, 9:21, 21:9 "16:9"
動画の再生時間(秒)、デフォルトは 5 秒
範囲:
- 整数
3~15 - 再生時間は課金に直接影響します
3 <= x <= 155
ランダムシード、デフォルトはランダム
説明:
- 範囲:
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-h1t2vab8"
実際に使用されたモデル名
"happyhorse-1.1-text-to-video"
タスクの具体的なタイプ
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