
Trình tạo AI Text to Image
Tạo hình ảnh trau chuốt từ prompt bằng các model hình ảnh AI hàng đầu, thiết lập linh hoạt và quy trình nhanh trên trình duyệt.
Dùng thử miễn phí Vidu Q3 Reference-to-Video API với tối đa bốn hình ảnh tham chiếu, đầu ra 1080p, âm thanh tùy chọn, thời lượng linh hoạt và kiểm soát seed.
// 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: 'viduq3-reference-to-video',
prompt: 'Keep the character from image one and the jacket details from image two while walking through a rainy city',
resolution: '1080p',
duration: 8,
aspect_ratio: '9:16',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/outfit-reference.jpg'
],
sound: true,
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based and follows the images array order:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<image_3>>> = images[2]
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: 'viduq3-reference-to-video',
prompt: 'Keep the character from <<<image_1>>> wearing the coat from <<<image_2>>> while entering the rainy city shown in <<<image_3>>>, then return to a close-up of <<<image_1>>>',
resolution: '1080p',
duration: 8,
aspect_ratio: '9:16',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/coat-reference.jpg',
'https://example.com/rainy-city-reference.jpg'
],
sound: true,
seed: 42
})
});
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': 'viduq3-reference-to-video',
'prompt': 'Keep the character from image one and the jacket details from image two while walking through a rainy city',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '9:16',
'images': [
'https://example.com/character-reference.jpg',
'https://example.com/outfit-reference.jpg'
],
'sound': True,
'seed': 42
}
)
result = response.json()
task_id = result['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based and follows the images array order:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<image_3>>> = images[2]
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': 'viduq3-reference-to-video',
'prompt': 'Keep the character from <<<image_1>>> wearing the coat from <<<image_2>>> while entering the rainy city shown in <<<image_3>>>, then return to a close-up of <<<image_1>>>',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '9:16',
'images': [
'https://example.com/character-reference.jpg',
'https://example.com/coat-reference.jpg',
'https://example.com/rainy-city-reference.jpg'
],
'sound': True,
'seed': 42
}
)
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": "viduq3-reference-to-video",
"prompt": "Keep the character from image one and the jacket details from image two while walking through a rainy city",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "9:16",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/outfit-reference.jpg"
],
"sound": true,
"seed": 42
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based and follows the images array order:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<image_3>>> = images[2]
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": "viduq3-reference-to-video",
"prompt": "Keep the character from <<<image_1>>> wearing the coat from <<<image_2>>> while entering the rainy city shown in <<<image_3>>>, then return to a close-up of <<<image_1>>>",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "9:16",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/coat-reference.jpg",
"https://example.com/rainy-city-reference.jpg"
],
"sound": true,
"seed": 42
}'
# 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 Vidu Q3 Reference-to-Video mang đến khả năng tạo video AI sẵn sàng cho sản xuất dành cho các nhà phát triển và đội ngũ sáng tạo cần nhân vật, vật thể và cảnh nhất quán. Tích hợp API reference-to-video này sử dụng một hoặc nhiều hình ảnh tham chiếu để cố định danh tính chủ thể trong khi tạo video nhiều cảnh quay mạch lạc với âm thanh gốc được đồng bộ. Được xây dựng trên mô hình Q3 thế hệ mới của Vidu, giải pháp này kết hợp khả năng chuyển đổi máy quay thông minh, tính nhất quán cao giữa các cảnh quay và điều khiển đầu ra linh hoạt cho các quy trình kể chuyện có thể mở rộng trên Flaq AI.
Lưu ý Hãy đảm bảo prompt và hình ảnh tham chiếu của bạn tuân thủ nguyên tắc an toàn nội dung của Vidu. Nếu xảy ra lỗi, hãy kiểm tra nội dung bị hạn chế trong đầu vào, điều chỉnh rồi thử lại.
Vidu Q3 Reference-to-Video so với Vidu Q3 Image-to-Video Vidu Q3 Image-to-Video tạo chuyển động cho một hình ảnh ban đầu. Vidu Q3 Reference-to-Video sử dụng nhiều tham chiếu chủ thể để duy trì danh tính và tính liền mạch trong quá trình tạo nội dung tường thuật nhiều cảnh quay phong phú hơn.
Vidu Q3 Reference-to-Video so với Vidu Q3 Turbo Reference-to-Video Vidu Q3 Turbo ưu tiên tốc độ tối đa và hiệu quả chi phí. Vidu Q3 tập trung vào tính nhất quán cao hơn qua các vị trí máy quay và chất lượng sản xuất cân bằng cho quy trình tường thuật, thương hiệu và nhân vật.
Vidu Q3 Reference-to-Video so với Seedance V2.0 Reference-to-Video Seedance V2.0 hỗ trợ đầu vào tham chiếu đa phương thức đa dạng. Vidu Q3 tạo khác biệt qua khả năng cố định chủ thể bằng nhiều hình ảnh, chuyển đổi máy quay thông minh và hội thoại, hiệu ứng cùng âm nhạc gốc được đồng bộ chặt chẽ.
Vidu Q3 Reference-to-Video so với Wan 2.7 Reference-to-Video Wan 2.7 hỗ trợ kết hợp hình ảnh, video và tham chiếu giọng nói tùy chọn. Vidu Q3 chú trọng tính nhất quán hiệu quả từ nhiều hình ảnh, đầu ra âm thanh-video gốc và cách kể chuyện mạch lạc qua các lần thay đổi máy quay.
Vidu Q3 Reference-to-Video so với Kling Video O3 Reference-to-Video Kling Video O3 cung cấp khả năng suy luận chuyển động và cảnh theo tham chiếu mạnh mẽ. Vidu Q3 mang đến tính nhất quán của chủ thể từ nhiều hình ảnh, âm thanh gốc đa ngôn ngữ và khả năng chuyển đổi cảnh quay thông minh để tạo nên những câu chuyện nghe nhìn hoàn chỉnh.
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 trau chuốt từ prompt bằng các model hình ảnh AI hàng đầu, thiết lập linh hoạt và quy trình nhanh trên trình duyệt.

Tải lên hình ảnh tham chiếu, hướng dẫn chỉnh sửa bằng prompt và biến đổi hình ảnh cho thiết kế, marketing và sản xuất sáng tạo.

Biến ý tưởng cảnh viết bằng văn bản thành video AI ngắn với lựa chọn model, prompt chuyển động và điều khiển tạo thực tế.

Biến hình ảnh tham chiếu thành clip video AI mượt mà cho sản phẩm, chân dung, bài đăng xã hội và ý tưởng sáng tạo.