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

# Gemini Omni Flash 1.2 I2V

> Animate a first frame with an optional last frame using Gemini Omni Flash 1.2.

Use `gemini-omni-flash-1.2-i2v` with one first frame and an optional last frame. Clips last 3–15 seconds; when supplying two frames, the maximum is 10 seconds. Images must be public JPEG, PNG, or WebP URLs, with a combined size of at most 10 MiB.

```json theme={null}
{
  "model": "gemini-omni-flash-1.2-i2v",
  "prompt": "The subject turns toward the window as rain begins.",
  "seconds": 5,
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "image_urls": ["https://example.com/first.png", "https://example.com/last.png"]
}
```

Send the body to `POST /v1/videos`, then poll the returned task ID. The model includes native audio. Choose `360p`, `720p`, `1080p`, or `4k` and `16:9` or `9:16`; 1080p and 4K use upsampling. See [live pricing](https://snapgen.org/models/gemini-omni-flash-1-2) and the [video API workflow](https://docs.snapgen.org/api-reference/video-generation.md).


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