Gemini Omni 1.1 Flash API guide
Gemini Omni 1.1 Flash API: Generate or transform video from text, image references, or video references with Gemini Omni 1.1 Flash. The generation_type and input requirements depend on the chosen scenario.
Model overview
Generate or transform video from text, image references, or video references with Gemini Omni 1.1 Flash. The generation_type and input requirements depend on the chosen scenario.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | gemini-omni-1.1-flash |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Select a mode to highlight its required inputs. Mode selection does not change the API field names.
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Text prompt describing the desired generation.
Required for Single Image to Video, Three Image Fusion, Reference Video + Three Images.
Additional requirements depend on other values. See model rules.
Public image URLs: one image in Frame mode; one or three images in Reference mode. Two images are not supported.
Item count: maximum 3.
Required for Reference Video, Reference Video + Three Images.
Additional requirements depend on other values. See model rules.
At most one public HTTP/HTTPS reference video URL. Must not be combined with duration; images may accompany the video as identity or composition references.
Item count: maximum 1.
Frame accepts one image. Reference accepts one or three images.
Allowed values: "frame", "reference".
Studio preset: "reference".
Output video resolution.
Allowed values: "360p", "720p", "1080p", "4k".
Studio preset: "720p".
Output duration in seconds: 4, 6, 8, or 10. Defaults to 6. Not submitted when a reference video is provided.
Allowed values: 4, 6, 8, 10.
Value: minimum 4; maximum 10.
Studio preset: 6.
Output aspect ratio.
Allowed values: "16:9", "9:16".
Studio preset: "16:9".
Standard quantity control field. The allowed range for this item is 1-4.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 4.
Studio preset: 1.
No parameters match. Clear the search or reset the filters.
Model rules
Input modes
Select a mode by supplying its required public inputs. The mode identifier describes a documentation/form choice; do not send input_mode as a model parameter.
| Mode | Required inputs |
|---|---|
| Text to Video | No reference media required |
| Single Image to Video | image_urls |
| Three Image Fusion | image_urls |
| Reference Video | video_urls |
| Reference Video + Three Images | video_urls, image_urls |
- When
generation_typeis "frame" andimage_urlsis provided, keepimage_urls, when supplied, at least 1 and at most 1 items. - When the input mode is Text to Video, omit
image_urls; omitvideo_urls. - When the input mode is Single Image to Video, provide
image_urls; useframe,referenceforgeneration_type; keepimage_urls, when supplied, at least 1 and at most 1 items; omitvideo_urls. - When the input mode is Three Image Fusion, provide
image_urls; usereferenceforgeneration_type; keepimage_urls, when supplied, at least 3 and at most 3 items; omitvideo_urls. - When the input mode is Reference Video, keep
image_urls, when supplied, at most 1 items; keepvideo_urls, when supplied, at least 1 items. - When the input mode is Reference Video + Three Images, provide
video_urls,image_urls; usereferenceforgeneration_type; keepimage_urls, when supplied, at least 3 and at most 3 items; keepvideo_urls, when supplied, at least 1 items.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Text to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "gemini-omni-1.1-flash",
"parameters": {
"duration": 6,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"generation_type": "reference",
"prompt": "A paper city under soft morning light"
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · generation_type · prompt.
Single Image to Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "gemini-omni-1.1-flash",
"parameters": {
"duration": 6,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"generation_type": "reference",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png"
]
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · generation_type · prompt · image_urls.
Three Image Fusion
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "gemini-omni-1.1-flash",
"parameters": {
"duration": 6,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"generation_type": "reference",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png",
"https://example.com/input-2.png",
"https://example.com/input-3.png"
]
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · generation_type · prompt · image_urls.
Reference Video
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "gemini-omni-1.1-flash",
"parameters": {
"duration": 6,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"generation_type": "reference",
"prompt": "A paper city under soft morning light",
"video_urls": [
"https://example.com/input-1.mp4"
]
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · generation_type · prompt · video_urls.
Reference Video + Three Images
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "gemini-omni-1.1-flash",
"parameters": {
"duration": 6,
"batch_size": 1,
"resolution": "720p",
"aspect_ratio": "16:9",
"generation_type": "reference",
"prompt": "A paper city under soft morning light",
"image_urls": [
"https://example.com/input-1.png",
"https://example.com/input-2.png",
"https://example.com/input-3.png"
],
"video_urls": [
"https://example.com/input-1.mp4"
]
}
}'Parameters used: duration · batch_size · resolution · aspect_ratio · generation_type · prompt · image_urls · video_urls.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.