Tạo chuyển động cho hình ảnh qua API Seedance 2.0 Mini với âm thanh tùy chọn, thời lượng linh hoạt, nhiều tỷ lệ khung hình và đầu ra ByteDance ổn định cho quy trình làm việc có thể mở rộng.
API ByteDance Seedance V2.0 Mini Image-to-Video mang đến hoạt ảnh video AI nhanh, chi phí hợp lý cho nhà phát triển và đội ngũ sáng tạo. Seedance 2.0 Mini là phiên bản tiết kiệm chi phí của Seedance V2.0, được xây dựng cho người dùng muốn có quy trình Seedance image-to-video cốt lõi với lặp nhanh hơn và chi phí sản xuất thấp hơn. Tích hợp API image-to-video này chuyển ảnh nguồn thành clip video hoạt ảnh với hướng dẫn bằng prompt, định dạng linh hoạt và âm thanh tùy chọn trên Best Image AI.
Lưu ý Vui lòng đảm bảo ảnh đầu vào và prompt của bạn tuân thủ nguyên tắc an toàn nội dung của ByteDance. Nếu xảy ra lỗi, hãy kiểm tra nội dung để tìm chất liệu bị hạn chế, điều chỉnh rồi thử lại.
Seedance V2.0 Mini vs. Seedance V2.0 Standard Image-to-Video Seedance V2.0 Standard cung cấp quy trình hoạt ảnh ảnh chuyên nghiệp đầy đủ. Seedance V2.0 Mini duy trì cùng các trường hợp sử dụng Seedance image-to-video thực tế, đồng thời nhấn mạnh tạo rẻ hơn và nhanh hơn cho đội ngũ sáng tạo khối lượng lớn.
Seedance V2.0 Mini vs. Seedance V2.0 Fast Image-to-Video Seedance V2.0 Fast được tối ưu quanh hoạt ảnh tăng tốc. Seedance V2.0 Mini tập trung trực tiếp hơn vào chi phí hợp lý, khiến nó trở thành lựa chọn mạnh cho các đội ngũ cần nhiều bản nháp hoạt ảnh ảnh và biến thể sản xuất.
Seedance V2.0 Mini vs. Veo 3.1 Fast Image-to-Video Veo 3.1 Fast cung cấp quy trình hoạt ảnh ảnh nhanh của Google. Seedance V2.0 Mini cung cấp tạo image-to-video của ByteDance với điều khiển linh hoạt, định dạng xuất bản rộng và lộ trình API tiết kiệm chi phí cho đầu ra có thể mở rộng.
Seedance V2.0 Mini vs. Kling Image-to-Video Kling mạnh về chuyển động nhân vật và hoạt ảnh lấy con người làm trung tâm. Seedance V2.0 Mini hữu ích cho hoạt ảnh từ ảnh nguồn với chi phí hợp lý trên các quy trình nội dung sản phẩm, marketing, chân dung và xã hội.
Seedance V2.0 Mini vs. Pika Image-to-Video Pika cung cấp công cụ hoạt ảnh dễ tiếp cận và tập trung vào creator. API Seedance V2.0 Mini được thiết kế cho nhà phát triển và đội ngũ sản xuất cần tích hợp lập trình, mở rộng với chi phí hợp lý và phân phối image-to-video lặp lại.
// 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-mini-image-to-video',
prompt: 'Gentle camera push-in; leaves rustle softly in the breeze',
resolution: '720p',
duration: 8,
aspect_ratio: '16:9',
seed: -1,
sound: true,
image_url: 'https://example.com/first-frame.jpg',
image_end_url: 'https://example.com/last-frame.jpg'
})
});
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-mini-image-to-video',
'prompt': 'Gentle camera push-in; leaves rustle softly in the breeze',
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'seed': -1,
'sound': True,
'image_url': 'https://example.com/first-frame.jpg',
'image_end_url': 'https://example.com/last-frame.jpg'
}
)
result = response.json()
task_id = result['data']['task_id']
# 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-mini-image-to-video",
"prompt": "Gentle camera push-in; leaves rustle softly in the breeze",
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"seed": -1,
"sound": true,
"image_url": "https://example.com/first-frame.jpg",
"image_end_url": "https://example.com/last-frame.jpg"
}'
# 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)