curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-omni-1.1-flash-video-extend",
"prompt": "人物が歩き続け、ゆっくり画面外へ出る。",
"video_urls": [
"https://example.com/source.mp4"
],
"duration": 3,
"quality": "auto",
"aspect_ratio": "auto"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-video-extend",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"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: gemini-omni-1.1-flash-video-extend",
"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"
}
}Gemini Omni 1.1 Flash
Gemini Omni 1.1 Flash 動画延長
- 任意の参照画像を使って入力動画を延長
video_urls: HTTP/HTTPSで取得可能な30秒以内のMP4を1本。image_urls: 任意の参照画像URL、最大10枚。HTTP/HTTPSのみ。quality: 出力解像度: 360p、720p、1080p、4k、auto。既定値autoで、入力動画の解像度に従います。duration: 入力動画の後に追加する秒数。3~10の整数、既定値3。aspect_ratio: autoのみ指定可能で既定値もauto。出力比率は入力動画に従います。- モデルが同期したネイティブ音声を自動生成します。
- 否定条件はpromptへ直接記述します。
- 非同期処理: タスク状態を照会
- 生成リンクの有効期限は7日間です。
- 課金範囲: 出力動画部分は追加秒数に基づいて計算されます。入力動画、参照画像、プロンプト、モデルの推論も使用量に含まれ、最終料金は実際の token 使用量に基づきます。
- 入力動画の料金と
quality: 入力動画の token は元動画の解像度ではなく、選択した出力解像度で計算されます。
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": "gemini-omni-1.1-flash-video-extend",
"prompt": "人物が歩き続け、ゆっくり画面外へ出る。",
"video_urls": [
"https://example.com/source.mp4"
],
"duration": 3,
"quality": "auto",
"aspect_ratio": "auto"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-video-extend",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"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: gemini-omni-1.1-flash-video-extend",
"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アドレス(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x など)へのコールバックは禁止
- URLの長さは
2048文字以内
コールバックの仕組み:
- タイムアウト時間:
10秒 - 失敗後は最大
3回まで再試行します(失敗後それぞれ1秒/2秒/4秒後に再試行します) - コールバックのレスポンスボディの形式はタスク照会インターフェースの返却形式と同一です
- コールバックアドレスが2xxステータスコードを返した場合は成功とみなし、それ以外のステータスコードは再試行をトリガーします
例:
"https://your-domain.com/webhooks/video-task-completed"
レスポンス
動画タスクの作成に成功しました