
文本转图像
从文本提示词创建 AI 图像
Kling O3 Pro API 提供参考视频生成,主体一致性卓越,性能稳定高效,定价极具竞争力。非常适合高要求工作流和大规模批量个性视频自动化,保障身份一致与创新表达并行,增强用户体验与内容能力。适合开发者和团队接入图片、视频或多模态生成流程。你可以先体验核心效果,再用于创意设计、营销素材、批量内容生产和自动化工作流。在测试提示词、参数组合和视觉风格时,帮助更快获得稳定且有吸引力的输出。
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-video-o3-pro-reference-to-video',
prompt: 'Follow reference motion, consistent lighting',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/ref1.jpg'],
duration: 5
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
const mediaReferenceResponse = 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-video-o3-pro-reference-to-video',
prompt: 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
videos: ['https://example.com/action-reference.mp4'],
aspect_ratio: '16:9',
duration: 5,
sound: false
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.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));
}
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-video-o3-pro-reference-to-video',
'prompt': 'Follow reference motion, consistent lighting',
'video_url': 'https://example.com/source.mp4',
'images': ['https://example.com/ref1.jpg'],
'duration': 5
}
)
task_id = response.json()['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
media_reference_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-video-o3-pro-reference-to-video',
'prompt': 'Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>',
'images': [
'https://example.com/character-reference.jpg',
'https://example.com/cinematic-setting-reference.jpg'
],
'videos': ['https://example.com/action-reference.mp4'],
'aspect_ratio': '16:9',
'duration': 5,
'sound': False
}
)
media_reference_task_id = media_reference_response.json()['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)
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-video-o3-pro-reference-to-video",
"prompt": "Follow reference motion, consistent lighting",
"video_url": "https://example.com/source.mp4",
"images": ["https://example.com/ref1.jpg"],
"duration": 5
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1], <<<video_1>>> = videos[0]
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-video-o3-pro-reference-to-video",
"prompt": "Bring the character from <<<image_1>>> into the cinematic setting from <<<image_2>>> and reproduce the action shown in <<<video_1>>>",
"images": [
"https://example.com/character-reference.jpg",
"https://example.com/cinematic-setting-reference.jpg"
],
"videos": ["https://example.com/action-reference.mp4"],
"aspect_ratio": "16:9",
"duration": 5,
"sound": false
}'
# 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"
| 参数 | 价格 | 原价 | 折扣 |
|---|
Kuaishou Kling Video O3 Pro Reference-to-Video API 为开发者和创意团队提供高级、生产级 AI 视频生成服务。这款高保真 reference-to-video API 集成支持以参考视频为引导,生成 3–15 秒时长的专业视频片段,并可选配音效。基于快手多模态视觉语言(MVL)架构,Kling Video O3 Pro 模型在使用参考视频引导生成时,可在 Flaq AI 上为苛刻的商业应用提供最高质量与运动真实感。
注意 请确保您的提示词符合 Kuaishou 的内容安全指南。如果发生错误,请检查提示词中是否含有受限内容,进行调整后重试。
Kling Video O3 Pro vs. Kling Video O3 Standard Reference-to-Video Kling Video O3 Standard 以较低价格提供强大的 MVL 驱动参考引导生成。Kling Video O3 Pro 在更高定价下提供增强的运动保真度、更优越的细节渲染和高级质量——对于最高质量至关重要的苛刻商业应用,它是首选。
Kling Video O3 Pro vs. Kling Video O3 Pro Image-to-Video Kling Video O3 Pro Image-to-Video 将静态图像制作成视频片段。Kling Video O3 Pro Reference-to-Video 使用现有视频片段作为运动和风格引导——非常适合需要从参考素材精确控制运动模式和镜头行为并获得高级质量输出的应用。
Kling Video O3 Pro vs. Runway Gen-3 Reference Generation Runway Gen-3 提供强大的创意控制和艺术灵活性。Kling Video O3 Pro Reference-to-Video API 通过增强的运动保真度、可选音效、灵活的 3–15 秒时长控制以及 MVL 驱动的运动推理脱颖而出——使其在高级商业参考引导生成方面更具优势。
Kling Video O3 Pro vs. Pika Reference-to-Video Pika 擅长风格化动画和用户友好的界面。Kling Video O3 Pro 提供程序化 API 访问、增强的运动保真度、最长 15 秒的延长时长和可选音效——非常适合构建高级参考引导视频管道的开发者。
Kling Video O3 Pro vs. Vidu Q3 Pro (Vidu) Vidu Q3 Pro 擅长视频生成能力和 Smart Cuts 多镜头叙事。Kling Video O3 Pro Reference-to-Video API 通过参考视频引导生成、增强的 MVL 驱动运动迁移以及灵活的计费方式脱颖而出——对于需要以高级质量精确控制运动风格的应用,它是首选。
在浏览器中探索多种 AI 创作工具,用于快速图像和视频工作流,然后通过 Flaq AI 可用于生产的模型 API 扩展成功创意。Flaq AI 为所有模型提供统一 API 层,让你的工作流更容易使用和扩展。