Skip to main content
POST
Gemini Omni 1.2 Flash Ext
Set up API authentication. Use the returned data.taskId to query the task.

Parameters

The API model ID is gemini-omni-1.2-flash-ext.
  • input.prompt is required, with a limit of 5,000 characters.
  • input.duration accepts whole seconds from 3 to 15, default 5. The first-and-last-frame mode supports up to 10 seconds.
  • input.resolution accepts 360p, 720p, 1080p, and 4k, default 720p. The 1080p and 4K tiers are upscaled. 4K output may omit audio.
  • input.ratio accepts 16:9 and 9:16, default 16:9.
  • input.mode accepts text-to-video, image-to-video, reference-to-video, and first-last-frame. Pass public image URLs in input.imageUrls. Use one for image-to-video, two in order for first and last frames, or up to 10 for image references. If you omit the mode, the image count selects text, single-image, or image-reference generation.

Pricing

Multiply by the output duration and round the total up to a whole credit. One credit is $0.01.

Example request