
AI 媒体创作工具
在统一工作区中创建 AI 图片和视频
在 Best Image AI 使用 Seedance 2.0 Mini API 创建 4–15 秒的视频。用参考图片或片段引导运动、添加音频,并以 480p 或 720p 导出。可用相同素材测试多种动作效果。
Seedance V2.0 Mini Reference-to-Video 是字节跳动推出的一款高性价比模型,可根据图像、视频和音频参考素材生成视频。它将多模态引导与灵活的输出控制相结合,适合需要保持一致视觉方向、但不需要标准版 Seedance V2.0 模型所提供高分辨率输出的创作者和开发者。
上传一个或多个参考视频时,生成费用会统一翻倍一次。无论上传的参考视频数量或时长如何,倍数都相同。
注意:每个请求必须包含至少一个图像或视频参考素材。上传的每个视频和音频片段时长必须介于 2 到 15 秒之间。不支持仅使用音频的请求。
在浏览器中探索多种 AI 创作工具,快速完成图像和视频工作流,再通过 Best Image AI 面向生产环境的模型 API 扩展成功创意。Best Image AI 为所有模型提供统一 API 层,让工作流的使用和扩展更轻松。
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'seedance-v2.0-mini-reference-to-video',
prompt:
'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
images: ['https://example.com/character-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/audio-reference.mp3'],
resolution: '720p',
: ,
: ,
: ,
}),
});
{ data } = response.();
taskId = data.;
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'model_name': 'seedance-v2.0-mini-reference-to-video',
'prompt': 'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
'images': ['https://example.com/character-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/audio-reference.mp3'],
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': ,
},
)
result = response.json()
task_id = result[][]
curl -X POST 'https://api.flaq.ai/api/v1/video/task' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model_name": "seedance-v2.0-mini-reference-to-video",
"prompt": "Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.",
"images": ["https://example.com/character-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/audio-reference.mp3"],
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true
}'
# 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)