
AI 文字轉圖片生成器
使用領先 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"
| 參數 | 價格 | 原價 | 折扣 |
|---|
Flaq AI 上的 Kling 3.0 Turbo Image-to-Video API 為需要將靜態圖像轉化為動態影片片段的開發者和創意團隊提供快速的 Kuaishou 影片動畫能力。這項實惠的 Kling API 整合可透過提示詞引導的運動、穩定的主體保留和適合生產的交付方式為來源視覺內容加入動畫。它專為社群內容、產品動態、角色動畫、行銷活動素材和可擴展創意工作流程而設計。
注意 請確保上傳圖像和提示詞符合 Kuaishou 與 Flaq AI 的安全要求。如果發生錯誤,請調整圖像、提示詞或生成設定後重試。
在瀏覽器中探索多種 AI 創作工具,快速完成圖片與影片工作流程,然後透過 Flaq AI 的生產級模型 API 擴展成功想法。Flaq AI 為所有模型提供統一 API 層,讓你的工作流程更容易使用和擴展。