API Tips
This model uses an asynchronous task workflow. Create a task, poll the returned id, and read the video result from output after completion.
Authentication
authorization string required
All APIs require Bearer Token authentication.
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request.
Value: gemini_omni_flash_preview
input array required
Generation parameters. Put business parameters in input[0].params.
input[0].params object required
Model generation parameters.
prompt string required
Text prompt describing the expected video content.
Polling
Continue polling while the task status is in_progress. When the status is completed, read the video URL from output[].content[].
Response Format
output array
Generated result array returned after task completion.
content
arrayGenerated content array.
type
stringContent type.
Value:
videourl
stringURL of the generated video.