Gemini Omni Flash
Gemini Omni 1.1 Standard
Standard supports text-to-video and image-to-video at a fixed 10 seconds in 720p or 1080p, with up to 5 reference images or first/last frames.
Standard supports text-to-video and image-to-video at a fixed 10 seconds in 720p or 1080p, with up to 5 reference images or first/last frames.
Use your platform API key, not a supplier key. In mainland China, use https://toapis.cn as the Base URL.
Request parameters
AuthorizationstringheaderrequiredBearer YOUR_API_KEY
modelstringbodyrequiredgemini-omni-1.1-flash-preview
promptstringbodyrequiredRequired video description.
durationintegerbodydefault: 10Standard: fixed 10 seconds.
resolutionstringbodydefault: 720p720p or 1080p, default 720p, case-insensitive. 1080p outputs 1920x1080 (16:9) or 1080x1920 (9:16). Send
resolution: "1080p" explicitly; size alone does not switch to 1080p.aspect_ratiostringbodydefault: 16:916:9 or 9:16, default 16:9.
image_urlsstring[]bodyStandard accepts up to 5 public image URLs.
first_image_urlstringbodyPublic URL of the first frame image.
last_image_urlstringbodyPublic URL of the last frame image.
Upload local media first to obtain public URLs. Do not send base64 or local file paths. Video input is not supported.
Request examples
curl https://toapis.com/v1/videos \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-omni-1.1-flash-preview",
"prompt": "A cinematic tracking shot through a sunlit city",
"duration": 10,
"resolution": "720p",
"aspect_ratio": "16:9",
"image_urls": ["https://example.com/image.png"]
}'1080p example
curl https://toapis.com/v1/videos \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-omni-1.1-flash-preview",
"prompt": "A vertical 1080p video",
"duration": 10,
"resolution": "1080p",
"aspect_ratio": "9:16"
}'Retrieve a task
Submission returns a platform task id. Poll GET /v1/videos/{id} and retrieve the video result on completion. Do not use supplier task IDs or supplier polling endpoints.
curl https://toapis.com/v1/videos/YOUR_TASK_ID \
-H 'Authorization: Bearer YOUR_API_KEY'responseExample
{
"id": "vid_example",
"object": "generation.task",
"model": "gemini-omni-1.1-flash-preview",
"status": "queued",
"created_at": 1789600000
}