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

# Gemini Omni Flash Ext Video Generation

> - Same parameter set with two model IDs: `gemini_omni_flash_ext` (1.0) and `gemini_omni_1_1_flash_ext` (1.1)
- Asynchronous processing mode, returning a task ID for subsequent queries
- Supports text-to-video, up to 7 reference images, and 1 optional reference video; images and video can be passed simultaneously
- Supports 720p / 1080p / 4K, duration only 4 / 6 / 8 / 10 seconds


export const apiKeyUrl = 'https://aireiter.com/keys';

<Note>
  1.0 and 1.1 share the parameters on this page. To switch models, simply change the `model` field.

  * `gemini_omni_flash_ext` — Gemini Omni Flash Ext (1.0)
  * `gemini_omni_1_1_flash_ext` — Gemini Omni 1.1 Flash Ext
</Note>

## Authorizations

<ParamField header="Authorization" type="string" required>
  All endpoints require Bearer Token authentication.

  Get the API Key:

  Visit <a href={apiKeyUrl} target="_blank">API Key management page</a> to get your API Key.

  When using it, add the following to the request header:

  ```
  Authorization: Bearer YOUR_API_KEY
  ```
</ParamField>

## Body

<ParamField body="model" type="string" required>
  Model name, choose one of two:

  * `gemini_omni_flash_ext`
  * `gemini_omni_1_1_flash_ext`

  Parameter fields are the same; do not pass `type`.
</ParamField>

<ParamField body="params" type="object" required>
  Model parameter object.

  <Expandable title="params Object Properties">
    <ParamField body="prompt" type="string" required>
      Text description for video generation. Required.
    </ParamField>

    <ParamField body="video_length" type="string" default="6">
      Generated video duration in seconds. Accepts strings only:

      * `"4"`
      * `"6"` - Default
      * `"8"`
      * `"10"`

      Do not pass this field when a reference video is provided; the output duration follows the uploaded video.

      <Warning>
        Do not pass `3`, `5`, `7`, `9`, or other durations in seconds. Enum validation requires a string; please pass `"6"` instead of the number `6`.
      </Warning>
    </ParamField>

    <ParamField body="resolution" type="string" default="720p">
      Output resolution:

      * `720p` - Default
      * `1080p`
      * `4K`

      720p and 1080p are the same price; 4K is more expensive.
    </ParamField>

    <ParamField body="aspect_ratio" type="string" default="16:9">
      Video aspect ratio:

      * `16:9` - Landscape, Default
      * `9:16` - Portrait
    </ParamField>

    <ParamField body="image_url" type="string | string[]">
      Reference image URL(s), must be directly accessible via the public network. Can also be passed as a single string. If omitted, text-to-video generation will be performed.

      * Up to 7 images, **2 images allowed**
      * Short edge no less than 300px, up to 10MB per image

      When passed together with a reference video, number of images + 2 must be ≤ 7.
    </ParamField>

    <ParamField body="video_url" type="string | string[]">
      Reference video URL, optional, up to 1 video. Can also be passed as a single string. Can be passed together with reference images.

      Video requirements:

      * Formats: MP4, MOV
      * Duration not exceeding 10 seconds
      * Up to 100MB
      * Short edge no less than 300px

      Do not pass `video_length` when passing a reference video; output duration follows the uploaded video, up to 10 seconds. Reference video counts as 2 slots towards the 7-slot quota.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="out_task_id" type="string" required>
  Initiator task ID.

  User-defined task identifier, required. Only letters, numbers, underscores, and hyphens are supported, with a length of 1-64 characters. You can use this ID later to query the task status and results.
</ParamField>

## Response

<ResponseField name="out_task_id" type="string">
  Caller task ID, can be used to query results.
</ResponseField>

<ResponseField name="status" type="string">
  Initial status, usually `"pending"`.
</ResponseField>

<ResponseField name="estimated_credits" type="number">
  Estimated credits consumed by this task.
</ResponseField>

<ResponseField name="created_at" type="string">
  Creation time, ISO format.
</ResponseField>

## Query Task

Both models use asynchronous video generation. After submitting a task, please use `out_task_id` to query the task status. You can also refer to [Get Task Status](/en/api-reference/tasks/status).

<ParamField body="out_task_id" type="string" required>
  The initiator task ID passed when submitting the task.
</ParamField>

```bash theme={null}
curl --request POST \
  --url https://aireiter.com/api/openapi/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "out_task_id": "omni_ext_t2v_123456"
  }'
```

Once the query succeeds and is completed, the `output` array in the response will contain the generated video, with each element containing a `video` field.

## Parameter Comparison

| Input | `image_url` | `video_url` | Duration |
| - | - | - | - |
| Text-to-Video | Do not pass, or empty array | Do not pass | `video_length` `"4"` / `"6"` / `"8"` / `"10"` |
| Reference Image | 1–7 images (including 2 images) | Do not pass | Same as above |
| Reference Video | Do not pass, or empty array | 1 video, up to 10 seconds | Do not pass `video_length`, follows source video |
| Image + Video | Up to 5 images (number of images + 2 ≤ 7) | 1 video, up to 10 seconds | Do not pass `video_length`, follows source video |

## Request Examples

<RequestExample>
  ```bash cURL (Text-to-Video, 1.0) theme={null}
  curl --request POST \
    --url https://aireiter.com/api/openapi/submit \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "gemini_omni_flash_ext",
      "params": {
        "prompt": "A girl dancing happily in a sunny garden, cinematic feel",
        "resolution": "720p",
        "aspect_ratio": "16:9",
        "video_length": "6"
      },
      "out_task_id": "omni_ext_t2v_123456"
    }'
  ```

  ```bash cURL (2 Reference Images, 1.1) theme={null}
  curl --request POST \
    --url https://aireiter.com/api/openapi/submit \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "gemini_omni_1_1_flash_ext",
      "params": {
        "prompt": "Keep the characters and outfits from the two reference images, walking in the garden",
        "image_url": [
          "https://example.com/ref-1.jpg",
          "https://example.com/ref-2.jpg"
        ],
        "resolution": "1080p",
        "aspect_ratio": "16:9",
        "video_length": "6"
      },
      "out_task_id": "omni_11_img2_123456"
    }'
  ```

  ```bash cURL (Reference Video) theme={null}
  curl --request POST \
    --url https://aireiter.com/api/openapi/submit \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "gemini_omni_flash_ext",
      "params": {
        "prompt": "Keep the subject and camera movement from the reference video, with cleaner lighting",
        "video_url": ["https://example.com/reference.mp4"],
        "resolution": "4K",
        "aspect_ratio": "16:9"
      },
      "out_task_id": "omni_ext_v2v_123456"
    }'
  ```

  ```bash cURL (Image + Reference Video) theme={null}
  curl --request POST \
    --url https://aireiter.com/api/openapi/submit \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "model": "gemini_omni_1_1_flash_ext",
      "params": {
        "prompt": "Use the character from the reference image and follow the camera movement from the reference video",
        "image_url": ["https://example.com/ref-1.jpg"],
        "video_url": ["https://example.com/reference.mp4"],
        "resolution": "720p",
        "aspect_ratio": "16:9"
      },
      "out_task_id": "omni_11_img_v2v_123456"
    }'
  ```

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

  url = "https://aireiter.com/api/openapi/submit"

  payload = {
      "model": "gemini_omni_flash_ext",
      "params": {
          "prompt": "A girl dancing happily in a sunny garden, cinematic feel",
          "resolution": "720p",
          "aspect_ratio": "16:9",
          "video_length": "6"
      },
      "out_task_id": "omni_ext_t2v_123456"
  }

  headers = {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
  }

  response = requests.post(url, json=payload, headers=headers)

  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const url = "https://aireiter.com/api/openapi/submit";

  const payload = {
    model: "gemini_omni_flash_ext",
    params: {
      prompt: "A girl dancing happily in a sunny garden, cinematic feel",
      resolution: "720p",
      aspect_ratio: "16:9",
      video_length: "6"
    },
    out_task_id: "omni_ext_t2v_123456"
  };

  const headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
  };

  fetch(url, {
    method: "POST",
    headers: headers,
    body: JSON.stringify(payload)
  })
    .then(response => response.json())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
  ```

  ```go Go theme={null}
  package main

  import (
      "bytes"
      "encoding/json"
      "fmt"
      "io/ioutil"
      "net/http"
  )

  func main() {
      url := "https://aireiter.com/api/openapi/submit"

      payload := map[string]interface{}{
          "model": "gemini_omni_flash_ext",
          "params": map[string]interface{}{
              "prompt":       "A girl dancing happily in a sunny garden, cinematic feel",
              "resolution":   "720p",
              "aspect_ratio": "16:9",
              "video_length": "6",
          },
          "out_task_id": "omni_ext_t2v_123456",
      }

      jsonData, _ := json.Marshal(payload)

      req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
      req.Header.Set("Authorization", "Bearer <token>")
      req.Header.Set("Content-Type", "application/json")

      client := &http.Client{}
      resp, err := client.Do(req)
      if err != nil {
          panic(err)
      }
      defer resp.Body.Close()

      body, _ := ioutil.ReadAll(resp.Body)
      fmt.Println(string(body))
  }
  ```

  ```java Java theme={null}
  import java.net.http.HttpClient;
  import java.net.http.HttpRequest;
  import java.net.http.HttpResponse;
  import java.net.URI;

  public class Main {
      public static void main(String[] args) throws Exception {
          String url = "https://aireiter.com/api/openapi/submit";

          String payload = """
              {
                "model": "gemini_omni_flash_ext",
                "params": {
                  "prompt": "A girl dancing happily in a sunny garden, cinematic feel",
                  "resolution": "720p",
                  "aspect_ratio": "16:9",
                  "video_length": "6"
                },
                "out_task_id": "omni_ext_t2v_123456"
              }
          """;

          HttpClient client = HttpClient.newHttpClient();
          HttpRequest request = HttpRequest.newBuilder()
              .uri(URI.create(url))
              .header("Authorization", "Bearer <token>")
              .header("Content-Type", "application/json")
              .POST(HttpRequest.BodyPublishers.ofString(payload))
              .build();

          HttpResponse<String> response = client.send(request,
              HttpResponse.BodyHandlers.ofString());

          System.out.println(response.body());
      }
  }
  ```

  ```php PHP theme={null}
  <?php

  $url = "https://aireiter.com/api/openapi/submit";

  $payload = [
      "model" => "gemini_omni_flash_ext",
      "params" => [
          "prompt" => "A girl dancing happily in a sunny garden, cinematic feel",
          "resolution" => "720p",
          "aspect_ratio" => "16:9",
          "video_length" => "6"
      ],
      "out_task_id" => "omni_ext_t2v_123456"
  ];

  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
  curl_setopt($ch, CURLOPT_HTTPHEADER, [
      "Authorization: Bearer <token>",
      "Content-Type: application/json"
  ]);

  $response = curl_exec($ch);
  curl_close($ch);

  echo $response;
  ?>
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "statusCode": 200,
    "message": "",
    "data": {
        "out_task_id": "omni_ext_t2v_123456",
        "status": "pending",
        "estimated_credits": "<Estimated Credits>",
        "created_at": "2026-08-28T06:03:28.242Z"
    }
  }
  ```

  ```json 400 theme={null}
    {
        "statusCode": 400,
        "message": "Invalid request parameters",
        "ok": false
    }
  ```

  ```json 401 theme={null}
  {
    "error": {
      "code": 401,
      "message": "Authentication failed, please check your API key"
    }
  }
  ```

  ```json 433 theme={null}
    {
      "error": {
        "code": 433,
        "message": "Insufficient account balance, please recharge and try again"
      }
    }
  ```

  ```json 500 theme={null}
  {
    "error": {
      "code": 500,
      "message": "Internal server error, please try again later"
    }
  }
  ```
</ResponseExample>
