> ## 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) を利用できます.

[通常版](https://docs.toapis.com/docs/ja/api-reference/videos/gemini-omni-flash/generation-1-1.md) | [Official ガイド](https://docs.toapis.com/docs/ja/api-reference/videos/gemini-omni-1.1-flash-preview-official/generation.md)

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

**Authorization** `string` *required*

`Bearer YOUR_API_KEY`

**model** `string` *required*

`gemini-omni-1.1-flash-preview-vip`

**prompt** `string` *required*

必須の動画説明.

**duration** `integer` (default: 6)

VIP は 4 / 6 / 8 / 10 秒, 既定は 6 秒. video\_urls がある場合, duration と seconds を省略します.

**resolution** `string` (default: 720p)

VIP は 360p / 720p / 1080p / 4k, 既定は 720p. 大文字小文字を区別しません.

**aspect\_ratio** `string` (default: 16:9)

16:9 または 9:16. 既定は 16:9.

**image\_urls** `string[]`

VIP frame は 1 枚, reference は 1 枚または 3 枚. 始点と終点の 2 枚には非対応. 画像がなければ generation\_type を省略します.

**generation\_type** `string`

VIP のみ. frame は先頭フレーム, reference は参照画像. 省略時は 1 枚で frame, 3 枚で reference.

**video\_urls** `string[]`

VIP のみ. 公開 HTTP(S) 動画 URL は最大 1 本. 画像と併用可能. 参照動画を指定する場合は duration と seconds を省略します. 出力の長さは実際の生成結果で確認してください. 入力動画と同じ長さになる保証はありません.

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

## リクエスト例

**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"
    ]
  }'
```

**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"]
  }'
```

## 結果の取得

返される 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'
```

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

## 無効なパラメータ

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


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