
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 nhanh hơn với Kling 3.0 Turbo Text-to-Video API, được xây dựng cho workflow sáng tạo chi phí thấp hơn, chuyển động mượt, âm thanh tùy chọn và sản xuất ổn định 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-text-to-video',
prompt: 'A girl sits on a train, looking out the window with a melancholic expression, cinematic lighting, realistic detail',
aspect_ratio: '16:9',
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-text-to-video',
'prompt': 'A girl sits on a train, looking out the window with a melancholic expression, cinematic lighting, realistic detail',
'aspect_ratio': '16:9',
'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-text-to-video",
"prompt": "A girl sits on a train, looking out the window with a melancholic expression, cinematic lighting, realistic detail",
"aspect_ratio": "16:9",
"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 Text-to-Video API trên Flaq AI cung cấp khả năng tạo video Kuaishou nhanh cho developer và đội ngũ sáng tạo xây dựng quy trình video dạng ngắn có khả năng mở rộng. Tích hợp Kling API tiết kiệm này chuyển prompt ngôn ngữ tự nhiên thành clip video động với điều khiển chuyển động thực tế, quy trình âm thanh tùy chọn và quyền truy cập production ổn định. API này được thiết kế cho lặp sáng tạo nhanh, nội dung mạng xã hội, video marketing và tạo video tự động.
Lưu ý Hãy đảm bảo 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 sửa 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.