> ## 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.2 Flash 動画編集

> - Gemini Omni 1.2 Flash（`gemini-omni-1.2-flash-video-edit`）は、入力動画をプロンプトと任意の参照画像に基づいて編集します。
- **動画：** `video_urls` は最大15秒の動画1本が必須です。
- **画像：** `image_urls` で参照画像を最大10枚追加できます。
- **解像度：** `quality` は `360p`、`720p`、`1080p`、`4k`、`auto`。既定値 `auto` は入力に合わせます。具体的な値を指定すると、出力解像度を上げることも下げることもできます。
- **長さ：** `duration` は `auto` のみで、既定値も `auto`。入力の長さを維持します。
- **アスペクト比：** `aspect_ratio` は `auto` のみで、既定値も `auto`。入力の比率を維持します。
- 編集内容は `prompt` に記述します。否定的な指定も直接記述し、独立したネガティブプロンプトは使用しません。
- 同期したネイティブ音声を自動生成します。追加パラメータは不要です。
- `seed` の固定で再現性を高められます。
- 非同期処理です。タスクIDで[状態を確認](/ja/api-manual/task-management/get-task-detail)してください。
- リンクは24時間有効です。早めに保存してください。



## OpenAPI

````yaml ja/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-edit.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Gemini Omni 1.2 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.2 Flash 動画編集
      description: >-
        - Gemini Omni 1.2
        Flash（`gemini-omni-1.2-flash-video-edit`）は、入力動画をプロンプトと任意の参照画像に基づいて編集します。

        - **動画：** `video_urls` は最大15秒の動画1本が必須です。

        - **画像：** `image_urls` で参照画像を最大10枚追加できます。

        - **解像度：** `quality` は `360p`、`720p`、`1080p`、`4k`、`auto`。既定値 `auto`
        は入力に合わせます。具体的な値を指定すると、出力解像度を上げることも下げることもできます。

        - **長さ：** `duration` は `auto` のみで、既定値も `auto`。入力の長さを維持します。

        - **アスペクト比：** `aspect_ratio` は `auto` のみで、既定値も `auto`。入力の比率を維持します。

        - 編集内容は `prompt` に記述します。否定的な指定も直接記述し、独立したネガティブプロンプトは使用しません。

        - 同期したネイティブ音声を自動生成します。追加パラメータは不要です。

        - `seed` の固定で再現性を高められます。

        -
        非同期処理です。タスクIDで[状態を確認](/ja/api-manual/task-management/get-task-detail)してください。

        - リンクは24時間有効です。早めに保存してください。
      operationId: createGeminiOmni12FlashVideoEditGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeminiOmni12FlashVideoEditRequest'
            examples:
              video_edit:
                summary: 動画編集
                value:
                  model: gemini-omni-1.2-flash-video-edit
                  prompt: 照明をより暖かくし、その他は変更しない。
                  video_urls:
                    - https://example.com/source.mp4
                  quality: auto
                  duration: auto
                  aspect_ratio: auto
              video_edit_with_reference:
                summary: 参照画像付き動画編集
                value:
                  model: gemini-omni-1.2-flash-video-edit
                  prompt: 人物の服装を参照画像のスタイルに合わせ、その他のカメラの動きは変更しない。
                  video_urls:
                    - https://example.com/source.mp4
                  image_urls:
                    - https://example.com/reference.png
                  quality: auto
                  duration: 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.2-flash-video-edit
                  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:
    GeminiOmni12FlashVideoEditRequest:
      required:
        - model
        - prompt
        - video_urls
      type: object
      additionalProperties: false
      properties:
        model:
          type: string
          description: モデル名。固定値は `gemini-omni-1.2-flash-video-edit`
          enum:
            - gemini-omni-1.2-flash-video-edit
          example: gemini-omni-1.2-flash-video-edit
          default: gemini-omni-1.2-flash-video-edit
        prompt:
          type: string
          description: >-
            希望する編集内容と維持する要素を記述する指示。


            中国語と英語に対応します。動作や変化を具体的に記述すると、結果が安定しやすくなります。否定的な指定は `prompt`
            に直接記述してください（例：`No dialogue`、`文字を表示しない`）。独立したネガティブプロンプトのパラメータはありません。


            プロンプトは必須です。空文字列や空白文字のみの値は指定できません。
          example: 照明をより暖かくし、その他は変更しない。
          minLength: 1
          pattern: \S
        video_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          description: >-
            編集対象の動画配列。1本のみ対応します。HTTP/HTTPS動画URLのみ、形式はmp4です。長さは最大 `15`
            秒で下限はなく、1〜2秒の短い動画も利用できます。
          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
        quality:
          type: string
          description: |-
            出力動画の解像度。既定値は `auto`。

            - `360p`：短辺360。
            - `720p`：短辺720。
            - `1080p`：短辺1080。
            - `4k`：短辺2160。
            - `auto`：入力動画の解像度に合わせます。既定値です。

            具体的な値を指定すると、出力解像度を上げることも下げることもできます。

            **料金：** 出力動画のトークン数は出力解像度に応じて増えます。入力動画もトークンに算入され、解像度が高いほど料金が増えます。
          enum:
            - 360p
            - 720p
            - 1080p
            - 4k
            - auto
          default: auto
          example: auto
        duration:
          type: string
          description: autoのみ指定可能で既定値もauto。出力時間は入力動画に従います。
          enum:
            - auto
          default: auto
          example: auto
        aspect_ratio:
          type: string
          description: autoのみ指定可能で既定値もauto。出力比率は入力動画に従います。
          enum:
            - auto
          default: auto
          example: auto
        seed:
          type: integer
          description: >-
            乱数シード。既定ではランダムです。範囲は
            `0`〜`4294967295`。シードを固定すると、プロンプト調整時のパラメータ変更によるばらつきを抑え、再現性を高められます。
          minimum: 0
          maximum: 4294967295
          example: 42
        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.2-flash-video-edit
        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` を返します。内部状態の `pending` もクライアントには
            `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: 5
    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

        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.