
ข้อความเป็นรูปภาพ
สร้างรูปภาพ AI จากพรอมต์ข้อความ
ทำภาพให้เป็นวิดีโอได้เร็วขึ้นด้วย Kling 3.0 Turbo Image-to-Video API รวมต้นทุนต่ำ การส่งมอบเร็ว เสียงเสริม และการเคลื่อนไหวที่เสถียรสำหรับเวิร์กโฟลว์ที่ขยายได้.
// 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"
| พารามิเตอร์ | ราคา | ราคาเดิม | ส่วนลด |
|---|
Kling 3.0 Turbo Image-to-Video API บน Flaq AI ให้แอนิเมชันวิดีโอ Kuaishou ที่รวดเร็วสำหรับ developer และทีมสร้างสรรค์ที่ต้องการเปลี่ยนภาพนิ่งเป็นคลิปวิดีโอไดนามิก การผสานรวม Kling API ที่คุ้มค่านี้ทำให้ภาพต้นฉบับเคลื่อนไหวด้วยการเคลื่อนไหวที่กำกับด้วย prompt การรักษาตัวแบบที่เสถียร และการส่งมอบที่เหมาะกับ production ออกแบบมาสำหรับคอนเทนต์โซเชียล การเคลื่อนไหวสินค้า แอนิเมชันตัวละคร asset แคมเปญ และเวิร์กโฟลว์สร้างสรรค์ที่ขยายได้
หมายเหตุ โปรดตรวจสอบให้แน่ใจว่ารูปภาพที่อัปโหลดและ prompt เป็นไปตามข้อกำหนดด้านความปลอดภัยของ Kuaishou และ Flaq AI หากเกิดข้อผิดพลาด ให้ปรับรูปภาพ prompt หรือการตั้งค่าการสร้าง แล้วลองอีกครั้ง
สำรวจเครื่องมือสร้างสรรค์ AI หลายรายการสำหรับเวิร์กโฟลว์รูปภาพและวิดีโอที่รวดเร็วในเบราว์เซอร์ จากนั้นขยายไอเดียที่สำเร็จไปยัง model APIs ของ Flaq AI ที่พร้อมสำหรับการผลิต Flaq AI ให้ชั้น API แบบรวมศูนย์สำหรับทุกโมเดล ทำให้ใช้งานและขยายเวิร์กโฟลว์ได้ง่าย

สร้างรูปภาพ AI จากพรอมต์ข้อความ

สร้างรูปภาพ AI จากรูปภาพและพรอมต์ข้อความ

สร้างวิดีโอ AI จากพรอมต์ข้อความ

ทำให้รูปภาพเคลื่อนไหวเป็นวิดีโอ AI

สร้างรูปภาพและวิดีโอ AI ในพื้นที่ทำงานเดียวที่ครบวงจร

สร้างวิดีโอที่สม่ำเสมอจากสื่ออ้างอิง

สร้างเวิร์กโฟลว์ภาพและวิดีโอ AI แบบภาพบนแคนวาสไร้ขอบเขต