> ## Documentation Index
> Fetch the complete documentation index at: https://evolink.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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へ直接記述します。
- 非同期処理: [タスク状態を照会](/ja/api-manual/task-management/get-task-detail)
- 生成リンクの有効期限は24時間です。
- **課金範囲：** 出力動画部分は追加秒数に基づいて計算されます。入力動画、参照画像、プロンプト、モデルの推論も使用量に含まれ、最終料金は実際の token 使用量に基づきます。
- **入力動画の料金と `quality`：** 入力動画の token は元動画の解像度ではなく、選択した出力解像度で計算されます。



## OpenAPI

````yaml ja/api-manual/video-series/gemini-omni-1.1-flash/gemini-omni-1.1-flash-video-extend.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Gemini Omni 1.1 Flash 動画延長
  description: 任意の参照画像を使って入力動画を延長
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 本番環境
security:
  - bearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - 動画生成
      summary: Gemini Omni 1.1 Flash 動画延長
      description: >-
        - 任意の参照画像を使って入力動画を延長

        - `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へ直接記述します。

        - 非同期処理: [タスク状態を照会](/ja/api-manual/task-management/get-task-detail)

        - 生成リンクの有効期限は24時間です。

        - **課金範囲：**
        出力動画部分は追加秒数に基づいて計算されます。入力動画、参照画像、プロンプト、モデルの推論も使用量に含まれ、最終料金は実際の token
        使用量に基づきます。

        - **入力動画の料金と `quality`：** 入力動画の token は元動画の解像度ではなく、選択した出力解像度で計算されます。
      operationId: createGeminiOmni11FlashVideoExtendGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeminiOmni11FlashVideoExtendRequest'
            examples:
              video_extend:
                summary: 動画延長
                value:
                  model: gemini-omni-1.1-flash-video-extend
                  prompt: 人物が歩き続け、ゆっくり画面外へ出る。
                  video_urls:
                    - https://example.com/source.mp4
                  duration: 3
                  quality: auto
                  aspect_ratio: auto
              video_extend_with_reference:
                summary: 参照画像付き動画延長
                value:
                  model: gemini-omni-1.1-flash-video-extend
                  prompt: 参照画像の服装を保ちながら歩き続ける。
                  video_urls:
                    - https://example.com/source.mp4
                  image_urls:
                    - https://example.com/reference.png
                  duration: 3
                  quality: auto
                  aspect_ratio: auto
      responses:
        '200':
          description: 動画タスクの作成に成功しました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: リクエストパラメータエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 未認証、Tokenが無効または期限切れ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 残高不足、チャージが必要
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: アクセス権限がありません
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    gemini-omni-1.1-flash-video-extend
                  type: invalid_request_error
        '429':
          description: リクエスト頻度が上限を超えました
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: サーバー内部エラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    GeminiOmni11FlashVideoExtendRequest:
      required:
        - model
        - prompt
        - video_urls
      type: object
      additionalProperties: false
      properties:
        model:
          type: string
          description: モデル名。固定値は `gemini-omni-1.1-flash-video-extend`
          enum:
            - gemini-omni-1.1-flash-video-extend
          example: gemini-omni-1.1-flash-video-extend
          default: gemini-omni-1.1-flash-video-extend
        prompt:
          type: string
          description: 入力動画の後に起こる内容を記述するプロンプト。
          example: 人物が歩き続け、ゆっくり画面外へ出る。
        video_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          description: HTTP/HTTPSで取得可能な30秒以内のMP4を1本。
          example:
            - https://example.com/source.mp4
        image_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 10
          description: |-
            任意の参照画像配列。最大10枚。延長部分の主体・スタイル・要素を指定できます。

            **入力要件：**
            - HTTP/HTTPS画像URLのみ
            - 対応形式：`png`、`jpeg`、`webp`

            **課金：** 参照画像ごとに入力 token が加算されます。
          example:
            - https://example.com/reference.png
        duration:
          type: integer
          description: |-
            追加する動画の長さ（秒）。デフォルトは `3` です。

            **説明：**
            - `3`～`10` の任意の整数を指定可能
            - 入力動画の後に生成する秒数であり、出力全体の長さではありません
            - 出力全体の長さ = 入力動画の長さ + `duration`
            - 追加時間は課金額に直接影響します
          minimum: 3
          maximum: 10
          default: 3
          example: 3
        quality:
          type: string
          description: |-
            出力動画の解像度。デフォルトは `auto` です。

            **対応値：**
            - `360p`：短辺 360
            - `720p`：短辺 720
            - `1080p`：短辺 1080
            - `4k`：短辺 2160
            - `auto`：入力動画の解像度に従う。デフォルト

            解像度を明示すると、出力をアップスケールまたはダウンスケールできます。

            **課金：** 入力・出力動画の token は最終出力解像度で計算され、解像度が高いほど料金も高くなります。
          enum:
            - 360p
            - 720p
            - 1080p
            - 4k
            - auto
          default: auto
          example: auto
        aspect_ratio:
          type: string
          description: autoのみ指定可能で既定値もauto。出力比率は入力動画に従います。
          enum:
            - auto
          default: auto
          example: auto
        callback_url:
          type: string
          description: >-
            タスク完了後の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ステータスコードを返した場合は成功とみなし、それ以外のステータスコードは再試行をトリガーします
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: タスク作成のタイムスタンプ
          example: 1757169743
        id:
          type: string
          description: タスクID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: 実際に使用されたモデル名
          example: gemini-omni-1.1-flash-video-extend
        object:
          type: string
          enum:
            - video.generation.task
          description: タスクの具体的な種別
        progress:
          type: integer
          description: タスクの進捗率 (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: タスク状態。作成APIは processing を返します。
          enum:
            - pending
            - processing
            - completed
            - failed
          example: processing
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: 動画タスクの詳細情報
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: タスクの出力タイプ
          example: video
        usage:
          $ref: '#/components/schemas/Usage'
          description: 使用量と課金情報
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: エラーコード識別子
            message:
              type: string
              description: エラーの説明情報
            type:
              type: string
              description: エラーの種類
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: タスクがキャンセル可能かどうか
          example: false
        estimated_time:
          type: integer
          description: 完了までの推定時間（秒）
          minimum: 0
          example: 60
        video_duration:
          type: integer
          description: 出力合計時間は入力時間と追加時間の合計です。
          example: 6
    Usage:
      type: object
      description: 使用量と課金情報
      properties:
        billing_rule:
          type: string
          description: 課金ルール
          enum:
            - per_call
            - per_token
            - per_second
          example: per_token
        credits_reserved:
          type: number
          description: 消費が見込まれるクレジット数
          minimum: 0
          example: 102.34
        user_group:
          type: string
          description: ユーザーが所属する課金グループ
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ##すべてのインターフェースはBearer Tokenによる認証が必要です##


        **API Key の取得：**


        [API Key 管理ページ](https://evolink.ai/dashboard/keys) にアクセスして API Key
        を取得してください


        **利用時はリクエストヘッダーに以下を追加します：**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````