curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-o1-video-edit-fast",
"prompt": "Make the video more cinematic",
"video_urls": [
"https://example.com/original-video.mp4"
]
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-o1-video-edit-fast",
"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-o1-video-edit-fast",
"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-O1
Kling-O1 動画編集(高速)
- Kling-O1 Video Edit Fast(kling-o1-video-edit-fast)モデルは高速動画編集をサポート
- 非同期処理モード、返されたタスク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-o1-video-edit-fast",
"prompt": "Make the video more cinematic",
"video_urls": [
"https://example.com/original-video.mp4"
]
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-o1-video-edit-fast",
"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-o1-video-edit-fast",
"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
ボディ
application/json
動画生成モデル名
利用可能なオプション:
kling-o1-video-edit-fast 例:
"kling-o1-video-edit-fast"
動画の編集方法を説明するプロンプト
Maximum string length:
5000例:
"Make the video more cinematic"
編集用のオリジナル動画URLリスト
注意:
- リクエストごとに
1本の動画のみ - サポートされる動画の長さ:
6~20秒(6秒未満の動画は6秒として課金、20秒を超える動画は20秒として課金) - 動画サイズ: 最大
100MB - サポートされる形式:
.mp4,.mov - 動画URLはサーバーから直接アクセス可能である必要があります
Required array length:
1 element例:
["https://example.com/video.mp4"]
編集効果を指定するための参照画像URLリスト
注意:
- リクエストごとに最大
4枚の参照画像をサポート - 画像サイズ: 最大
10MB - サポートされる形式:
.jpg,.jpeg,.png,.webp - 画像URLはサーバーから直接アクセス可能である必要があります
Required array length:
1 - 4 elements例:
["https://example.com/reference.jpg"]
オリジナル動画の音声を保持するかどうか
オプション:
true: オリジナル動画の音声を保持false: オリジナル動画の音声を保持しない
例:
true
タスク完了時の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-o1-video-edit-fast"
タスクタイプ
利用可能なオプション:
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