# Gemini Omni 1.1 Flash API

> Google's newest multimodal video model — text, images, video and audio all in context, with a native 360p draft tier at half price and 4K delivery from the same request.

- **Provider**: Google
- **Model id**: `gemini-omni-1-1-flash`
- **Modality**: video
- **Price**: 30–100 credits

## Overview

Gemini Omni 1.1 Flash is called in two steps: create a generation task, then poll the task until the result is ready.

## Authentication

All requests require a Bearer Token in the request header:

```
Authorization: Bearer YOUR_API_KEY
```

## Create Task

`POST https://you.bot/api/v1/generate`

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| modelId | string | Yes | Model id: `gemini-omni-1-1-flash` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings |

### input object parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| prompt | string | Yes | What to generate. Use @Image1, @Image2 … to point at a specific reference image. (example: A paper boat drifts down a rainy street gutter, cinematic close-up, shallow depth of field) |
| reference_image_urls | string[] | No | Up to 7 references the video should follow. Cannot be combined with start/end frames. (image URL) |
| start_image_url | string | No | First frame of the clip. Cannot be combined with reference images. (image URL) |
| end_image_url | string | No | Last frame. Requires a start frame — the clip animates from the first to the last. (image URL) |
| voice | string | No | Google Flow voice preset for the spoken audio. Requires at least one reference image. (options:  \| achernar \| achird \| algenib \| algieba \| alnilam \| aoede \| autonoe \| callirrhoe \| charon \| despina \| enceladus \| erinome \| fenrir \| gacrux \| iapetus \| kore \| laomedeia \| leda \| orus \| puck \| pulcherrima \| rasalgethi \| sadachbia \| sadaltager \| schedar \| sulafat \| umbriel \| vindemiatrix \| zephyr \| zubenelgenubi) (default: ) |
| duration | string | No | Clip length in seconds. Longer clips cost more. (options: 4 \| 6 \| 8 \| 10) (default: 4) |
| aspect_ratio | string | No | Output orientation. (options: 16:9 \| 9:16) (default: 16:9) |
| resolution | string | No | Options: 360p \| 720p \| 1080p \| 4k (default: 720p) |
| seed | number | No | Reuse a seed to repeat a result closely. |
| allow_audio_filtered | boolean | No | When on, the video is delivered without audio instead of failing if the audio track is filtered. (true/false) (default: false) |
| nsfw_check | boolean | No | Check uploaded media for NSFW content. (true/false) (default: true) |

### Request example

```json
{
  "modelId": "gemini-omni-1-1-flash",
  "input": {
    "prompt": "A paper boat drifts down a rainy street gutter, cinematic close-up, shallow depth of field",
    "reference_image_urls": [
      "https://you.bot/examples/grok-imagine-text-to-image.jpg"
    ],
    "start_image_url": "https://you.bot/examples/grok-imagine-text-to-image.jpg",
    "end_image_url": "https://you.bot/examples/grok-imagine-text-to-image.jpg",
    "voice": "",
    "duration": "4",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "seed": 1,
    "allow_audio_filtered": false,
    "nsfw_check": true
  }
}
```

### Response example

```json
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 60
}
```

## Query Task

`GET https://you.bot/api/v1/task/{taskId}?model=gemini-omni-1-1-flash`

When `state` is `success`, the output is in `resultUrls`: `{ "state": "success", "resultUrls": [ ... ] }`. (Text models return inline in the create response.)

## Error Codes

| Code | Description |
|------|-------------|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed — check API Key |
| 402 | Insufficient account balance |
| 403 | IP not allowed for this key, or the key is restricted to other models |
| 404 | Task not found, or it has expired |
| 409 | Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe |
| 413 | Payload too large — see the character and file-size limits for this model |
| 429 | Rate limit exceeded — retry after the Retry-After header |
| 500 | Internal server error |
| 504 | Upstream timed out — nothing was delivered; retry is safe |
