Gemini Omni 1.2 Flash from Google is now available on AI Gateway. Generate videos from text prompts with one API key and no separate Google account.
Gemini Omni 1.2 Flash generates 3β15 second videos with native audio and edits 3β15 second source clips with up to six reference images. Extend videos by 3β10 seconds per call, up to 30 seconds total, or refine generated clips in follow-up calls using previousInteractionId . Output supports 360p, 720p, 1080p, and 4K in 16:9 or 9:16. Use generateText or streamText in AI SDK to receive the generated video as a file.
Copy link to heading Generate a video
Use google/gemini-omni-1.2-flash as the model name. This example generates a three-second, 360p clip and saves it as video.mp4 :
Copy link to heading Receive video in a streaming response
With streamText , read fullStream to handle generated files as they arrive.β¦