
Văn bản thành hình ảnh
Tạo hình ảnh AI từ prompt văn bản
Tạo video theo hướng dẫn qua Seedance 2.0 Reference-to-Video API với khả năng hỗ trợ tạo người chân thực, kiểm soát tham chiếu, âm thanh tích hợp và đầu ra ByteDance ổn định.
// 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: 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
resolution: '1080p',
duration: 8,
aspect_ratio: '16:9',
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-reference-to-video',
prompt: 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
resolution: '1080p',
duration: 10,
aspect_ratio: '16:9',
sound: true,
images: [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.jpg'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/voice-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[0].url);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
# 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': 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/subject-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/atmosphere-reference.mp3']
}
)
result = response.json()
task_id = result['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]
media_reference_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': 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
'resolution': '1080p',
'duration': 10,
'aspect_ratio': '16:9',
'sound': True,
'images': [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.jpg'
],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3']
}
)
media_reference_result = media_reference_response.json()
media_reference_task_id = media_reference_result['data']['task_id']
# 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 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": "Use image one for the subject, video one for the movement, and audio one for the atmosphere",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "16:9",
"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:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
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": "Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>",
"resolution": "1080p",
"duration": 10,
"aspect_ratio": "16:9",
"sound": true,
"images": [
"https://example.com/explorer-reference.jpg",
"https://example.com/environment-reference.jpg"
],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"]
}'
# 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"
| Tham số | Giá | Giá gốc | Giảm giá |
|---|
API ByteDance Seedance V2.0 Reference-to-Video cung cấp khả năng tạo video theo nội dung tham chiếu cho các nhà phát triển và đội ngũ sáng tạo trên Flaq AI. Tích hợp API hiện tại nhận prompt văn bản cùng ít nhất một hình ảnh hoặc video tham chiếu, kèm theo các nội dung tham chiếu bổ sung tùy chọn gồm hình ảnh, video và âm thanh. API hỗ trợ thời lượng có thể cấu hình, nhiều tỷ lệ khung hình, nhiều mức độ phân giải và tùy chọn cài đặt âm thanh được tạo cho các quy trình video có kiểm soát.
Lưu ý Cần có ít nhất một hình ảnh hoặc video tham chiếu; không thể chỉ dùng âm thanh làm đầu vào tham chiếu duy nhất. Hãy đảm bảo prompt và nội dung tham chiếu của bạn tuân thủ nguyên tắc an toàn nội dung của ByteDance.
Seedance V2.0 Reference-to-Video so với Seedance V2.0 Text-to-Video Seedance V2.0 Text-to-Video hoạt động từ prompt văn bản. Reference-to-Video bổ sung đầu vào hình ảnh, video và âm thanh tùy chọn được hỗ trợ cùng khả năng đề cập nội dung trong prompt.
Seedance V2.0 Reference-to-Video so với Seedance V2.0 Fast Reference-to-Video Cả hai biến thể cung cấp cùng loại nội dung tham chiếu và các điều khiển cốt lõi trên Flaq AI. Biến thể tiêu chuẩn bổ sung tùy chọn độ phân giải 1080p và 4K, trong khi biến thể Fast tập trung vào quy trình 480p và 720p.
Seedance V2.0 Reference-to-Video so với Wan 2.7 Reference-to-Video Cả hai API đều nhận hình ảnh và video tham chiếu. Wan 2.7 còn cung cấp điều khiển prompt âm và seed, trong khi Seedance V2.0 hỗ trợ nhiều âm thanh tham chiếu tùy chọn và nút bật/tắt âm thanh được tạo.
Seedance V2.0 Reference-to-Video so với Vidu Q3 Reference-to-Video Vidu Q3 Reference-to-Video sử dụng hình ảnh tham chiếu trong cấu hình Flaq AI hiện tại. Seedance V2.0 còn nhận video tham chiếu và âm thanh tham chiếu tùy chọn.
Seedance V2.0 Reference-to-Video so với Runway Video Tools Runway cung cấp bộ công cụ sáng tạo tương tác rộng hơn. Seedance V2.0 Reference-to-Video cung cấp quy trình API tập trung vào prompt, thao tác tải lên nội dung tham chiếu được hỗ trợ, cài đặt đầu ra và âm thanh được tạo.
Khám phá nhiều công cụ tạo AI cho quy trình hình ảnh và video nhanh ngay trong trình duyệt, rồi mở rộng các ý tưởng thành công bằng API model sẵn sàng cho sản xuất của Flaq AI. Flaq AI cung cấp một lớp API thống nhất cho tất cả model, giúp dễ dàng sử dụng và mở rộng quy trình của bạn.

Tạo hình ảnh AI từ prompt văn bản

Tạo hình ảnh AI từ hình ảnh và prompt văn bản

Tạo video AI từ prompt văn bản

Biến hình ảnh thành video 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 nhất quán từ nội dung đa phương tiện tham chiếu
API Seedance 2.5 cho Video Điện ảnh hiện đã hoạt động trên Flaq AI, mang đến cho các nhà sáng tạo và nhà phát triển quyền truy cập trực tiếp vào tính năng tạo video dựa trên prompt với âm thanh tùy chọn, tỷ lệ khung hình linh hoạt, đầu ra 480p hoặc 720p, và các clip dài từ 4 đến 30 giây.
API MiniMax H3 mang đến cho các nhóm làm video một tổ hợp hữu ích: tạo video từ hình ảnh, các tùy chọn đầu ra 768p và 2K, các đoạn clip dài tới 15 giây, và mức chi phí được niêm yết thấp hơn so với một số thiết lập Seedance 2.0 tương đương. MiniMax cũng đã công bố trọng số H3-Base trên Hugging Face, mở ra những lựa chọn mới cho nghiên cứu, quy trình tùy chỉnh và thử nghiệm tự lưu trữ ở những nơi giấy phép của nó cho phép.
So sánh Higgsfield MCP và CLI với các endpoint REST Seedance 2.0 của Flaq AI về endpoint, giá, cơ chế polling tác vụ, các biến thể mô hình, kiểm thử và các trường hợp sử dụng thực tế trong production.
So sánh WaveSpeed và Flaq AI cho các quy trình làm việc với API Seedance 2.0, lựa chọn endpoint, kiểm thử prompt, độ trễ, chi phí, định tuyến dự phòng (fallback routing), và xây dựng video có khả năng mở rộng.
Khám phá triển vọng phát hành Seedance 2.5, các nâng cấp API có khả năng sẽ có, các điểm so sánh với Seedance 2.0, các bài kiểm thử prompt và kế hoạch quy trình làm việc Flaq AI cho những người xây dựng video.
Một hướng dẫn thực tiễn về API Seedance 2.0 trên Flaq AI, với các tính năng, mẹo quy trình làm việc, bối cảnh về giá và những ý tưởng để tạo video từ văn bản nhanh hơn.