> ## 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 Video Generation and Editing

> Generate 3-10 second videos with official Gemini Omni 1.1 Flash Preview at four resolutions

Set `model` to `gemini-omni-1.1-flash-preview-official`. This preview model supports text, image and reference image generation, plus video editing.

<Note>Users in mainland China can replace the example domain with `https://toapis.cn`.</Note>

## Parameters

`Authorization: Bearer YOUR_API_KEY`

| Field           | Description                                                                                                         |
| --------------- | ------------------------------------------------------------------------------------------------------------------- |
| `model`         | `gemini-omni-1.1-flash-preview-official`                                                                            |
| `prompt`        | Required. Describe the video to generate or edit.                                                                   |
| `duration`      | Integer from 3 to 10 seconds. Default: 6.                                                                           |
| `resolution`    | 360p / 720p / 1080p / 4K. Default: 720p.                                                                            |
| `aspect_ratio`  | 16:9 / 9:16. Default: 16:9. Omitted for video editing.                                                              |
| `image_urls`    | Up to 10 reference image URLs. Cannot be combined with input videos.                                                |
| `video_list`    | Up to 3 items, each containing video\_url. MP4/MOV only, up to 50 MiB each.                                         |
| `metadata.task` | Optional: text\_to\_video / image\_to\_video / reference\_to\_video / edit. The model infers the task when omitted. |

Upload media first and pass the returned URLs. Veo-specific parameters such as generateAudio, negativePrompt and seed are not supported. Use video\_list for input videos.

## Pricing

USD. Output is billed by requested seconds. Input videos are measured by the server, rounded up separately to whole seconds and billed at an additional \$0.006950/second. These are base prices; group or account discounts follow the quote.

| Output resolution | Price per second |
| ----------------- | ---------------: |
| 360p              |       \$0.027034 |
| 720p              |       \$0.081088 |
| 1080p             |       \$0.121632 |
| 4K                |       \$0.243264 |

## Request example

```bash theme={null}
curl https://toapis.com/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.1-flash-preview-official",
    "prompt": "A red paper boat floating on a calm lake at sunrise",
    "duration": 3,
    "resolution": "360p",
    "aspect_ratio": "16:9"
  }'
```

```json theme={null}
{
  "model": "gemini-omni-1.1-flash-preview-official",
  "prompt": "Change the sky to a warm sunset",
  "duration": 6,
  "resolution": "1080p",
  "video_list": [{"video_url": "https://example.com/uploaded-video.mp4"}],
  "metadata": {"task": "edit"}
}
```

## Retrieve results

Read the task id from the submission response, then use the unified task endpoint to retrieve status and results.

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