
AI 文本转图像生成器
使用领先 AI 图像模型、灵活设置和快速浏览器工作流,从提示词创建精致图像。
使用 Kling 3.0 Turbo 图生视频 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 层,让你的工作流更容易使用和扩展。