
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í Wan 2.7 Reference-to-Video API với tối đa năm hình ảnh hoặc video tham chiếu, tùy chọn tham chiếu giọng nói, đầu ra 1080p 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: 'wan-2.7-reference-to-video',
prompt: 'Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one',
resolution: '1080p',
duration: 8,
aspect_ratio: '16:9',
images: ['https://example.com/hero-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3'],
negative_prompt: 'flicker, distorted hands, duplicate subjects',
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 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: 'wan-2.7-reference-to-video',
prompt: 'Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>',
resolution: '1080p',
duration: 8,
aspect_ratio: '16:9',
images: [
'https://example.com/presenter-reference.jpg',
'https://example.com/studio-reference.jpg'
],
videos: ['https://example.com/camera-path-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3'],
negative_prompt: 'flicker, distorted hands, duplicate subjects',
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': 'wan-2.7-reference-to-video',
'prompt': 'Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '16:9',
'images': ['https://example.com/hero-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3'],
'negative_prompt': 'flicker, distorted hands, duplicate subjects',
'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 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': 'wan-2.7-reference-to-video',
'prompt': 'Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '16:9',
'images': [
'https://example.com/presenter-reference.jpg',
'https://example.com/studio-reference.jpg'
],
'videos': ['https://example.com/camera-path-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3'],
'negative_prompt': 'flicker, distorted hands, duplicate subjects',
'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": "wan-2.7-reference-to-video",
"prompt": "Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "16:9",
"images": ["https://example.com/hero-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"],
"negative_prompt": "flicker, distorted hands, duplicate subjects",
"seed": 42
}'
# 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": "wan-2.7-reference-to-video",
"prompt": "Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "16:9",
"images": [
"https://example.com/presenter-reference.jpg",
"https://example.com/studio-reference.jpg"
],
"videos": ["https://example.com/camera-path-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"],
"negative_prompt": "flicker, distorted hands, duplicate subjects",
"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 Alibaba Wan 2.7 Reference-to-Video mang đến khả năng tạo video AI đạt chuẩn sản xuất cho các nhà phát triển và đội ngũ sáng tạo cần duy trì sự nhất quán về chủ thể, giọng nói và định hướng hình ảnh xuyên suốt các clip được tạo. Tích hợp API reference-to-video tiên tiến này tiếp nhận hình ảnh và video tham chiếu cùng hướng dẫn bằng giọng nói tùy chọn, sau đó chuyển đổi chỉ dẫn bằng ngôn ngữ tự nhiên thành video 720p hoặc 1080p hoàn thiện. Được xây dựng cho quy trình sản xuất sáng tạo có kiểm soát, Wan 2.7 kết hợp khả năng thấu hiểu tham chiếu đa phương thức, thiết lập đầu ra linh hoạt và quyền truy cập API có thể mở rộng trên Flaq AI.
Lưu ý Hãy đảm bảo prompt và phương tiện tham chiếu của bạn tuân thủ nguyên tắc an toàn của Alibaba. 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.
Wan 2.7 Reference-to-Video so với Wan 2.7 Image-to-Video Wan 2.7 Image-to-Video tạo chuyển động cho một hình ảnh ban đầu. Wan 2.7 Reference-to-Video hỗ trợ kết hợp hình ảnh và video tham chiếu, định hướng nhiều chủ thể và tham chiếu giọng nói tùy chọn để sản xuất dựa trên danh tính với khả năng kiểm soát cao hơn.
Wan 2.7 Reference-to-Video so với Seedance V2.0 Reference-to-Video Seedance V2.0 cung cấp khả năng tạo theo tham chiếu đa phương thức rộng rãi từ đầu vào hình ảnh, video và âm thanh. Wan 2.7 tập trung vào tham chiếu chủ thể có cấu trúc, khả năng định hướng đặc trưng giọng nói tùy chọn, prompt phủ định và tạo video Alibaba độ phân giải cao.
Wan 2.7 Reference-to-Video so với Vidu Q3 Reference-to-Video Vidu Q3 tập trung vào tính nhất quán của chủ thể từ nhiều hình ảnh và âm thanh gốc được đồng bộ. Wan 2.7 bổ sung khả năng hỗ trợ kết hợp hình ảnh và video tham chiếu với hướng dẫn giọng nói tùy chọn ở cấp chủ thể cho các quy trình đa phương thức linh hoạt.
Wan 2.7 Reference-to-Video so với Kling Video O3 Reference-to-Video Kling Video O3 cung cấp khả năng tạo theo tham chiếu với khả năng suy luận chuyển động mạnh mẽ. Wan 2.7 tạo khác biệt qua phương tiện tham chiếu kết hợp, hướng dẫn giọng nói cho chủ thể, kiểm soát seed và prompt phủ định dành cho quy trình sản xuất có kiểm soát.
Wan 2.7 Reference-to-Video so với Runway Video Tools Runway cung cấp bộ công cụ chỉnh sửa và tạo nội dung toàn diện dành cho nhà sáng tạo. API Wan 2.7 Reference-to-Video được thiết kế cho quy trình tham chiếu đa phương thức theo chương trình, tái sử dụng chủ thể nhất quán và tích hợp ứng dụng có thể mở rộng.
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.