
AI 媒体创作工具
在统一工作区中创建 AI 图片和视频
免费试用 Alibaba Wan 3.0 图生视频 API,让必填首帧向指定尾帧发展并配合声音,在 Best Image AI 精准掌控视觉序列的开场、动作与收束,让创作者细致控制画面推进。
Wan 3.0 图生视频 API 可将必填的首帧图像生成动画。如需引导最后一帧的构图,可提供尾帧图像。开发者可以用自然语言提示词控制画面运动,并设置时长、分辨率、宽高比、声音和种子值。Best Image AI 提供基于任务的集成,用于创建视频生成任务、监控进度并获取结果。
注意 PNG 图像不得包含 Alpha 通道。请按请求的宽高比调整所提供的每一帧,并在发布前检查过渡是否连贯、画面是否有伪影。
Wan 3.0 vs. Wan 2.7 Image-to-Video
Wan 2.7 可以为首帧制作动画,并可用尾帧引导结束画面。Wan 3.0 同样支持只提供首帧,或同时提供首帧和尾帧。
Wan 3.0 vs. Vidu Q3 Image-to-Video
Vidu Q3 支持图像驱动的视频生成和画面过渡。Wan 3.0 通过同一个图生视频接口支持这两种工作流。
Wan 3.0 vs. PixVerse C1 Image-to-Video
PixVerse C1 将首帧动画与过渡工作流分开。Wan 3.0 接受首帧图像和运动提示词,也可额外提供尾帧。
Wan 3.0 vs. Kling 3.0 Turbo Image-to-Video
Kling 3.0 Turbo 侧重快速图像动画。对于在面向 Alibaba 生态的 API 工作流中优先考虑明确尾帧引导的团队,Wan 3.0 是另一种选择。
Wan 3.0 vs. Veo 3.1 Image-to-Video
Veo 3.1 提供 Google 的图生视频接口。Wan 3.0 为开发者提供了另一种生产环境选择,支持可选的尾帧引导和灵活的输出设置。
在浏览器中探索多种 AI 创作工具,快速完成图像和视频工作流,再通过 Best Image AI 面向生产环境的模型 API 扩展成功创意。Best Image AI 为所有模型提供统一 API 层,让工作流的使用和扩展更轻松。
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'wan-3.0-image-to-video',
prompt: 'The camera glides forward as daylight gradually shifts into a warm evening glow',
image_url: 'https://example.com/start-frame.jpg',
image_end_url: 'https://example.com/end-frame.jpg',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
seed:
})
});
{ data } = response.();
taskId = data.;
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'wan-3.0-image-to-video',
'prompt': 'The camera glides forward as daylight gradually shifts into a warm evening glow',
'image_url': 'https://example.com/start-frame.jpg',
'image_end_url': 'https://example.com/end-frame.jpg',
'duration': 8,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'seed': 42
}
)
result = response.json()
task_id = result['data']['task_id']
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "wan-3.0-image-to-video",
"prompt": "The camera glides forward as daylight gradually shifts into a warm evening glow",
"image_url": "https://example.com/start-frame.jpg",
"image_end_url": "https://example.com/end-frame.jpg",
"duration": 8,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"seed": 42
}'
# Step 2: Poll for results
# Replace {task_id} with the task_id returned from the submit response
curl -X GET "https://api.flaq.ai/api/v1/video/{task_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
// Step 2: Poll for results
const taskId = data.task_id;
const pollResult = async (taskId) => {
const res = await fetch(`https://api.flaq.ai/api/v1/video/${taskId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return res.json();
};
while (true) {
const pollResultData = await pollResult(taskId);
const status = pollResultData.data.task_status;
if (status === 'succeed') {
console.log(pollResultData.data.task_result.videos[0].url);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
# Step 2: Poll for results
task_id = response.json()['data']['task_id']
poll_url = f"https://api.flaq.ai/api/v1/video/{task_id}"
while True:
poll_result = requests.get(poll_url, headers={'Authorization': 'Bearer YOUR_API_KEY'}).json()
status = poll_result['data']['task_status']
if status == 'succeed':
print(poll_result['data']['task_result']['videos'][0]['url'])
break
if status == 'failed':
print(poll_result['data']['task_status_msg'])
break
time.sleep(10)