ToAPIsToAPIs
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.

POST
/v1/videos

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.

VIP | Official documentation

Request parameters

Authorizationstringheaderrequired

Bearer YOUR_API_KEY

modelstringbodyrequired

gemini-omni-1.1-flash-preview

promptstringbodyrequired
Required video description.
durationintegerbodydefault: 10
Standard: fixed 10 seconds.
resolutionstringbodydefault: 720p
720p 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:9
16:9 or 9:16, default 16:9.
image_urlsstring[]body
Standard accepts up to 5 public image URLs.
first_image_urlstringbody
Public URL of the first frame image.
last_image_urlstringbody
Public 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
}