curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v3-text-to-video",
"prompt": "A cat running on a grass field under bright sunshine",
"duration": 5,
"aspect_ratio": "16:9",
"quality": "720p"
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v3-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 270000,
"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-text-to-video",
"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 Text to Video(kling-v3-text-to-video)モデルはテキストから動画生成をサポートします
- シングルショットとマルチショットモードをサポートし、効果音付きの動画を生成できます
- 非同期処理モード、返されたタスク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-text-to-video",
"prompt": "A cat running on a grass field under bright sunshine",
"duration": 5,
"aspect_ratio": "16:9",
"quality": "720p"
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v3-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 270000,
"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-text-to-video",
"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-v3-text-to-video 例:
"kling-v3-text-to-video"
生成する動画を説明するテキストプロンプト
注意:
- 最大
2500文字 multi_shot=trueかつshot_type=customizeの場合は空にできます(内容はmulti_promptで指定)multi_shot=falseまたはshot_type=intelligenceの場合は必須
Maximum string length:
2500例:
"A cat running on a grass field under bright sunshine"
動画に表示すべきでないコンテンツを説明するネガティブプロンプト
例:
"people, text, watermark"
動画の長さ(秒)、デフォルトは5秒
注意:
- 範囲:
3から15の整数 - 課金は
durationの値に基づき、長い動画ほどコストが高くなります
必須範囲:
3 <= x <= 15例:
5
動画のアスペクト比
オプション:
16:9: 横長動画9:16: 縦長動画1:1: 正方形動画
利用可能なオプション:
16:9, 9:16, 1:1 例:
"16:9"
解像度品質
オプション:
720p: 標準画質(std)1080p: 高画質(pro)4k: 超高画質 4K
利用可能なオプション:
720p, 1080p, 4k 例:
"720p"
効果音制御
オプション:
on: 効果音を生成するoff: 効果音なし
利用可能なオプション:
on, off 例:
"off"
マルチショットとウォーターマーク制御用のモデル拡張パラメータ
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-v3-text-to-video"
タスクタイプ
利用可能なオプション:
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