curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-o3-video-edit",
"prompt": "Adjust the color to warm tones and add a cinematic feel",
"video_url": "https://example.com/original.mp4",
"quality": "720p",
"keep_original_sound": true
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-o3-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 9
},
"type": "video",
"usage": {
"billing_rule": "per_call",
"credits_reserved": 7,
"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-o3-video-edit",
"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-O3 動画編集
- Kling-O3 Video Edit(kling-o3-video-edit)はオリジナル動画を編集・修正します。Kling AI kling-v3-omniモデルに基づいています
- 出力動画の長さとアスペクト比は入力動画と一致します
- テキスト指示、参照画像、エレメントによる編集をサポートします
- 動画入力がある場合、音声生成はサポートされません(音声は強制的にオフになります)
- 非同期処理モード、返されたタスクIDを使用してステータスを照会してください
- 生成された動画リンクは24時間有効です。速やかに保存してください
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-o3-video-edit",
"prompt": "Adjust the color to warm tones and add a cinematic feel",
"video_url": "https://example.com/original.mp4",
"quality": "720p",
"keep_original_sound": true
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-o3-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 9
},
"type": "video",
"usage": {
"billing_rule": "per_call",
"credits_reserved": 7,
"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-o3-video-edit",
"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"
}
}承認
すべてのAPIにBearer Token認証が必要です
APIキーの取得:
APIキー管理ページにアクセスしてAPIキーを取得してください
リクエストヘッダーに追加:
Authorization: Bearer YOUR_API_KEY
ボディ
動画生成モデル名
kling-o3-video-edit "kling-o3-video-edit"
編集指示、最大2500文字
参照構文: プロンプト内で<<<xxx>>>構文を使用してエレメント、画像、動画を参照できます。例: 動画内の人物を<<<element_1>>>に置き換える
2500"Adjust the color to warm tones and add a cinematic feel"
編集する動画URL
動画フォーマット要件:
- フォーマット: MP4 / MOV
- サイズ: <= 200MB
- 長さ: >= 3秒
- 寸法: 幅と高さ 720px〜2160px
- フレームレート: 24fps〜60fps
制約:
- 最初/最後のフレームはサポートされません
- 動画が指定されている場合、参照画像数 + エレメント数 <= 4
- 動画キャラクターエレメントはサポートされていません(マルチ画像エレメントのみサポート)
- 動画URLはサーバーから直接アクセスできる必要があります
"https://example.com/original.mp4"
オリジナル動画の音声を保持するかどうか
注意:
true: オリジナル動画の音声を保持(デフォルト)false: オリジナル動画の音声を保持しない
true
参照画像URLの配列(スタイル参照)
制約: 動画が指定されている場合、参照画像数 + エレメント数 <= 4
注意:
- 画像URLはサーバーから直接アクセスできる必要があります。アクセス時に直接ダウンロードされるURLでも構いません
["https://example.com/style_ref.jpg"]
解像度品質
オプション:
720p: 標準 720P1080p: 高画質 1080P
課金: 基本単価 81,000 UC/秒 × 入力動画の長さ(切り上げ)。1080pの倍率は1.334
720p, 1080p "720p"
詳細パラメータ
Show child attributes
Show child attributes
タスク完了時のHTTPSコールバックURL
コールバックタイミング:
- タスクが完了、失敗、またはキャンセルされた時にトリガー
- 課金確認後に送信
セキュリティ制限:
- HTTPSプロトコルのみ
- 内部IPアドレスは禁止(127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x など)
- URLの長さは
2048文字以下
コールバックメカニズム:
- タイムアウト:
10秒 - 失敗後最大
3回リトライ(失敗後1/2/4秒) - コールバックレスポンス形式はタスク照会APIと一致
- 2xxステータスコードは成功とみなされ、その他のコードはリトライをトリガー
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画生成タスクが正常に作成されました
タスク作成タイムスタンプ
1757169743
タスク ID
"task-unified-1757169743-7cvnl5zw"
使用された実際のモデル名
"kling-o3-video-edit"
タスクタイプ
video.generation.task タスク進捗率(0-100)
0 <= x <= 1000
タスクステータス
pending, processing, completed, failed "pending"
動画タスクの詳細
Show child attributes
Show child attributes
タスク出力タイプ
text, image, audio, video "video"
使用量と課金情報
Show child attributes
Show child attributes