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

# Gemini Omni Flash 1.1 (Reference to Video) Video to Video API

> Generates video with audio from up to 10 reference images and 3 reference videos for consistent subject, motion, style, and sound.

[← Gemini Omni Flash](https://docs.creatify.ai/api-documentation/ai-generation/models/gemini-omni-flash.md)

**Model name:** `gemini-omni-flash-1.1/reference-to-video`\
**Generation type:** `video_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

| Duration | 360p | 720p | 1080p | 4k |
| - | - | - | - | - |
| 3s | **1.0** | **3.0** | **4.5** | **9.0** |
| 4s | **1.5** | **4.0** | **6.0** | **12.0** |
| 5s | **1.5** | **5.0** | **7.5** | **15.0** |
| 6s | **2.0** | **6.0** | **9.0** | **18.0** |
| 7s | **2.5** | **7.0** | **10.5** | **21.0** |
| 8s | **2.5** | **8.0** | **12.0** | **24.0** |
| 9s | **3.0** | **9.0** | **13.5** | **27.0** |
| 10s | **3.0** | **10.0** | **15.0** | **30.0** |

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

## Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

```bash cURL theme={null}
curl --request POST \
  --url https://api.creatify.ai/api/asset_generator/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-ID: your-api-id' \
  --header 'X-API-KEY: your-api-key' \
  --data '{
    "model_name": "gemini-omni-flash-1.1/reference-to-video",
    "input_params": {
      "prompt": "The woman from the reference image talks to the camera in a bright café, with the gestures of the reference video.",
      "image_urls": [
        "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
      ],
      "video_urls": [
        "https://d35ghwdno3nak3.cloudfront.net/tutorial/asset-generator/sample-video.mp4"
      ]
    }
  }'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.creatify.ai/api/asset_generator/",
    headers={"X-API-ID": "your-api-id", "X-API-KEY": "your-api-key"},
    json={
        "model_name": "gemini-omni-flash-1.1/reference-to-video",
        "input_params": {
            "prompt": "The woman from the reference image talks to the camera in a bright café, with the gestures of the reference video.",
            "image_urls": [
                "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
            ],
            "video_urls": [
                "https://d35ghwdno3nak3.cloudfront.net/tutorial/asset-generator/sample-video.mp4"
            ]
        },
    },
)
print(response.json()["id"])
```

## Input parameters

Send these fields in `input_params`.

**prompt** `string` *required*

The text prompt describing the video. Bind reference images or videos to roles inline using tags like \<IMAGE\_REF\_0> or \<VIDEO\_REF\_0>.

Minimum characters: `1`.
Maximum characters: `2000`.

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

URLs of the reference images to incorporate into the video.

Maximum items: `10`.

**video\_urls** `string[]`

URLs of the reference videos to incorporate into the video.

Maximum items: `3`.

**duration** `string` (default: 8)

The duration of the generated video, in seconds.

Allowed values: `"3"`, `"4"`, `"5"`, `"6"`, `"7"`, `"8"`, `"9"`, `"10"`.

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

The aspect ratio of the generated video.

Allowed values: `"16:9"`, `"9:16"`.

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

The resolution of the generated video.

Allowed values: `"360p"`, `"720p"`, `"1080p"`, `"4k"`.

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt"
>   ],
>   "properties": {
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "maxLength": 2000,
>       "minLength": 1,
>       "description": "The text prompt describing the video. Bind reference images or videos to roles inline using tags like <IMAGE_REF_0> or <VIDEO_REF_0>."
>     },
>     "image_urls": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "limit_description": "Max 10 images. Max file size: 10MB. Supported formats: JPEG, PNG, WebP."
>       },
>       "title": "Image URLs",
>       "maxItems": 10,
>       "max_file_size": 10485760,
>       "description": "URLs of the reference images to incorporate into the video."
>     },
>     "video_urls": {
>       "type": "array",
>       "items": {
>         "type": "string",
>         "limit_description": "Max 3 videos, 3-15s each. Max file size: 20MB. Supported format: MP4."
>       },
>       "title": "Video URLs",
>       "maxItems": 3,
>       "min_duration": 3,
>       "max_duration": 15,
>       "max_file_size": 20971520,
>       "description": "URLs of the reference videos to incorporate into the video."
>     },
>     "duration": {
>       "enum": [
>         "3",
>         "4",
>         "5",
>         "6",
>         "7",
>         "8",
>         "9",
>         "10"
>       ],
>       "type": "string",
>       "title": "Duration",
>       "default": "8",
>       "description": "The duration of the generated video, in seconds."
>     },
>     "aspect_ratio": {
>       "enum": [
>         "16:9",
>         "9:16"
>       ],
>       "type": "string",
>       "title": "Aspect Ratio",
>       "default": "16:9",
>       "description": "The aspect ratio of the generated video."
>     },
>     "resolution": {
>       "enum": [
>         "360p",
>         "720p",
>         "1080p",
>         "4k"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "720p",
>       "description": "The resolution of the generated video.",
>       "x-advance-settings": true
>     }
>   }
> }
> ```

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](https://docs.creatify.ai/api-reference/ai-generation/get-ai-generation-.md) until `status` is `done` or `failed`, or pass a `webhook_url` to be notified. A finished task lists its files in `assets` and the credits it charged in `credits_used`.


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