
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.
Tạo video theo tham chiếu qua Alibaba Happy Horse 1.1 API với chuyển động có kiểm soát, hiệu suất ổn định và quy trình sản xuất sáng tạo có thể mở rộng. Happy Horse AI trọng số mở cho tạo tham chiếu thành video linh hoạt.
// 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: 'happyhorse-1.1-reference-to-video',
prompt: 'Subject moves naturally while preserving reference style and appearance',
duration: 5,
resolution: '1080p',
aspect_ratio: '16:9',
images: [
'https://example.com/ref-1.jpg',
'https://example.com/ref-2.jpg'
],
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: 'happyhorse-1.1-reference-to-video',
prompt: 'Show the person from <<<image_1>>> walking beside the bicycle from <<<image_2>>> through the street in <<<image_3>>>, preserving all reference details',
duration: 5,
resolution: '1080p',
aspect_ratio: '16:9',
images: [
'https://example.com/person-reference.jpg',
'https://example.com/bicycle-reference.jpg',
'https://example.com/street-reference.jpg'
],
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': 'happyhorse-1.1-reference-to-video',
'prompt': 'Subject moves naturally while preserving reference style and appearance',
'duration': 5,
'resolution': '1080p',
'aspect_ratio': '16:9',
'images': [
'https://example.com/ref-1.jpg',
'https://example.com/ref-2.jpg'
],
'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': 'happyhorse-1.1-reference-to-video',
'prompt': 'Show the person from <<<image_1>>> walking beside the bicycle from <<<image_2>>> through the street in <<<image_3>>>, preserving all reference details',
'duration': 5,
'resolution': '1080p',
'aspect_ratio': '16:9',
'images': [
'https://example.com/person-reference.jpg',
'https://example.com/bicycle-reference.jpg',
'https://example.com/street-reference.jpg'
],
'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": "happyhorse-1.1-reference-to-video",
"prompt": "Subject moves naturally while preserving reference style and appearance",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"images": ["https://example.com/ref-1.jpg", "https://example.com/ref-2.jpg"],
"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": "happyhorse-1.1-reference-to-video",
"prompt": "Show the person from <<<image_1>>> walking beside the bicycle from <<<image_2>>> through the street in <<<image_3>>>, preserving all reference details",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"images": [
"https://example.com/person-reference.jpg",
"https://example.com/bicycle-reference.jpg",
"https://example.com/street-reference.jpg"
],
"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á |
|---|
Happy Horse 1.1 Reference-to-Video API mang đến tạo video Alibaba đã nâng cấp cho các đội ngũ cần nhân vật, sản phẩm, cảnh và tài sản thương hiệu nhất quán trên nhiều clip được tạo. Tích hợp API reference-to-video chuyên nghiệp này dùng ảnh tham chiếu làm neo hình ảnh, sau đó tạo đầu ra video hoàn thiện với độ nhất quán chủ thể mạnh hơn, khả năng bám prompt tốt hơn và kết cấu hình ảnh phong phú hơn so với Happy Horse 1.0. Được xây dựng cho sản xuất sáng tạo có thể mở rộng trên Flaq AI, Happy Horse 1.1 Reference-to-Video rất phù hợp cho quảng cáo, phim ngắn, thương mại điện tử, quy trình nhân vật và pipeline nội dung nhiều tài sản.
Lưu ý Vui lòng đảm bảo prompt và ảnh 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 xem lại đầu vào của bạn để kiểm tra nội dung bị hạn chế, điều chỉnh rồi thử lại.
Happy Horse 1.1 Reference-to-Video vs. Happy Horse 1.0
Happy Horse 1.0 hỗ trợ tạo video từ văn bản và hình ảnh một cách thực tiễn. Happy Horse 1.1 Reference-to-Video nâng cấp quy trình với grounding tham chiếu mạnh hơn, độ nhất quán chủ thể tốt hơn, khả năng bám prompt tốt hơn và kết cấu hình ảnh phong phú hơn.
Happy Horse 1.1 Reference-to-Video vs. Seedance 2.0 Reference-to-Video
Seedance 2.0 Reference-to-Video cung cấp tạo video theo tham chiếu của ByteDance. Happy Horse 1.1 Reference-to-Video nhấn mạnh khả năng hiểu nhiều tham chiếu đã nâng cấp của Alibaba và độ nhất quán chủ thể cho quy trình commerce, nhân vật và chiến dịch.
Happy Horse 1.1 Reference-to-Video vs. Kling Reference-to-Video
Quy trình tham chiếu của Kling mạnh về chuyển động nhân vật giàu biểu cảm. Happy Horse 1.1 tập trung vào grounding hình ảnh nhất quán, bám prompt tốt hơn và tích hợp API sẵn sàng sản xuất cho đội ngũ cần đầu ra có thể lặp lại.
Happy Horse 1.1 Reference-to-Video vs. Runway Video Tools
Runway cung cấp các điều khiển video rộng cho creator. Happy Horse 1.1 Reference-to-Video API phù hợp hơn với tạo video lập trình, tự động hóa sáng tạo nhiều tham chiếu và sản xuất có thể mở rộng bên trong ứng dụng.
Happy Horse 1.1 Reference-to-Video vs. Pika
Pika cung cấp tạo video dễ tiếp cận cho creator. Happy Horse 1.1 Reference-to-Video mang đến lộ trình API định hướng sản xuất hơn cho clip theo tham chiếu nhất quán, tái sử dụng hình ảnh an toàn cho thương hiệu và hệ thống sáng tạo tự độ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.