curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan3.0-image-to-video",
"prompt": "The boy in the frame “comes alive” out of the wall and performs an English rap at breakneck speed, while street lights under a railway bridge at night create a cinematic mood.",
"image_start": "https://example.com/first_frame.png",
"duration": 5,
"quality": "720p"
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "wan3.0-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_parameter",
"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: wan3.0-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"
}
}Wan3.0 Image-to-Video 画像から動画
image_startを渡して動画の先頭フレームを厳密に指定します。さらにimage_endを渡すと末尾フレームも同時に厳密指定できます- 参照素材は受け付けません(参照動画 / 参照音声 / ファイル / ウェブページ):先頭/末尾フレームと参照素材は排他です。参照を組み合わせたい場合は Wan3.0 参照から動画 をご利用ください
- 画像は最大 2 枚(先頭フレーム + 末尾フレーム)。3 枚以上の参照画像が必要な場合は参照から動画をご利用ください
- 非同期処理モード、返却されたタスク ID でステータスを照会
- 生成された動画リンクの有効期間は 24 時間です。お早めに保存してください
課金について
- 課金式:課金時間 = 入力動画の長さ + 出力動画の長さ、秒単位で課金
- 解像度倍率:
480p= 1x(基準)、720p= 2x、1080p= 4x - 参照画像、参照音声、参照ファイル、ウェブページのリンクはいずれも課金対象外
durationに-1(スマート時間)を指定した場合は上限の30秒で満額を事前確保し、タスク成功後に実際の出力時間で精算、差額は自動的に返却されますgenerate_audioトラックのオン/オフで価格は同じです- タスク失敗時は課金されず、凍結された金額は全額返却されます
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan3.0-image-to-video",
"prompt": "The boy in the frame “comes alive” out of the wall and performs an English rap at breakneck speed, while street lights under a railway bridge at night create a cinematic mood.",
"image_start": "https://example.com/first_frame.png",
"duration": 5,
"quality": "720p"
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "wan3.0-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 165,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 50,
"user_group": "default"
}
}{
"error": {
"code": "invalid_parameter",
"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: wan3.0-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
ボディ
モデル名。wan3.0-image-to-video で固定
wan3.0-image-to-video "wan3.0-image-to-video"
先頭フレーム画像 URL。生成される動画の最初のフレームとして厳密に使用されます。必須
画像制限:
- フォーマット:JPEG、JPG、PNG(透明非対応)、BMP、WEBP
- 解像度:幅・高さが
[240, 8000]ピクセル - アスペクト比:1:8 ~ 8:1
- ファイルサイズ:
20MB以下
"https://example.com/first_frame.jpg"
動画生成のテキストプロンプト。中国語と英語に対応し、漢字/アルファベットはそれぞれ 1 文字としてカウント、最大長は 20000 文字で、超過分は自動的に切り捨てられます(エラーにはなりません)
先頭フレーム(または先頭/末尾フレーム)の間に起こる動き、カメラワーク、画面の変化を記述します。
"A young girl's smile gradually turns into a big laugh, the camera slowly pushes in, and the background light shifts from cool tones to warm tones."
末尾フレーム画像 URL。生成される動画の最後のフレームとして厳密に使用されます。省略可
制約: image_start と組み合わせて使用する必要があり、末尾フレームのみの指定はできません。
画像制限:
- フォーマット:JPEG、JPG、PNG(透明非対応)、BMP、WEBP
- 解像度:幅・高さが
[240, 8000]ピクセル - アスペクト比:1:8 ~ 8:1
- ファイルサイズ:
20MB以下
"https://example.com/last_frame.jpg"
生成する動画の長さ(秒)、デフォルトは 5
指定できる値:
2~30の任意の整数-1:スマート時間。プロンプトと入力素材に基づきモデルが出力の長さを自動的に決定します
スマート時間の課金方法: 送信時点ではモデルがどれだけの長さを生成するか分からないため、上限の 30 秒で満額を事前確保し、タスク成功後に実際の出力時間で精算、多く凍結した分は自動的に返却されます。残高が満額の事前確保を賄えない場合は、明示的な秒数を指定してください。
5
動画の解像度、デフォルトは 720p
選択肢:
480p:解像度は低め、価格は最安(課金の基準)720p:標準解像度、デフォルト値。価格は480pの 2 倍1080p:高解像度、価格は480pの 4 倍
480p, 720p, 1080p "720p"
動画のアスペクト比、デフォルトは adaptive
選択肢:
adaptive:自動。入力素材の比率とプロンプトの意図からモデルが適切なアスペクト比を推奨します。デフォルト値16:9(横向き)、9:16(縦向き)、1:1(正方形)、4:3、3:4
adaptive, 16:9, 9:16, 1:1, 4:3, 3:4 "16:9"
出力動画に音声トラックを含めるかどうか、デフォルトは true
選択肢:
true:出力動画に音(人の声、効果音、BGM)を含めます。デフォルト値false:無音の動画を出力します
音のオン/オフで価格は同じで、追加料金はかかりません。
true
ランダムシード。生成結果の再現に使用します。デフォルトはランダム
説明:
- 範囲:
0~2147483647 - シードを固定するとプロンプト調整時の変動を抑え、再現性が向上します
0 <= x <= 214748364742
タスク完了後の HTTPS コールバックアドレス
コールバックタイミング:
- タスク完了(completed)、失敗(failed)、またはキャンセル(cancelled)時にトリガー
- 課金確認完了後に送信
セキュリティ制限:
- 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-1774857405-abc123"
実際に使用されたモデル名
"wan3.0-image-to-video"
タスクタイプ
video.generation.task タスク進捗率(0-100)
0 <= x <= 1000
タスクステータス
pending, processing, completed, failed "pending"
動画タスクの詳細情報
Show child attributes
Show child attributes
タスク出力タイプ
text, image, audio, video "video"
使用量と課金情報
Show child attributes
Show child attributes