提交 Wan 2.2 Fast 图生视频任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.2-image-to-video-fast",
"input": {
"prompt": "A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.",
"resolution": "720p",
"seed": 22405,
"image_urls": [
"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png",
"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png"
]
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "wan2.2-image-to-video-fast",
"input": {
"prompt": "A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.",
"resolution": "720p",
"seed": 22405,
"image_urls": ["https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png", "https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png"]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'wan2.2-image-to-video-fast',
input: {
prompt: 'A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.',
resolution: '720p',
seed: 22405,
image_urls: [
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png',
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png'
]
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'wan2.2-image-to-video-fast',
'input' => [
'prompt' => 'A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.',
'resolution' => '720p',
'seed' => 22405,
'image_urls' => [
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png',
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Alibaba
Wan 2.2 Fast 图生视频
Wan 2.2 Fast API 使用 Alibaba Wan 2.2 Fast 快速图生视频
POST
/
api
/
generate
/
submit
提交 Wan 2.2 Fast 图生视频任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.2-image-to-video-fast",
"input": {
"prompt": "A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.",
"resolution": "720p",
"seed": 22405,
"image_urls": [
"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png",
"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png"
]
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "wan2.2-image-to-video-fast",
"input": {
"prompt": "A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.",
"resolution": "720p",
"seed": 22405,
"image_urls": ["https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png", "https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png"]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'wan2.2-image-to-video-fast',
input: {
prompt: 'A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.',
resolution: '720p',
seed: 22405,
image_urls: [
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png',
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png'
]
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'wan2.2-image-to-video-fast',
'input' => [
'prompt' => 'A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.',
'resolution' => '720p',
'seed' => 22405,
'image_urls' => [
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png',
'https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"wan2.2-image-to-video-fast\",\n \"input\": {\n \"prompt\": \"A gentle botanical time-lapse connects the supplied first and last frames. The same single pink water lily slowly opens its existing petals outward, gradually revealing the golden center, ending in the open flower pose of the last image. Keep the flower center, stem, lily pad, water surface, greenhouse background and soft lighting stable. Locked macro camera throughout. Smooth organic unfurling, intact petals, no new flowers or objects, no camera movement, no cuts or abrupt morphs.\",\n \"resolution\": \"720p\",\n \"seed\": 22405,\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/start.png\",\n \"https://cdn.vidgo.ai/apis/models/alibaba/wan/v2.2-a14b/image-to-video/turbo/v1/03/end.png\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
wan2.2-image-to-video-fast 让一张参考图片动起来,并可选用第二张图片作为尾帧,更好地控制过渡。
模型
- wan2.2-image-to-video-fast - 让参考图片动起来,生成短视频
关键参数
- 图片 URL:必填 1 张,最多支持 2 张
- 分辨率:
480p或720p - 种子:可选整数,用于复现输出
授权
所有 API 接口都需要 Bearer Token 认证
获取 API Key:
访问 API Key 管理页面(仪表盘 → API 密钥)获取 API Key
添加到请求头:
Authorization: Bearer VIDGO_API_KEY
请求体
application/json