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

# Gemini Omni 1.2 Flash Ext

> Gemini Omni text and image-to-video inputs and pricing

Set up [API authentication](https://docs.maxapi.io/api-reference/authentication.md). Use the returned `data.taskId` to [query the task](https://docs.maxapi.io/api-reference/query-task.md).

## Parameters

The API model ID is `gemini-omni-1.2-flash-ext`.

* `input.prompt` is required, with a limit of 5,000 characters.
* `input.duration` accepts whole seconds from 3 to 15, default 5. The first-and-last-frame mode supports up to 10 seconds.
* `input.resolution` accepts `360p`, `720p`, `1080p`, and `4k`, default `720p`. The 1080p and 4K tiers are upscaled. 4K output may omit audio.
* `input.ratio` accepts `16:9` and `9:16`, default `16:9`.
* `input.mode` accepts `text-to-video`, `image-to-video`, `reference-to-video`, and `first-last-frame`. Pass public image URLs in `input.imageUrls`. Use one for image-to-video, two in order for first and last frames, or up to 10 for image references. If you omit the mode, the image count selects text, single-image, or image-reference generation.

## Pricing

| Resolution | USD per second | Credits charged for 5 seconds |
| - | - | - |
| 360p | \$0.0207 | 11 |
| 720p | \$0.063 | 32 |
| 1080p | \$0.0936 | 47 |
| 4k | \$0.1881 | 95 |

Multiply by the output duration and round the total up to a whole credit. One credit is \$0.01.

## Example request

```json theme={null}
{
  "model": "gemini-omni-1.2-flash-ext",
  "input": {
    "prompt": "A slow orbit around a blue ceramic cup in morning light.",
    "duration": 5,
    "resolution": "720p",
    "ratio": "16:9"
  }
}
```


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