
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 hoạt ảnh từ ảnh nhanh hơn với Kling 3.0 Turbo Image-to-Video API, kết hợp chi phí thấp hơn, xử lý nhanh, âm thanh tùy chọn và chuyển động ổn định cho workflow có thể mở rộng.
// 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: 'kling-3.0-turbo-image-to-video',
prompt: 'The character slowly turns her head and looks out the window, subtle camera movement, natural motion, cinematic lighting',
image_url: 'https://example.com/test-first-frame.png',
resolution: '720p',
duration: 5,
sound: true
})
});
const { data } = await response.json();
const taskId = data.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': 'kling-3.0-turbo-image-to-video',
'prompt': 'The character slowly turns her head and looks out the window, subtle camera movement, natural motion, cinematic lighting',
'image_url': 'https://example.com/test-first-frame.png',
'resolution': '720p',
'duration': 5,
'sound': True
}
)
result = response.json()
task_id = 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": "kling-3.0-turbo-image-to-video",
"prompt": "The character slowly turns her head and looks out the window, subtle camera movement, natural motion, cinematic lighting",
"image_url": "https://example.com/test-first-frame.png",
"resolution": "720p",
"duration": 5,
"sound": true
}'
# 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á |
|---|
Kling 3.0 Turbo Image-to-Video API trên Flaq AI cung cấp khả năng hoạt ảnh video Kuaishou nhanh cho developer và đội ngũ sáng tạo cần chuyển ảnh tĩnh thành clip video động. Tích hợp Kling API tiết kiệm này tạo hoạt ảnh cho hình ảnh nguồn bằng chuyển động được hướng dẫn bằng prompt, giữ ổn định chủ thể và phân phối thân thiện với production. API này được thiết kế cho nội dung mạng xã hội, chuyển động sản phẩm, hoạt ảnh nhân vật, asset chiến dịch và quy trình sáng tạo có khả năng mở rộng.
Lưu ý Hãy đảm bảo hình ảnh tải lên và prompt tuân thủ yêu cầu an toàn của Kuaishou và Flaq AI. Nếu xảy ra lỗi, hãy điều chỉnh hình ảnh, prompt hoặc thiết lập tạo sinh rồi thử lại.
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.