> ## 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 普通版

> 普通版支援文生影片和圖生影片, 固定 10 秒 / 720p. 最多使用 5 張參考圖.

普通版支援文生影片和圖生影片, 固定 10 秒 / 720p. 最多使用 5 張參考圖.

> [!NOTE]
>
> 使用平台 API Key, 不使用供應商 Key. 中國大陸可使用 [https://toapis.cn](https://toapis.cn).

[VIP](https://docs.toapis.com/docs/zh-Hant/api-reference/videos/gemini-omni-flash/generation-1-1-vip.md) | [Official 文件](https://docs.toapis.com/docs/zh-Hant/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`

**prompt** `string` *required*

必填的影片描述.

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

普通版固定 10 秒.

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

720p

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

支援 16:9 或 9:16, 預設 16:9.

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

普通版最多 5 張公開圖片 URL.

> [!WARNING]
>
> 本地素材請先上傳以取得公開 URL. 不傳 base64 或本地檔案路徑.

## 請求範例

```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",
    "prompt": "A cinematic tracking shot through a sunlit city",
    "duration": 10,
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "image_urls": ["https://example.com/image.png"]
  }'
```

## 查詢結果

提交返回平台任務 id. 透過 GET /v1/videos/{id} 查詢完成結果. 不使用供應商 task\_id 或供應商查詢介面.

```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",
  "status": "queued",
  "created_at": 1789600000
}
```


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