
Công cụ tạo nội dung đa phương tiện AI
Tạo hình ảnh và video AI trong một không gian làm việc hợp nhất
Tạo video 4–15 giây với API Seedance 2.0 Mini trên Best Image AI. Dùng ảnh hoặc clip tham chiếu để điều khiển chuyển động, thêm âm thanh và xuất 480p hoặc 720p.
Seedance V2.0 Mini Reference-to-Video là mô hình tiết kiệm chi phí của ByteDance, dùng để tạo video từ hình ảnh, video và âm thanh tham chiếu. Mô hình kết hợp hướng dẫn đa phương thức với các tùy chọn đầu ra linh hoạt, phù hợp với nhà sáng tạo và nhà phát triển cần duy trì định hướng hình ảnh nhất quán mà không cần đầu ra có độ phân giải cao hơn của mô hình Seedance V2.0 tiêu chuẩn.
Khi tải lên một hoặc nhiều video tham chiếu, chi phí tạo sẽ được nhân đôi một lần. Hệ số này không thay đổi bất kể số lượng hay thời lượng của các video tham chiếu đã tải lên.
Lưu ý: Mỗi yêu cầu phải có ít nhất một hình ảnh hoặc video tham chiếu. Mỗi video và đoạn âm thanh được tải lên phải dài từ 2 đến 15 giây. Không hỗ trợ yêu cầu chỉ có âm thanh.
Khám phá nhiều công cụ sáng tạo AI cho quy trình hình ảnh và video nhanh ngay trong trình duyệt, sau đó mở rộng các ý tưởng thành công bằng API mô hình sẵn sàng cho sản xuất của Best Image AI. Best Image AI cung cấp một lớp API thống nhất cho mọi mô hình, giúp bạn dễ dàng sử dụng và mở rộng quy trình.

Tạo hình ảnh và video AI trong một không gian làm việc hợp nhất
Tạo ảnh và video trong cuộc trò chuyện hoặc mở lại dự án gần đây

Xây dựng quy trình hình ảnh và video AI trực quan trên canvas vô hạn

Tạo video nhất quán từ phương tiện tham chiếu

Tạo hình ảnh AI từ câu lệnh văn bản

Tạo hình ảnh AI từ hình ảnh và câu lệnh văn bản

Tạo video AI từ câu lệnh văn bản

Biến hình ảnh thành video AI
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',
: ,
},
)
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)