
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 Std API với tính nhất quán cao. Hiệu suất ổn định và giá cả phải chăng. 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-std-reference-to-video',
prompt: 'Match motion to reference subjects, natural pacing',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/ref1.jpg', 'https://example.com/ref2.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-std-reference-to-video',
prompt: 'Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>',
images: [
'https://example.com/athlete-reference.jpg',
'https://example.com/uniform-reference.jpg'
],
videos: ['https://example.com/motion-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-std-reference-to-video',
'prompt': 'Match motion to reference subjects, natural pacing',
'video_url': 'https://example.com/source.mp4',
'images': ['https://example.com/ref1.jpg', 'https://example.com/ref2.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-std-reference-to-video',
'prompt': 'Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>',
'images': [
'https://example.com/athlete-reference.jpg',
'https://example.com/uniform-reference.jpg'
],
'videos': ['https://example.com/motion-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-std-reference-to-video",
"prompt": "Match motion to reference subjects, natural pacing",
"video_url": "https://example.com/source.mp4",
"images": ["https://example.com/ref1.jpg", "https://example.com/ref2.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-std-reference-to-video",
"prompt": "Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>",
"images": [
"https://example.com/athlete-reference.jpg",
"https://example.com/uniform-reference.jpg"
],
"videos": ["https://example.com/motion-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 Standard Reference-to-Video API cung cấp dịch vụ tạo video AI cấp sản xuất tiết kiệm chi phí cho các nhà phát triển và nhóm sáng tạo. Tích hợp API tham chiếu-thành-video dựa trên MVL này cho phép bạn tạo các clip video 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 Standard sử dụng đầu vào video tham chiếu để hướng dẫn phong cách chuyển động, hành vi camera và sự phát triển cảnh cho các quy trình sản xuất có thể mở rộng trên Flaq AI.
Lưu ý Vui lòng đảm bảo 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 xét 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 Standard vs. Kling Video O3 Pro Reference-to-Video Kling Video O3 Pro cung cấp độ trung thực chuyển động được nâng cao và chất lượng kết xuất cao cấp với giá theo giây cao hơn. Kling Video O3 Standard cung cấp tạo video được hướng dẫn tham chiếu dựa trên MVL mạnh mẽ ở mức giá thấp hơn—là lựa chọn ưu tiên cho các quy trình khối lượng lớn khi hiệu quả chi phí là ưu tiên.
Kling Video O3 Standard vs. Kling Video O3 Standard Image-to-Video Kling Video O3 Standard Image-to-Video tạo hoạt hình cho hình ảnh tĩnh thành các clip video. Kling Video O3 Standard Reference-to-Video sử dụng các clip video 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ừ cảnh quay tham chiếu.
Kling Video O3 Standard vs. Runway Gen-3 Reference Generation Runway Gen-3 cung cấp các điều khiển sáng tạo mạnh mẽ và tính linh hoạt nghệ thuật. Kling Video O3 Standard Reference-to-Video API khác biệt thông qua giá theo giây phải chăng, kiểm soát thời lượng 3-15 giây linh hoạt, hiệu ứng âm thanh tích hợp tùy chọn và suy luận chuyển động dựa trên MVL—giúp các nhà phát triển có ngân sách hạn chế dễ tiếp cận.
Kling Video O3 Standard vs. Pika Reference-to-Video Pika xuất sắc trong hoạt hình phong cách và giao diện thân thiện với người dùng. Kling Video O3 Standard cung cấp quyền truy cập API theo chương trình, thời lượng mở rộng lên đến 15 giây, hiệu ứng âm thanh tùy chọn và giá theo giây tiết kiệm chi phí—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 có thể mở rộng.
Kling Video O3 Standard vs. Vidu Q3 (Vidu) Vidu Q3 xuất sắc trong tạo âm thanh-video gốc với Smart Cuts kể chuyện đa cảnh. Kling Video O3 Standard Reference-to-Video API khác biệt thông qua tạo video được hướng dẫn tham chiếu, chuyển giao chuyển động dựa trên MVL và giá theo giây linh hoạt—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.
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