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

# Gemini Omni 1.1 VIP

> VIP はテキスト, 画像, 参照動画に対応. 4 / 6 / 8 / 10 秒と 360p / 720p / 1080p / 4k を選択でき, 既定は 6 秒 / 720p. 参照動画を指定する場合は長さを省略します.

VIP はテキスト, 画像, 参照動画に対応. 4 / 6 / 8 / 10 秒と 360p / 720p / 1080p / 4k を選択でき, 既定は 6 秒 / 720p. 参照動画を指定する場合は長さを省略します.

<Note>プラットフォームの API Key を使用します. 中国本土では [https://toapis.cn](https://toapis.cn) を利用できます.</Note>

[通常版](./generation-1-1) | [Official ガイド](../gemini-omni-1.1-flash-preview-official/generation)

## リクエストパラメータ

<ParamField header="Authorization" type="string" required>
  `Bearer YOUR_API_KEY`
</ParamField>

<ParamField body="model" type="string" required>
  `gemini-omni-1.1-flash-preview-vip`
</ParamField>

<ParamField body="prompt" type="string" required>必須の動画説明.</ParamField>
<ParamField body="duration" type="integer" default="6">VIP は 4 / 6 / 8 / 10 秒, 既定は 6 秒. video\_urls がある場合, duration と seconds を省略します.</ParamField>
<ParamField body="resolution" type="string" default="720p">VIP は 360p / 720p / 1080p / 4k, 既定は 720p. 大文字小文字を区別しません.</ParamField>
<ParamField body="aspect_ratio" type="string" default="16:9">16:9 または 9:16. 既定は 16:9.</ParamField>
<ParamField body="image_urls" type="string[]">VIP frame は 1 枚, reference は 1 枚または 3 枚. 始点と終点の 2 枚には非対応. 画像がなければ generation\_type を省略します.</ParamField>
<ParamField body="generation_type" type="string">VIP のみ. frame は先頭フレーム, reference は参照画像. 省略時は 1 枚で frame, 3 枚で reference.</ParamField>
<ParamField body="video_urls" type="string[]">VIP のみ. 公開 HTTP(S) 動画 URL は最大 1 本. 画像と併用可能. 参照動画を指定する場合は duration と seconds を省略します. 出力の長さは実際の生成結果で確認してください. 入力動画と同じ長さになる保証はありません.</ParamField>

<Warning>ローカル素材は先にアップロードして公開 URL を取得します. base64 やローカルパスは送信しません.</Warning>

## リクエスト例

<Tabs>
  <Tab title="VIP">
    ```bash theme={null}
    curl https://toapis.com/v1/videos \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "gemini-omni-1.1-flash-preview-vip",
        "prompt": "A cinematic tracking shot through a sunlit city",
        "duration": 8,
        "resolution": "360p",
        "aspect_ratio": "9:16",
        "generation_type": "reference",
        "image_urls": [
          "https://example.com/a.png",
          "https://example.com/b.png",
          "https://example.com/c.png"
        ]
      }'
    ```
  </Tab>

  <Tab title="VIP VIDREF">
    ```bash theme={null}
    curl https://toapis.com/v1/videos \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{
        "model": "gemini-omni-1.1-flash-preview-vip",
        "prompt": "The same scene at night with neon lights",
        "resolution": "4k",
        "aspect_ratio": "16:9",
        "generation_type": "reference",
        "image_urls": ["https://example.com/image.png"],
        "video_urls": ["https://example.com/video.mp4"]
      }'
    ```
  </Tab>
</Tabs>

## 結果の取得

返される id はプラットフォームのタスク ID です. GET /v1/videos/{id} で完了まで確認します. 供給元の task\_id や API は使用しません.

```bash theme={null}
curl https://toapis.com/v1/videos/YOUR_TASK_ID \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

<ResponseExample>
  ```json theme={null}
  {
    "id": "vid_example",
    "object": "generation.task",
    "model": "gemini-omni-1.1-flash-preview-vip",
    "status": "queued",
    "created_at": 1789600000
  }
  ```
</ResponseExample>

## 無効なパラメータ

無効な解像度や長さ, モードに合わない画像数, 複数の参照動画, 動画と長さの同時指定は修正してから再送信します.
