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-text-to-video",
"prompt": "ガラス玉が木製レールを転がり、水に落ちてしぶきを上げる。",
"quality": "720p",
"duration": 3,
"aspect_ratio": "16:9"
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"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-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"
}
}Gemini Omni 1.1 Flash
Gemini Omni 1.1 Flash 全パラメータ概要
- 5つの動画モードの全パラメータ
- テキストから動画、画像から動画、参照素材から動画、動画編集、動画延長の5モードがあります。
quality: テキスト/画像/参照は4段階で既定720p。編集/延長はautoも対応し既定auto。duration: 長さ: 生成モードは3~10、編集はautoのみ、延長は追加秒数3~10。aspect_ratio: 既定値auto。編集と延長はautoのみ指定可能。- モデルが同期したネイティブ音声を自動生成します。
- 否定条件はpromptへ直接記述します。
- 非同期処理: タスク状態を照会
- 生成リンクの有効期限は7日間です。
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-text-to-video",
"prompt": "ガラス玉が木製レールを転がり、水に落ちてしぶきを上げる。",
"quality": "720p",
"duration": 3,
"aspect_ratio": "16:9"
}
'
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"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-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"
}
}承認
##すべてのインターフェースはBearer Tokenによる認証が必要です##
API Key の取得:
API Key 管理ページ にアクセスして API Key を取得してください
利用時はリクエストヘッダーに以下を追加します:
Authorization: Bearer YOUR_API_KEY
ボディ
application/json
タスクと入力素材に合うモデルIDを選択してください:
gemini-omni-1.1-flash-text-to-videogemini-omni-1.1-flash-image-to-videogemini-omni-1.1-flash-reference-to-videogemini-omni-1.1-flash-video-editgemini-omni-1.1-flash-video-extend
利用可能なオプション:
gemini-omni-1.1-flash-text-to-video, gemini-omni-1.1-flash-image-to-video, gemini-omni-1.1-flash-reference-to-video, gemini-omni-1.1-flash-video-edit, gemini-omni-1.1-flash-video-extend 例:
"gemini-omni-1.1-flash-text-to-video"
動画解像度
対応値:
360p:横 640×360 / 縦 360×640720p:横 1280×720 / 縦 720×12801080p:横 1920×1080 / 縦 1080×19204k:横 3840×2160 / 縦 2160×3840auto:動画編集・延長のみ。入力動画の解像度に従う
デフォルト:
- テキスト・画像・参照素材から動画:
720p - 動画編集・延長:
auto
課金: 出力動画は出力 token で課金されます。動画編集・延長では、入力・出力動画の token は最終出力解像度で計算されます。
利用可能なオプション:
360p, 720p, 1080p, 4k, auto 例:
"720p"
タスク完了後の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"
レスポンス
動画タスクの作成に成功しました