メインコンテンツへスキップ
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.0-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.0-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,
    "user_group": "default"
  }
}

承認

Authorization
string
header
必須

##すべてのAPIはBearer Tokenによる認証が必要です##

APIキーの取得:

APIキー管理ページ にアクセスしてAPIキーを取得してください

リクエストヘッダーに以下を追加:

Authorization: Bearer YOUR_API_KEY

ボディ

application/json
model
enum<string>
デフォルト:happyhorse-1.0-reference-to-video
必須

動画生成モデル名

利用可能なオプション:
happyhorse-1.0-reference-to-video
:

"happyhorse-1.0-reference-to-video"

prompt
string
必須

テキストプロンプト、必須

長さ制限:

  • 中国語:最大 2500 文字
  • 中国語以外:最大 5000 文字
  • 超過部分は自動的に切り詰められます

キャラクター参照規約(重要):

  • プロンプトでは character1character2character3 ... のキーワードを明示的に使用し、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."

image_urls
string<uri>[]
必須

参照画像URL配列、必須1 ~ 9 枚

画像要件:

  • 対応フォーマット:JPEG、JPG、PNG、WEBP
  • 解像度:短辺 ≥ 400 px、720P以上の鮮明な画像を推奨(極端に小さい・ぼやけた・強圧縮された画像は避ける)
  • 推奨アスペクト比:短辺 / 長辺 ≥ 0.4、複数画像のアスペクト比を一致させる(ターゲット動画の比率に近づける)
  • ファイルサイズ:1枚あたり ≤ 10MB
  • 画像URLは 公開アクセス可能(HTTP または HTTPS) である必要があります。プライベートOSS、イントラネット、認証必須リンクは非対応

順序: 配列の順序がプロンプト内の character1character2 ... 参照に対応

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"
]
quality
enum<string>
デフォルト:720p

動画解像度ランク、デフォルトは 720p

選択可能な値:

  • 720p:標準解像度、デフォルト値
  • 1080p:HD解像度

課金注意: 解像度ランクは課金に直接影響します

利用可能なオプション:
720p,
1080p
:

"720p"

aspect_ratio
enum<string>
デフォルト:16:9

動画のアスペクト比、デフォルトは 16:9

選択可能な値:

  • 16:9(横向き)
  • 9:16(縦向き)
  • 1:1(正方形)
  • 4:3
  • 3:4
利用可能なオプション:
16:9,
9:16,
1:1,
4:3,
3:4
:

"16:9"

duration
integer
デフォルト:5

動画の再生時間(秒)、デフォルトは 5

範囲:

  • 整数 3 ~ 15
  • 再生時間は課金に直接影響します
必須範囲: 3 <= x <= 15
:

5

seed
integer

ランダムシード、デフォルトはランダム

説明:

  • 範囲:1 ~ 2147483647
  • 固定シードはプロンプト調整時のパラメータ変動を抑え、再現性を向上させます
必須範囲: 1 <= x <= 2147483647
:

42

callback_url
string<uri>

タスク完了後の 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"

レスポンス

動画生成タスクの作成に成功

created
integer

タスク作成タイムスタンプ

:

1761313744

id
string

タスクID

:

"task-unified-1761313744-h1r2vef0"

model
string

実際に使用されたモデル名

:

"happyhorse-1.0-reference-to-video"

object
enum<string>

タスクの具体的なタイプ

利用可能なオプション:
video.generation.task
progress
integer

タスク進捗パーセンテージ (0-100)

必須範囲: 0 <= x <= 100
:

0

status
enum<string>

タスクステータス

利用可能なオプション:
pending,
processing,
completed,
failed,
cancelled
:

"pending"

task_info
object

動画タスクの詳細情報

type
enum<string>

タスクの出力タイプ

利用可能なオプション:
text,
image,
audio,
video
:

"video"

usage
object

使用量と課金情報