
文字轉圖片
從文字提示詞建立 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"
| 參數 | 價格 | 原價 | 折扣 |
|---|
快手 Kling Video O3 Pro Reference-to-Video API 為開發者與創意團隊提供高階、可用於生產的 AI 影片生成服務。這個高保真參考影片轉影片 API 整合,能在 3 到 15 秒的時長範圍內,依照參考影片生成專業影片片段,並可選擇加入音效。Kling Video O3 Pro 模型建立在快手的多模態視覺語言(MVL)架構之上,在使用參考影片輸入引導生成時,可為高要求商業應用提供最高品質與最真實的運動表現。
注意 請確保您的提示符合快手的內容安全指南。如果發生錯誤,請檢查提示中的受限內容,調整後再試一次。
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 層,讓你的工作流程更容易使用和擴展。