Kling 3.0 Turbo API
Kuaishou による Kling 3.0 Turbo 動画生成モデルの完全な API リファレンスです。
モデルバリアント {#}
この API は 2 つのモデルバリアントをサポートします。
クイック比較
対応アスペクト比(Text to Video)
Kling 3.0 Turbo Text to Video
エンドポイント
POST /api/v1/video/task
リクエストパラメータ
必須
任意
リクエスト例
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'kling-3.0-turbo-text-to-video',
prompt: 'A girl sits on a train, looking out the window with a melancholic expression, cinematic lighting',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
sound: true
})
});
const { data } = await response.json();
const taskId = data.task_id;
Kling 3.0 Turbo Image to Video
リクエストパラメータ
必須
任意
リクエスト例
{
model_name: 'kling-3.0-turbo-image-to-video',
prompt: 'The character slowly turns her head and looks out the window, subtle camera movement',
image_url: 'https://example.com/test-first-frame.png',
resolution: '720p',
duration: 5,
sound: true
}
レスポンス形式
送信レスポンス:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
GET /api/v1/video/{task_id} でポーリングします。タスクステータス: submitted、processing、succeed、failed。
ベストプラクティス
- プロンプトはモーション、カメラの動き、シーンの雰囲気に集中させます。
- 画像から動画生成では、被写体が明確でクリーンな最初のフレーム画像を使用します。
- すばやく反復するには短い長さを使い、最終レンダリングでは長さを増やします。