Tạo video có định hướng bằng Seedance 2.0 Reference API. Sử dụng video tham chiếu, hỗ trợ người thật, tỷ lệ linh hoạt và đầu ra ổn định.
ByteDance Seedance V2.0 Reference-to-Video API cung cấp khả năng tạo video AI cấp độ chuyên nghiệp cho các nhà phát triển và nhóm sáng tạo yêu cầu kiểm soát tính nhất quán hình ảnh chính xác. Tích hợp API reference-to-video tiên tiến này cho phép bạn tạo các video clip chất lượng cao ở độ phân giải 480p và 720p bằng cách sử dụng video tham chiếu cùng hướng dẫn bằng prompt để định hướng chuyển động, nhịp độ và tính liên tục hình ảnh. Được xây dựng trên kiến trúc Dual-Branch Diffusion Transformer của ByteDance với đồng bộ hóa âm thanh native, mô hình Seedance V2.0 cung cấp quy trình tạo video có dẫn hướng từ nguồn ổn định trên Best Image AI.
Lưu ý Vui lòng đảm bảo video tham chiếu, âm thanh tùy chọn và các prompt của bạn tuân thủ hướng dẫn an toàn nội dung của ByteDance. Nếu xảy ra lỗi, hãy xem xét nội dung của bạn để tìm tài liệu bị hạn chế, điều chỉnh và thử lại.
Seedance V2.0 Reference-to-Video so với Seedance V2.0 Text-to-Video Seedance V2.0 Text-to-Video tạo video chỉ từ các mô tả văn bản. Seedance V2.0 Reference-to-Video API bổ sung đầu vào video tham chiếu để tăng cường dẫn hướng nguồn và tính liên tục hình ảnh.
Seedance V2.0 Reference-to-Video so với Kling 3.0 Reference Generation Kling 3.0 cung cấp tạo dựa trên tham chiếu với tổng hợp chuyển động con người mạnh mẽ. Seedance V2.0 Reference-to-Video API khác biệt thông qua đầu vào video tham chiếu, tạo âm thanh native, 6 định dạng tỷ lệ khung hình và thời lượng 15 giây mở rộng.
Seedance V2.0 Reference-to-Video so với Runway Gen-3 Custom Mode Runway Gen-3 Custom Mode cung cấp tạo dựa trên chủ thể với các điều khiển sáng tạo. Seedance V2.0 Reference-to-Video API cung cấp đầu vào video tham chiếu, đồng bộ hóa âm thanh native, kiểm soát camera cố định tùy chọn và 6 định dạng tỷ lệ khung hình.
Seedance V2.0 Reference-to-Video so với Pika Reference Generation Pika cung cấp tạo phong cách dựa trên tham chiếu với giao diện thân thiện với người dùng. Seedance V2.0 Reference-to-Video API cung cấp quyền truy cập lập trình, đầu vào video tham chiếu, tạo âm thanh native và thời lượng 15 giây mở rộng.
Seedance V2.0 Reference-to-Video so với Luma Ray Reference Mode Luma Ray được ca ngợi vì tạo nhanh và độ trung thực chủ thể. Seedance V2.0 Reference-to-Video API cung cấp độ trung thực tương đương với đầu vào video tham chiếu, tổng hợp âm thanh native, 6 định dạng tỷ lệ khung hình và không cần quản lý cơ sở hạ tầng.
// 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-reference-to-video',
prompt: 'Cinematic product reveal with smooth motion matching the reference style',
resolution: '720p',
duration: 8,
aspect_ratio: '16:9',
sound: true,
camera_fixed: false,
audio_url: 'https://example.com/reference-audio.mp3',
video_url: 'https://example.com/reference-video.mp4'
})
});
const { data } = await response.json();
const taskId = data.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': 'seedance-v2.0-reference-to-video',
'prompt': 'Cinematic product reveal with smooth motion matching the reference style',
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
'camera_fixed': False,
'audio_url': 'https://example.com/reference-audio.mp3',
'video_url': 'https://example.com/reference-video.mp4',
}
)
result = response.json()
task_id = result['data'][]
# 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-reference-to-video",
"prompt": "Cinematic product reveal with smooth motion matching the reference style",
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true,
"camera_fixed": false,
"audio_url": "https://example.com/reference-audio.mp3",
"video_url": "https://example.com/reference-video.mp4"
}'
# 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
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)