Gemini Omni 1.1 Flash
Use gemini-omni-1.1-flash to create video output. This page contains the complete request needed for this model.
Model facts
| Property | Value |
|---|---|
| Model ID | gemini-omni-1.1-flash |
| Endpoint | POST /api/v1/generation/create |
| Output | Video |
| Modes | text-to-video, image-to-video, video reference |
| Pricing | View current pricing |
Minimal request
curl -X POST https://api.api-stock.com/api/v1/generation/create \
-H "Authorization: Bearer $API_STOCK_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-omni-1.1-flash",
"input": {
"prompt": "A cinematic scene with soft natural light"
}
}'
The create response contains a task ID:
{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "not_started",
"createdAt": "2026-08-22T12:00:00.000Z"
}
}
Parameters
Parameters belong inside the top-level input object. Unknown fields are rejected.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Describe the scene, motion and sound. max 4000 chars |
imageUrls | string[] | No | — | First frame and optional last frame. Cannot be combined with reference inputs. |
referenceImageUrls | string[] | No | — | Reference images (up to 7; up to 5 with a reference video). Cannot be combined with imageUrls. |
referenceVideoUrls | string[] | No | — | One source video, 3–10 seconds. Output follows source duration and is billed per generation. Cannot be combined with imageUrls. |
aspectRatio | “16:9” | “9:16” | No | "16:9" | Output aspect ratio |
duration | 4 | 6 | 8 | 10 | No | 8 | Output duration. Ignored with a source video, which uses a flat per-generation price. |
resolution | “360p” | “720p” | “1080p” | “4k” | No | "720p" | Output resolution; 1080p and 4K are upscaled outputs. |
Modes
Minimal generation
{
"model": "gemini-omni-1.1-flash",
"input": {
"prompt": "A cinematic scene with soft natural light"
}
}
With image urls
{
"model": "gemini-omni-1.1-flash",
"input": {
"prompt": "A cinematic scene with soft natural light",
"imageUrls": [
"https://example.com/input.jpg"
]
}
}
With reference image urls
{
"model": "gemini-omni-1.1-flash",
"input": {
"prompt": "A cinematic scene with soft natural light",
"referenceImageUrls": [
"https://example.com/input.jpg"
]
}
}
With reference video urls
{
"model": "gemini-omni-1.1-flash",
"input": {
"prompt": "A cinematic scene with soft natural light",
"referenceVideoUrls": [
"https://example.com/input.mp4"
]
}
}
Constraints
prompt: maximum 4000 characters.aspectRatio: allowed:16:9,9:16.duration: allowed:4,6,8,10.resolution: allowed:360p,720p,1080p,4k.
Invalid types, unsupported enum values, out-of-range numbers, and missing required fields return HTTP 400 with error.code: "invalid_input". Correct the request rather than retrying it unchanged.
Result
Poll the task or provide a top-level webhook URL in the create request:
curl https://api.api-stock.com/api/v1/task/status/$TASK_ID \
-H "Authorization: Bearer $API_STOCK_KEY"
A successful media task returns one or more files:
{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "finished",
"files": [
{
"fileUrl": "https://storage.api-stock.com/result.mp4",
"fileType": "video"
}
],
"createdTime": "2026-08-22T12:00:00.000Z"
}
}
See Tasks and webhooks for terminal statuses, retries and webhook delivery.