curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-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-v3-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": 408240,
"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-v3-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-V3
Kling-V3 モーションコントロール
- Kling-V3 Motion Control (kling-v3-motion-control) モデルは、参照画像 + 参照動画によるモーション駆動生成をサポートしています
- システムは参照動画からモーション軌跡を抽出し、参照画像内のキャラクター/オブジェクトに適用して、参照動画の動きと一致する新しい動画を生成します
- 生成される動画の長さは
character_orientationに依存します。imageは最大 10 秒、videoは最大 30 秒、最短 3 秒です - 非同期処理モード、返されたタスクIDでクエリを実行してください
- 生成された動画リンクの有効期限は24時間です。お早めに保存してください
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-v3-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-v3-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": 408240,
"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-v3-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
動画生成モデル名
利用可能なオプション:
kling-v3-motion-control 例:
"kling-v3-motion-control"
参照画像URL配列、キャラクター/オブジェクトの外観ソースを提供するために使用
注意:
- 参照画像を1枚入力してください
- 画像サイズ:
10MB以下 - 対応ファイル形式:
.jpg、.jpeg、.png - 画像サイズ:幅・高さ ≥
300px、アスペクト比は1:2.5~2.5:1の範囲 - 画像URLはサーバーから直接アクセス可能である必要があります
例:
["https://example.com/character.jpg"]
動作トラジェクトリを提供するための参照動画URL配列
注意:
- 参照動画を1つ渡してください
- 動画の長さ:
3〜30秒 - 動画サイズ:最大
100MB - 動画寸法:幅と高さそれぞれ
340px〜3850px - カット割り、高速な動き、シーン変更は避けてください
- 動画URLはサーバーから直接アクセスできる必要があります
例:
["https://example.com/dance-reference.mp4"]
モデル固有パラメータ(必須)、モーションコントロール設定に使用
Show child attributes
Show child attributes
テキストプロンプト(オプション)、生成内容のガイドに使用
注意:
- 最大
2500文字 - 空欄可、モデルが参照画像と動画に基づいて自動生成します
Maximum string length:
2500例:
"A girl dancing gracefully"
解像度レベル
説明:
720p:標準画質(std)1080p:高品質画質(pro)
利用可能なオプション:
720p, 1080p 例:
"720p"
タスク完了後のHTTPSコールバックアドレス
コールバックのタイミング:
- タスクが完了(completed)、失敗(failed)、またはキャンセル(cancelled)された際にトリガーされます
- 課金確認が完了した後に送信されます
セキュリティ制限:
- HTTPSプロトコルのみサポート
- 内部ネットワークIPアドレスへのコールバックは禁止
- URL長さは
2048文字以内
コールバックメカニズム:
- タイムアウト時間:
10秒 - 失敗後の最大リトライ回数:
3回 - コールバックレスポンスの形式はタスク照会インターフェースの返却形式と一致します
- コールバックアドレスが2xxステータスコードを返した場合は成功、それ以外のステータスコードはリトライをトリガーします
例:
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクの作成に成功しました
タスク作成タイムスタンプ
例:
1757169743
タスクID
例:
"task-unified-1757169743-7cvnl5zw"
実際に使用されたモデル名
例:
"kling-v3-motion-control"
タスクの具体的なタイプ
利用可能なオプション:
video.generation.task タスク進捗パーセンテージ (0-100)
必須範囲:
0 <= x <= 100例:
0
タスクステータス
利用可能なオプション:
pending, processing, completed, failed 例:
"pending"
動画タスク詳細情報
Show child attributes
Show child attributes
タスクの出力タイプ
利用可能なオプション:
text, image, audio, video 例:
"video"
使用量と課金情報
Show child attributes
Show child attributes