
テキストから画像
テキストプロンプトからAI画像を作成
Kuaishou の Kling 2.6 モーションコントロール API でキャラクターを動かしましょう。Flaq AI の 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-2.6-motion-control',
prompt: 'Animate the character in the reference image using the dance movements from the reference video',
images: ['https://example.com/character.jpg'],
videos: ['https://example.com/dance-reference.mp4'],
character_orientation: 'video',
resolution: '720p',
keep_original_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-2.6-motion-control',
'prompt': 'Animate the character in the reference image using the dance movements from the reference video',
'images': ['https://example.com/character.jpg'],
'videos': ['https://example.com/dance-reference.mp4'],
'character_orientation': 'video',
'resolution': '720p',
'keep_original_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-2.6-motion-control",
"prompt": "Animate the character in the reference image using the dance movements from the reference video",
"images": ["https://example.com/character.jpg"],
"videos": ["https://example.com/dance-reference.mp4"],
"character_orientation": "video",
"resolution": "720p",
"keep_original_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"
| パラメータ | 料金 | 元の料金 | 割引 |
|---|
KuaishouのKling 2.6 Motion Control APIは、開発者やクリエイティブチームに費用対効果の高いAIキャラクターモーション転送を提供します。この手頃な価格のモーション制御APIを統合すると、自然言語プロンプトで指示しながら、参照動画の動きで参照キャラクター画像を動かせます。KuaishouのKlingモーション制御パイプラインを基盤とするKling 2.6 Motion Controlモデルは、キャラクター中心のアニメーションワークフローに特化しています。APIは信頼性の高い統合を提供し、必要に応じて元の音声を保持できるため、Flaq AIでの本番利用に適しています。
注意 プロンプトとアップロードするメディアがKuaishouのコンテンツ安全ガイドラインに準拠していることを確認してください。エラーが発生した場合は、制限対象のコンテンツがないか確認し、入力を調整して再試行してください。
Kling 2.6 Motion ControlとKling 3.0 Motion Control
Kling 3.0 Motion Controlは、Flaq AI上で同じモーション制御パラメーターを、より高い価格帯で提供します。Kling 2.6 Motion Controlは、同じ画像と動画によるモーション転送ワークフローで手頃な価格を優先しており、大量のキャラクターアニメーションの予算管理に適しています。
Kling 2.6 Motion ControlとKling Image-to-Video
Kling Image-to-Videoはプロンプトだけで静止画を動かします。Kling 2.6 Motion Control APIは参照動画を必要とし、動き、タイミング、演技の手がかりを実際の映像から取り込むため、キャラクター画像へ忠実にモーションをリターゲティングしたい場合に適しています。
Kling 2.6 Motion ControlとRunway Act-One / モーションツール
Runwayはスタジオ制作を中心としたUIで、演技をもとにした強力なクリエイティブツールを提供します。Kling 2.6 Motion Control APIは、画像と動画を使ったプログラムによるモーション転送に特化し、開発者のパイプライン向けに向きの制御と元の音声の任意保持を提供します。
Kling 2.6 Motion ControlとPikaのキャラクターモーション
Pikaは様式化されたアニメーションと使いやすい創作インターフェースを重視しています。Kling 2.6 Motion Controlは、APIを中心としたアクセス、HD解像度の選択肢、費用対効果の高いモーション転送を提供し、拡張可能なキャラクター制作システムに対応します。
Kling 2.6 Motion ControlとLumaのキャラクターアニメーション
Lumaは高速な生成動画体験で知られています。Kling 2.6 Motion Control APIは、明示的なキャラクターの向きの選択、参照動画に基づくモーション転送、制作自動化に適した予測可能なFlaq AI統合で差別化されています。
ブラウザで画像と動画のクイックワークフロー向けAI制作ツールを複数試し、成功したアイデアをFlaq AIの本番対応モデルAPIで拡張できます。Flaq AIはすべてのモデルに統合APIレイヤーを提供し、ワークフローを簡単に利用・拡張できます。