Gemini Omni 1.1 Flash reference-to-video
Model ID google/gemini-omni-1.1-flash/reference-to-video
Overview
Important: Optional extra.thinking_level accepts default, high or low. Videos include native audio; there is no audio toggle. 1080p and 4k are upscaled outputs.
Endpoint
POST /v1/video/generations
Authentication
Authorization: Bearer <AIAPIAIAPI_API_KEY>
Request Body
| Parameter | Type | Required | Nullable | Default | Constraints | Description |
|---|---|---|---|---|---|---|
model | string | Yes | No | - | values: google/gemini-omni-1.1-flash/reference-to-video | Model ID used to route the request. |
prompt | string | Yes | No | - | - | Required prompt, up to 20000 characters. |
images | array | No | No | - | max_count: 10; accepts: HTTP/HTTPS URL, Base64 | PNG/JPEG/JPG/WebP images, at most 20 MB each. Prompt tags <IMAGE_REF_N> use zero-based indexes. |
videos | array | No | No | - | max_count: 3; accepts: HTTP/HTTPS URL | Public MP4 clips, at most 3 seconds each. Prompt tags <VIDEO_REF_N> use zero-based indexes. |
duration | integer | No | No | `10` | range: 3-10 | Generated video duration in seconds. |
resolution | string | No | No | `720p` | values: 360p, 720p, 1080p, 4k | Output video resolution. |
aspect_ratio | string | No | No | `16:9` | values: 16:9, 9:16 | Output video aspect ratio. |
seed | integer | No | No | `-1` | min: -1 | Random seed; use -1 for a random result. |
model
Type: string · Required: Yes · Nullable: No
Model ID used to route the request.
prompt
Type: string · Required: Yes · Nullable: No
Required prompt, up to 20000 characters.
images
Type: array · Required: No · Nullable: No
PNG/JPEG/JPG/WebP images, at most 20 MB each. Prompt tags <IMAGE_REF_N> use zero-based indexes.
videos
Type: array · Required: No · Nullable: No
Public MP4 clips, at most 3 seconds each. Prompt tags <VIDEO_REF_N> use zero-based indexes.
duration
Type: integer · Required: No · Nullable: No
Generated video duration in seconds.
resolution
Type: string · Required: No · Nullable: No
Output video resolution.
aspect_ratio
Type: string · Required: No · Nullable: No
Output video aspect ratio.
seed
Type: integer · Required: No · Nullable: No
Random seed; use -1 for a random result.
Request Example
curl --request POST \
--url https://aiapiaiapi.com/v1/video/generations \
--header 'Authorization: Bearer $AIAPIAIAPI_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"model": "google/gemini-omni-1.1-flash/reference-to-video",
"prompt": "A cinematic camera movement through a forest",
"images": ["https://example.com/reference.jpg"],
"duration": 10,
"resolution": "720p"
}'JSON
{
"model": "google/gemini-omni-1.1-flash/reference-to-video",
"prompt": "A cinematic camera movement through a forest",
"images": ["https://example.com/reference.jpg"],
"duration": 10,
"resolution": "720p"
}Response
{
"id": "vid_01K2ABC123",
"object": "video.generation",
"model": "google/gemini-omni-1.1-flash/reference-to-video",
"status": "queued",
"progress": null,
"outputs": [],
"created_at": 1786960800,
"started_at": null,
"completed_at": null,
"error": null
}Task Status
Use the id from the create response as task_id:
GET /v1/video/generations/{task_id}
{
"id": "vid_01K2ABC123",
"object": "video.generation",
"model": "google/gemini-omni-1.1-flash/reference-to-video",
"status": "completed",
"progress": 100,
"outputs": [
{ "type": "video", "url": "https://cdn.example.com/videos/vid_01K2ABC123.mp4" }
],
"created_at": 1786960800,
"started_at": 1786960805,
"completed_at": 1786960900,
"error": null
}Error Responses
Validation errors return HTTP 400 with a stable error code.
{
"error": {
"type": "invalid_request_error",
"code": "unsupported_value",
"message": "The parameter value is not supported by this model.",
"param": "duration"
}
}Documentation Index
Fetch the complete documentation index at:
https://aiapiaiapi.com/llms.txt
Use this file to discover all available API documentation.