使用 Seedance 2.0 Fast API 快速建立參考引導影片。結合真實人物支援、內建聲音、彈性比例和穩定輸出,更快生成符合參考方向的影片素材。 適合快速復用參考節奏、動作和人物表現,提升影片創意驗證效率。
ByteDance Seedance V2.0 Fast 參考生影片 API 在 Best Image AI 上提供符合成本效益的參考引導影片生成,適用於快速 創意工作流程。目前的 API 整合接受文字提示詞及至少一張參考圖片或一段參考影片,還可選擇加入其他圖片、 影片和音訊參考。它支援 480p 和 720p 輸出、可設定的 時長、多種寬高比,以及可選的生成聲音設定。
注意 至少需要一張參考圖片或一段參考影片;不能將音訊單獨用作唯一的參考輸入。 請確保您的提示詞和參考媒體符合 ByteDance 的內容安全準則。
Seedance V2.0 Fast 與 Seedance V2.0 Standard 參考生影片 兩個版本在 Best Image AI 上提供相同的參考媒體 類型和核心控制項。Fast 版本使用 480p 和 720p 輸出級別,而標準版本還 提供 1080p 和 4K 選項。
Seedance V2.0 Fast 與 Seedance V2.0 Fast 文字生成影片 Fast 文字生成影片根據文字提示詞運作。Fast 參考生影片增加了支援的圖片、影片和可選音訊輸入,以及在提示詞中提及媒體的功能。
Seedance V2.0 Fast 與 Wan 2.7 參考生影片 兩種 API 都接受圖片和影片參考。Wan 2.7 還提供負面提示詞和種子控制,而 Seedance V2.0 Fast 支援多個可選的音訊 參考和生成聲音切換。
Seedance V2.0 Fast 與 Vidu Q3 參考生影片 在目前的 Best Image AI 設定中,Vidu Q3 參考生影片使用圖片參考。Seedance V2.0 Fast 還接受參考影片和可選的參考音訊。
Seedance V2.0 Fast 與 Runway 影片工具 Runway 提供更廣泛的互動式創作套件。Seedance V2.0 Fast 參考生影片圍繞提示詞、支援的參考素材上傳、高效的輸出 設定和生成聲音,提供專注的 API 工作流程。
// Step 1: Submit generation request
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: 'seedance-v2.0-fast-reference-to-video',
prompt: 'Use image one for the subject, follow the movement from video one, and use audio one for the atmosphere',
resolution: '720p',
duration: 8,
aspect_ratio: '9:16',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/atmosphere-reference.mp3']
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1]
// <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
const mediaReferenceResponse = 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: 'seedance-v2.0-fast-reference-to-video',
prompt: 'Have the dancer from <<<image_1>>> perform the movement from <<<video_1>>> on the stage in <<<image_2>>>, using the rhythm from <<<audio_1>>>',
resolution: '720p',
duration: 10,
aspect_ratio: '9:16',
sound: true,
images: [
'https://example.com/dancer-reference.jpg',
'https://example.com/stage-reference.jpg'
],
videos: ['https://example.com/dance-movement-reference.mp4'],
audios: ['https://example.com/rhythm-reference.mp3']
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.task_id;
// 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[].);
;
}
(status === ) {
.(pollResultData..);
;
}
( (resolve, ));
}
# Step 1: Submit generation request
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': ,
: ,
: ,
: ,
: ,
: ,
: [],
: [],
: []
}
)
result = response.json()
task_id = result[][]
media_reference_response = requests.post(
,
headers={
: ,
:
},
json={
: ,
: ,
: ,
: ,
: ,
: ,
: [
,
],
: [],
: []
}
)
media_reference_result = media_reference_response.json()
media_reference_task_id = media_reference_result[][]
# Step 1: Submit generation request
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": "seedance-v2.0-fast-reference-to-video",
"prompt": "Use image one for the subject, follow the movement from video one, and use audio one for the atmosphere",
"resolution": "720p",
"duration": 8,
"aspect_ratio": "9:16",
"sound": true,
"images": ["https://example.com/subject-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/atmosphere-reference.mp3"]
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H \
-H \
-d
# 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)
# 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"