
テキストから画像
テキストプロンプトからAI画像を作成
Kling O3 Std 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-std-reference-to-video',
prompt: 'Match motion to reference subjects, natural pacing',
video_url: 'https://example.com/source.mp4',
images: ['https://example.com/ref1.jpg', 'https://example.com/ref2.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-std-reference-to-video',
prompt: 'Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>',
images: [
'https://example.com/athlete-reference.jpg',
'https://example.com/uniform-reference.jpg'
],
videos: ['https://example.com/motion-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-std-reference-to-video',
'prompt': 'Match motion to reference subjects, natural pacing',
'video_url': 'https://example.com/source.mp4',
'images': ['https://example.com/ref1.jpg', 'https://example.com/ref2.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-std-reference-to-video',
'prompt': 'Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>',
'images': [
'https://example.com/athlete-reference.jpg',
'https://example.com/uniform-reference.jpg'
],
'videos': ['https://example.com/motion-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-std-reference-to-video",
"prompt": "Match motion to reference subjects, natural pacing",
"video_url": "https://example.com/source.mp4",
"images": ["https://example.com/ref1.jpg", "https://example.com/ref2.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-std-reference-to-video",
"prompt": "Make the athlete from <<<image_1>>> follow the motion in <<<video_1>>> while preserving the uniform details from <<<image_2>>>",
"images": [
"https://example.com/athlete-reference.jpg",
"https://example.com/uniform-reference.jpg"
],
"videos": ["https://example.com/motion-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 Standard Reference-to-Video API は、開発者とクリエイティブチーム向けに費用対効果の高いプロダクショングレードの AI 動画生成を提供します。この MVL ベースの参照-動画 API 統合により、参照動画に誘導された 3〜15 秒の長さのプロフェッショナルな動画クリップを生成でき、オプションのオーディオエフェクトも利用できます。Kuaishou のマルチモーダルビジュアル言語(MVL)アーキテクチャに基づいて構築された Kling Video O3 Standard モデルは、参照動画入力を使用してモーションスタイル、カメラ動作、シーン展開を誘導し、Flaq AI 上でスケーラブルなプロダクションワークフローを実現します。
注意 プロンプトが Kuaishou のコンテンツ安全ガイドラインに準拠していることを確認してください。エラーが発生した場合は、プロンプトで制限されたコンテンツを確認し、調整してから再試行してください。
Kling Video O3 Standard vs. Kling Video O3 Pro Reference-to-Video Kling Video O3 Pro は、より高い秒単位の価格で強化されたモーション忠実度とプレミアムレンダリング品質を提供します。Kling Video O3 Standard は、より低い価格帯で強力な MVL ベースの参照誘導生成を提供—コスト効率が優先される大量ワークフローに適した選択です。
Kling Video O3 Standard vs. Kling Video O3 Standard Image-to-Video Kling Video O3 Standard Image-to-Video は静止画像を動画クリップにアニメーション化します。Kling Video O3 Standard Reference-to-Video は既存の動画クリップをモーションとスタイルのガイドとして使用—参照映像からのモーションパターンとカメラ動作の精密な制御が必要なアプリケーションに理想的です。
Kling Video O3 Standard vs. Runway Gen-3 Reference Generation Runway Gen-3 は、強力なクリエイティブコントロールと芸術的な柔軟性を提供します。Kling Video O3 Standard Reference-to-Video API は、手頃な秒単位の価格、柔軟な 3〜15 秒の長さ制御、オプションの統合オーディオエフェクト、MVL ベースのモーション推論により差別化—予算が限られた開発者にアクセス可能です。
Kling Video O3 Standard vs. Pika Reference-to-Video Pika は、スタイル化されたアニメーションとユーザーフレンドリーなインターフェースに優れています。Kling Video O3 Standard は、プログラマティック API アクセス、最大 15 秒の拡張された長さ、オプションのオーディオエフェクト、費用対効果の高い秒単位の価格を提供—スケーラブルな参照誘導動画パイプラインを構築する開発者に理想的です。
Kling Video O3 Standard vs. Vidu Q3 (Vidu) Vidu Q3 は、Smart Cuts マルチショットストーリーテリングによる映像生成能力に優れています。Kling Video O3 Standard Reference-to-Video API は、参照動画誘導生成、MVL ベースのモーション転送、柔軟な課金設計により差別化—精密なモーションスタイル制御が必要なアプリケーションに適した選択です。
ブラウザで画像と動画のクイックワークフロー向けAI制作ツールを複数試し、成功したアイデアをFlaq AIの本番対応モデルAPIで拡張できます。Flaq AIはすべてのモデルに統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できます。