> ## 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 (Reference to Video) Image to Video API

> Generates video with audio from multiple reference images 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/reference-to-video`\
**Generation type:** `image_to_video`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

| Duration | Credits |
| - | - |
| 3s | **4.0** |
| 4s | **5.5** |
| 5s | **6.5** |
| 6s | **8.0** |
| 7s | **9.5** |
| 8s | **10.5** |
| 9s | **12.0** |
| 10s | **13.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/reference-to-video",
    "input_params": {
      "prompt": "She looks up from her laptop and smiles at the camera.",
      "image_urls": [
        "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
      ]
    }
  }'
```

```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/reference-to-video",
        "input_params": {
            "prompt": "She looks up from her laptop and smiles at the camera.",
            "image_urls": [
                "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
            ]
        },
    },
)
print(response.json()["id"])
```

## Input parameters

Send these fields in `input_params`.

**prompt** `string` *required*

The text prompt describing the video. You can bind reference images to roles inline using tags like \<IMAGE\_REF\_0>.

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

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

URLs of the reference images to incorporate into the video.

Minimum items: `1`.
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"`.

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt",
>     "image_urls"
>   ],
>   "properties": {
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "maxLength": 2000,
>       "minLength": 1,
>       "description": "The text prompt describing the video. You can bind reference images to roles inline using tags like <IMAGE_REF_0>."
>     },
>     "image_urls": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "title": "Image URLs",
>       "maxItems": 3,
>       "minItems": 1,
>       "description": "URLs of the reference images 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."
>     }
>   }
> }
> ```

## 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.