
Văn bản thành hình ảnh
Tạo hình ảnh AI từ prompt văn bản
Tạo video tham chiếu từ Kling O3 Pro API. Tính nhất quán chủ thể vượt trội và hiệu suất ổn định với giá cạnh tranh. Thử đầu ra model, so sánh chất lượng hình ảnh rồi mở rộng ý tưởng tốt bằng workflow API hình ảnh, video hoặc đa phương thức ổn định cho đội nhóm.
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: 'kling-video-o3-pro-reference-to-video',
prompt: 'Follow reference motion, consistent lighting',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/ref1.jpg'],
duration: 5
})
});
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]
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: 'kling-video-o3-pro-reference-to-video',
prompt: 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
videos: ['https://example.com/action-reference.mp4'],
aspect_ratio: '16:9',
duration: 5,
sound: false
})
});
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));
}
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': 'kling-video-o3-pro-reference-to-video',
'prompt': 'Follow reference motion, consistent lighting',
'video_url': 'https://example.com/source.mp4',
'images': ['https://example.com/ref1.jpg'],
'duration': 5
}
)
task_id = response.json()['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]
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': 'kling-video-o3-pro-reference-to-video',
'prompt': 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
'images': [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
'videos': ['https://example.com/action-reference.mp4'],
'aspect_ratio': '16:9',
'duration': 5,
'sound': False
}
)
media_reference_task_id = media_reference_response.json()['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)
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": "kling-video-o3-pro-reference-to-video",
"prompt": "Follow reference motion, consistent lighting",
"video_url": "https://example.com/source.mp4",
"images": ["https://example.com/ref1.jpg"],
"duration": 5
}'
# 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]
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": "kling-video-o3-pro-reference-to-video",
"prompt": "Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/cinematic-setting-reference.jpg"
],
"videos": ["https://example.com/action-reference.mp4"],
"aspect_ratio": "16:9",
"duration": 5,
"sound": false
}'
# 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á |
|---|
Kuaishou Kling Video O3 Pro Reference-to-Video API cung cấp dịch vụ tạo video AI cấp độ sản xuất cao cấp cho các nhà phát triển và nhóm sáng tạo. Tích hợp API reference-to-video độ trung thực cao này cho phép tạo các video clip chuyên nghiệp được hướng dẫn bởi video tham chiếu với thời lượng 3–15 giây kèm hiệu ứng âm thanh tùy chọn. Được xây dựng trên kiến trúc Ngôn ngữ Thị giác Đa phương thức (MVL) của Kuaishou, mô hình Kling Video O3 Pro mang lại chất lượng tối đa và tính chân thực của chuyển động khi sử dụng đầu vào video tham chiếu để hướng dẫn tạo nội dung cho các ứng dụng thương mại đòi hỏi cao trên Flaq AI.
Lưu ý Vui lòng đảm bảo rằng các prompt của bạn tuân thủ hướng dẫn an toàn nội dung của Kuaishou. Nếu xảy ra lỗi, hãy xem lại prompt của bạn để tìm nội dung bị hạn chế, điều chỉnh và thử lại.
Kling Video O3 Pro vs. Kling Video O3 Standard Reference-to-Video Kling Video O3 Standard cung cấp khả năng tạo được hướng dẫn tham chiếu mạnh mẽ được hỗ trợ bởi MVL với mức giá thấp hơn. Kling Video O3 Pro mang lại độ trung thực chuyển động nâng cao, kết xuất chi tiết vượt trội và chất lượng cao cấp với mức giá cao hơn—là lựa chọn ưu tiên cho các ứng dụng thương mại đòi hỏi cao khi chất lượng tối đa là điều cần thiết.
Kling Video O3 Pro vs. Kling Video O3 Pro Image-to-Video Kling Video O3 Pro Image-to-Video tạo hoạt ảnh từ hình ảnh tĩnh thành video clip. Kling Video O3 Pro Reference-to-Video sử dụng các video clip hiện có làm hướng dẫn chuyển động và phong cách—lý tưởng cho các ứng dụng yêu cầu kiểm soát chính xác các mẫu chuyển động và hành vi camera từ tư liệu tham chiếu với đầu ra chất lượng cao cấp.
Kling Video O3 Pro vs. Runway Gen-3 Reference Generation Runway Gen-3 cung cấp các công cụ kiểm soát sáng tạo mạnh mẽ và tính linh hoạt nghệ thuật. API Kling Video O3 Pro Reference-to-Video tạo sự khác biệt thông qua độ trung thực chuyển động nâng cao, hiệu ứng âm thanh tùy chọn, kiểm soát thời lượng 3–15 giây linh hoạt và suy luận chuyển động được hỗ trợ bởi MVL—khiến nó vượt trội cho việc tạo nội dung tham chiếu thương mại cao cấp.
Kling Video O3 Pro vs. Pika Reference-to-Video Pika xuất sắc với hoạt ảnh phong cách hóa và giao diện thân thiện với người dùng. Kling Video O3 Pro cung cấp quyền truy cập API theo chương trình, độ trung thực chuyển động nâng cao, thời lượng kéo dài lên đến 15 giây và hiệu ứng âm thanh tùy chọn—lý tưởng cho các nhà phát triển xây dựng pipeline video được hướng dẫn tham chiếu cao cấp.
Kling Video O3 Pro vs. Vidu Q3 Pro (Vidu) Vidu Q3 Pro xuất sắc trong việc tạo âm thanh-video gốc với kể chuyện đa cảnh Smart Cuts. API Kling Video O3 Pro Reference-to-Video tạo sự khác biệt thông qua tạo video được hướng dẫn bởi video tham chiếu, chuyển giao chuyển động được hỗ trợ bởi MVL nâng cao và mức giá linh hoạt theo giây—là lựa chọn ưu tiên cho các ứng dụng yêu cầu kiểm soát phong cách chuyển động chính xác với chất lượng cao cấp.
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