
テキストから画像
テキストプロンプトから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 秒のプロフェッショナルな動画クリップを生成でき、オプションの音響効果にも対応しています。Kuaishou のマルチモーダルビジュアル言語(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レイヤーを提供し、ワークフローを簡単に利用・拡張できます。