curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v2.6-motion-control",
"prompt": "A girl dancing gracefully",
"image_urls": [
"https://example.com/character.jpg"
],
"video_urls": [
"https://example.com/dance-reference.mp4"
],
"quality": "720p",
"model_params": {
"character_orientation": "image"
}
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v2.6-motion-control",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 22.68,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: kling-v2.6-motion-control",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Kling-V2.6
Kling 2.6 モーションコントロール
- Kling 2.6 Motion Control (kling-v2.6-motion-control) モデルは、参照画像 + 参照動画によるモーション駆動生成をサポートしています
- システムは参照動画からモーション軌跡を抽出し、参照画像内のキャラクター/オブジェクトに適用して、参照動画の動きと一致する新しい動画を生成します
- 生成される動画の長さは
character_orientationに依存します。imageは最大 10 秒、videoは最大 30 秒、最短 3 秒です - 非同期処理モード、返されたタスクIDでクエリを実行してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
- 課金:出力動画の秒数で課金(1 秒単位で四捨五入)。
1080pは720p単価の 1.6 倍 - サブジェクト要素(
element_list)には対応していません。空でないelement_listを指定したリクエストは拒否されます(空のリストは無視されます)。サブジェクト要素が必要な場合はkling-v3-motion-controlを使用してください
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v2.6-motion-control",
"prompt": "A girl dancing gracefully",
"image_urls": [
"https://example.com/character.jpg"
],
"video_urls": [
"https://example.com/dance-reference.mp4"
],
"quality": "720p",
"model_params": {
"character_orientation": "image"
}
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v2.6-motion-control",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 22.68,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: kling-v2.6-motion-control",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}承認
##すべてのインターフェースはBearer Token認証が必要です##
API Keyの取得:
API Key管理ページにアクセスしてAPI Keyを取得してください
リクエストヘッダーに以下を追加してください:
Authorization: Bearer YOUR_API_KEY
ボディ
application/json
タスク完了後のHTTPSコールバックアドレス
コールバックのタイミング:
- タスクが完了(completed)、失敗(failed)、またはキャンセル(cancelled)された際にトリガーされます
- 課金確認が完了した後に送信されます
セキュリティ制限:
- HTTPSプロトコルのみサポート
- 内部ネットワークIPアドレスへのコールバックは禁止
- URL長さは
2048文字以内
コールバックメカニズム:
- タイムアウト時間:
10秒 - 失敗後の最大リトライ回数:
3回(失敗後、それぞれ1秒/2秒/4秒の間隔でリトライします) - コールバックレスポンスの形式はタスク照会インターフェースの返却形式と一致します
- コールバックアドレスが2xxステータスコードを返した場合は成功、それ以外のステータスコードはリトライをトリガーします
例:
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクの作成に成功しました