For the complete documentation index, see llms.txt. This page is also available as Markdown.

Gemini Omni 1.1 Flash

This documentation is valid for the following list of our models:

  • google/gemini-omni-1.1-flash

Model Overview

Gemini Omni 1.1 Flash is the generally available release of Google's conversational video generation and editing model, adding video extension, first/last frame interpolation and 360p-4K output resolution control.

Setup your API Key

If you don't have an API key yet, use our Quickstart guide.

How to Make a Call

Step-by-Step Instructions

Generating a video involves sequentially calling two endpoints:

  • Create and submit a video generation task. The response contains a generation ID.

  • Poll the retrieval endpoint with that generation ID until the status is completed.

API Schemas

Create a video generation task and send it to the server

post
Body
modelstring · enumRequiredPossible values:
promptstring · min: 1Required

The text description of the scene, subject, or action to generate in the video.

image_urlstring · uriOptional

Image URL, gs:// URI, or base64 data URI. Used as the first frame for image_to_video unless the prompt tags it as a reference.

image_urlsstring · uri[] · max: 6Optional

Reference image URLs, gs:// URIs, or base64 data URIs. Use prompt tags such as <IMAGE_REF_0> to bind image roles. Pass exactly two images with task=image_to_video for first/last frame interpolation.

video_urlstring · uriOptional

Video URL, gs:// URI, or base64 data URI for edit and extend workflows.

audio_urlstring · uriOptional

Audio URL, gs:// URI, or base64 data URI for multimodal prompting.

previous_interaction_idstringOptional

Gemini Interactions API id from a previous Omni generation, used for conversational edits.

taskstring · enumOptional

Gemini Omni video task. Defaults are inferred from the supplied media inputs.

Possible values:
aspect_ratiostring · enumOptional

The aspect ratio of the generated video.

Possible values:
resolutionstring · enumOptional

The resolution of the output video, where the number refers to the short side in pixels.

Possible values:
durationinteger · enumOptional

The length of the output video in seconds.

Default: 8Possible values:
deliverystring · enumOptional

Gemini Omni video response delivery mode.

Default: uriPossible values:
Responses
200

Successful response.

application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
videoany ofOptional
or
or
any · nullableOptional
post/v2/video/generations
curl --request POST \
  --url 'https://api.aimlapi.com/v2/video/generations' \
  --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{"model": "google/gemini-omni-1.1-flash", "prompt": "Describe what you want the model to generate.", "image_url": "https://example.com/input.jpg", "duration": "8"}'
200

Successful response.

{
  "id": "60ac7c34-3224-4b14-8e7d-0aa0db708325",
  "status": "completed",
  "video": {
    "url": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
  },
  "error": {
    "name": "text",
    "message": "text"
  },
  "meta": {
    "usage": {
      "credits_used": 120000,
      "usd_spent": 0.06
    }
  }
}

Retrieve the generated video from the server

Poll this endpoint with the generation_id returned by the submit request. When the status is completed, the response includes the generated video URL.

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
generation_idstringRequiredExample: <REPLACE_WITH_YOUR_GENERATION_ID>
Responses
200Success
application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
get/v2/video/generations
curl -L \
  --request GET \
  --url 'https://api.aimlapi.com/v2/video/generations?generation_id=<REPLACE_WITH_YOUR_GENERATION_ID>' \
  --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>'
200Success
{
  "id": "60ac7c34-3224-4b14-8e7d-0aa0db708325",
  "status": "completed",
  "video": {
    "url": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
  },
  "error": {
    "name": "text",
    "message": "text"
  },
  "meta": {
    "usage": {
      "credits_used": 120000
    }
  }
}

Code Example

The examples submit a generation task and poll every 15 seconds until the final result is available.

Response

Last updated

Was this helpful?